coding-agent

A way to run command-line coding agents such as Codex CLI, Claude Code, OpenCode, or Pi from a background process.

In plain words
What is it for?
Use it to start coding agents, give them work in a chosen folder, run them in the background, and monitor their sessions.
Why use it?
It lets programs control these interactive coding tools while keeping their terminal behavior working correctly.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/geezerrrr/motive/coding-agent
Any agent
npx skills add geezerrrr/motive --skill coding-agent
Clone the repo
git clone --depth 1 https://github.com/geezerrrr/motive

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,491 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.02491
Opus 5 $0.00013 $0.01246
Sonnet 5 $0.00005 $0.00498
Haiku 4.5 $0.00003 $0.00249

Measured yesterday against content hash 1ac51eb3ada8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

coding-agent scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**Model:** `gpt-5.2-codex` is the default (set in ~/.codex/config.toml)
Origin

This is a copy

86% identical to coding-agent — 46 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

Motive/Resources/Skills.bundle/coding-agent/SKILL.md · 285 lines

How it starts

The opening of the file, as written. The whole thing — 285 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Coding Agent (bash-first)

Use bash (with optional background mode) for all coding agent work. Simple and effective.

⚠️ PTY Mode Required!

Coding agents (Codex, Claude Code, Pi) are interactive terminal applications that need a pseudo-terminal (PTY) to work correctly. Without PTY, you'll get broken output, missing colors, or the agent may hang.

Always use pty:true when running coding agents:

# ✅ Correct - with PTY
bash pty:true command:"codex exec 'Your prompt'"

# ❌ Wrong - no PTY, agent may break
bash command:"codex exec 'Your prompt'"

Bash Tool Parameters

Parameter Type Description
command string The shell command to run
pty boolean Use for coding agents! Allocates a pseudo-terminal for interactive CLIs
workdir string Working directory (agent sees only this folder's context)
background boolean Run in background, returns sessionId for monitoring
timeout number Timeout in seconds (kills process on expiry)
elevated boolean Run on host instead of sandbox (if allowed)

Process Tool Actions (for background sessions)

Action Description
list List all running/recent sessions
poll Check if session is still running
log Get session output (with optional offset/limit)
write Send raw data to stdin
submit Send data + newline (like typing and pressing Enter)
send-keys Send key tokens or hex bytes
paste Paste text (with optional bracketed mode)
kill Terminate the session

Read the full file on GitHub · 285 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 285 lines · 26 tokens per session scan B 1ac51eb3ada8

Subscribe to this mod's changes

coding-agent is a skill published in the GitHub repository geezerrrr/motive (118 stars, last pushed 6mo ago), licensed MIT. It adds 26 tokens to every session and 2,491 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). It is 86% identical to coding-agent, differing in 46 lines, and is treated as a copy.

Related

Other skills, from other repositories

engram-rebuild

이미 설치된 engram 환경에 개발 변경을 적용한다. dev-rebuild.ps1 로 충분한지 INSTALL.ps1 전체를 돌려야 하는지 판단하고 실행한다. 트리거 — 재빌드, 리빌드, dev 변경 적용, 설치본에 반영, overlay 재시작, exe 갱신, "고친 거 확인하려면 뭐 돌려야 해", rebuild, redeploy.

JJHbrams/Project-AMBER · 92 tokens

orchestrate

Run Engram's Orchestrator-Planner-Coder-Servant workflow for multi-step development, refactors, or research-plus-implementation tasks that need an acceptance contract and independent verification. Trigger for "orchestrate", delegation requests, planning then implementation, or complex multi-step development. Do not…

JJHbrams/Project-AMBER · 75 tokens

engram-new-session

Skill "engram-new-session" from JJHbrams/Project-AMBER, covering engram 말풍선 — 새 세션 시작, 실행 절차 and 규칙.

JJHbrams/Project-AMBER · 102 tokens

dead-code-cleanup

Identifies and removes dead/orphaned code, tests, and Storybook stories — including trivial tests that check only obvious behavior or rare edge cases with no real value. Always validates that code is truly unused before deleting anything. Trigger on: "remove dead code", "clean up unused files", "delete orphaned…

jerseycheese/agent-skills · 105 tokens

issue-maintenance

Periodic and on-demand maintenance pass over a repo's open GitHub issue backlog. Re-labels miscategorized or unlabeled issues (bug/enhancement/question/invalid/duplicate) and bug lifecycle labels (needs-repro/needs-info) following the same decision logic as Anthropic's own dogfooded triage-issue command; re-scores…

jerseycheese/agent-skills · 277 tokens

visual-crawl

Crawls the running app at randomized breakpoints, screenshots visual issues, checks design token consistency, and tests interactive elements. Each run covers different ground by design. Trigger on: "visual QA", "audit the app visually", "screenshot all the pages", "check for visual regressions", "crawl the site for…

jerseycheese/agent-skills · 98 tokens