delegating-to-agents
Delegate bounded work to other AI agents while preserving context, ownership, and progress checks.
AI & Automationagentsdelegationorchestration
Delegating to Agents
When to Use
- Use when work should be handed to another AI agent with a complete prompt and progress checks.
- Use when you need to relay instructions to terminal or TUI agents without losing context.
Which agent to pick
- Coding (default) → Codex CLI. Strongest coding agent, especially for complex, long-running SWE tasks. It's on an unlimited-usage plan — effectively unlimited, don't ration it.
- Most other tasks → Pi Agent (
piin a cmux terminal). All Pi agents run opus-4.8-fast via OpenRouter at xhigh reasoning effort. - Frontend / design → Pi. Opus 4.8 Fast beats Codex on UI, styling, design.
- Heavy multi-step work: you as orchestrator + Codex CLI executing in a right-hand cmux pane is a solid default setup.
Sending prompts to a TUI agent
- ONE single line — never newlines in the message body. In a TUI, newline = Enter: a multi-line prompt submits at the first line and the rest arrives as fragmented mid-turn steering messages. Use ". " or "; " instead of line breaks, then one explicit enter. For long instructions, write them to a file and send:
read /tmp/task.md and follow it. - Wrap the prompt in plain double quotes — NEVER escaped.
cmux send --surface surface:N "your prompt". The recurring bug is emitting\"— in bash that's literal-broken and dies withunexpected EOF. Inside the prompt, avoid apo
Subscribers only
The full skill, its 1 bundled files and every download is included with every paid Complete AI plan.
Details
| Source | davidondrej/skills |
|---|---|
| License | MIT |
| Risk label | critical ("critical" means the skill may run commands or touch files — read before use) |
| Files | SKILL.md |
| Added | 2026-07-07 |
Related skills
agent-self-scheduling
Schedule AI agent runs with cron, loops, or external clocks while avoiding unsafe tight autonomous timers.
agy-delegate
Delegate coding tasks to the Google Antigravity CLI (`agy`) only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.
aider-delegate
Delegate coding tasks to Aider (`aider`) only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.
claude-delegate
Delegate coding tasks to a separate Claude Code CLI process or Claude session only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.
cline-delegate
Delegate coding tasks to the Cline CLI (`cline`) only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.
codex-delegate
Delegate coding tasks to the OpenAI Codex CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.
