Coding Agent
Use bash to delegate coding work to Codex, Claude Code, OpenCode, or Pi.
Rules
- Use
pty:trueforcodex,pi, andopencode. - Do not use PTY for
claude; useclaude --permission-mode bypassPermissions --print. - Set
workdirto the project you want the agent to see. - For Codex scratch work, create a temp git repo first.
- For PR review, use a temp clone or git worktree, not the live checkout.
- For long jobs, use
background:trueand monitor withprocess.
Good defaults
# Codex
bash pty:true workdir:~/project command:"codex exec --full-auto 'Implement the fix'"
# Claude Code
bash workdir:~/project command:"claude --permission-mode bypassPermissions --print 'Review this module'"
# Background run
bash pty:true workdir:~/project background:true command:"codex exec --full-auto 'Refactor auth flow'"
process action:log sessionId:<id>
Process actions
listpolllogwritesubmitkill