| name | coding-agent |
| description | Run coding agents (Claude Code, Codex, OpenCode, or others) as background processes for programmatic control. Use when you need non-blocking execution, parallel agents, PR reviews, or long-running coding tasks. Prefer this over direct bash for any task that takes more than ~20 seconds.
|
| license | MIT |
Coding Agent (background-first)
Use the process tool for non-interactive coding work. This gives you
non-blocking execution, progress monitoring, stdin/stdout access, and clean
lifecycle management.
The Pattern: workdir + process:start
process action:start command:"claude --dangerously-skip-permissions --print 'Your task'" workdir:~/project/folder
process action:log session_id:XXX lines:50
process action:poll session_id:XXX
process action:write session_id:XXX data:"y\n"
process action:kill session_id:XXX
process action:list
Why workdir matters: Agent wakes up in a focused directory — doesn't wander
off reading unrelated files. Use mktemp -d for scratch/chat work.
Claude Code
process action:start \
command:"claude --print --output-format json --dangerously-skip-permissions 'Your task'" \
workdir:~/project
process action:start \
command:"claude -w fix-issue-42 --print --output-format json --dangerously-skip-permissions 'Fix issue #42'" \
workdir:~/project
Codex CLI
process action:start command:"codex exec --full-auto \"Build a snake game with dark theme\"" workdir:~/project
process action:start command:"codex --yolo \"Build a snake game with dark theme\"" workdir:~/project
OpenCode
process action:start command:"opencode run 'Your task'" workdir:~/project
PR Reviews
⚠️ Never review PRs in the live assistant repo — clone to /tmp or use git worktree!
process action:start command:"claude --print --dangerously-skip-permissions 'Review PR #42: git diff origin/main...origin/pr/42'" workdir:~/project
REVIEW_DIR=$(mktemp -d)
git clone https://github.com/user/repo.git $REVIEW_DIR
cd $REVIEW_DIR && gh pr checkout 42
process action:start command:"claude --print --dangerously-skip-permissions 'Review this PR against main'" workdir:$REVIEW_DIR
git worktree add /tmp/pr-42-review pr-42-branch
process action:start command:"claude --print --dangerously-skip-permissions 'Review this PR'" workdir:/tmp/pr-42-review
Batch PR Reviews (parallel army!)
git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
process action:start command:"claude --print --dangerously-skip-permissions 'Review PR #86: git diff origin/main...origin/pr/86'" workdir:~/project
process action:start command:"claude --print --dangerously-skip-permissions 'Review PR #87: git diff origin/main...origin/pr/87'" workdir:~/project
process action:start command:"claude --print --dangerously-skip-permissions 'Review PR #95: git diff origin/main...origin/pr/95'" workdir:~/project
process action:list
process action:log session_id:XXX
gh pr comment 86 --body "<review content>"
Parallel Issue Fixing with git worktrees
git worktree add -b fix/issue-78 /tmp/issue-78 main
git worktree add -b fix/issue-99 /tmp/issue-99 main
process action:start command:"claude --print --dangerously-skip-permissions 'Fix issue #78: <description>. Commit when done.'" workdir:/tmp/issue-78
process action:start command:"claude --print --dangerously-skip-permissions 'Fix issue #99: <description>. Commit when done.'" workdir:/tmp/issue-99
process action:poll session_id:SESSION_A
process action:poll session_id:SESSION_B
cd /tmp/issue-78 && git push -u origin fix/issue-78
gh pr create --head fix/issue-78 --title "fix: ..." --body "..."
git worktree remove /tmp/issue-78
git worktree remove /tmp/issue-99
Why worktrees? Each agent works in its own isolated branch — no conflicts,
5+ parallel fixes possible.
PR Template (The Razor Standard)
When submitting PRs, use this format:
## Original Prompt
[Exact request/problem statement]
## What this does
[High-level description]
**Features:**
- [Key feature 1]
- [Key feature 2]
## Feature intent (maintainer-friendly)
[Why useful, how it fits, workflows it enables]
## Prompt history (timestamped)
- YYYY-MM-DD HH:MM UTC: [Step 1]
- YYYY-MM-DD HH:MM UTC: [Step 2]
## How I tested
1. [Test step] - Output: `[result]`
2. [Test step] - Result: [result]
## Implementation details
**New files:** `path/file.rs` — [description]
**Modified:** `path/file.rs` — [change]
⚠️ Rules
- Respect tool choice — if user asks for Codex, use Codex. Never substitute.
- Be patient — don't kill sessions just because they're slow.
- Monitor with process:log — check progress without interfering.
- workdir isolation — always set workdir to the relevant project directory.
- Parallel is fine — run many agents at once for batch work.
- Never work directly in the live assistant directory — clone to /tmp or use git worktree.