delegate-coding-agent
Route coding work to another local coding-agent CLI through the llm-provider MCP server. Use when a task benefits from a powerful model for difficult…
by manishiitg★ 16 GitHub stars
Install delegate-coding-agent in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Delegate Coding Agent
Choose the smallest capable model, delegate a precise task, and verify the result in the host session.
Choose a Route
Call list_coding_agents, then call list_coding_agent_models for the selected provider. Treat the live catalog and the user's preference as authoritative; model names and account availability can change.
| Route | Use for | Current examples |
|---|---|---|
| Powerful | Ambiguous architecture, cross-module debugging, security-sensitive work, difficult planning, or final review of high-risk changes | Codex gpt-6-astra or gpt-6.2-sol; Claude claude-opus-5-5; Pi google/gemini-3.1-pro-preview or zai/glm-5.3 |
| Balanced | Normal feature work, refactors, tool-heavy implementation, bug investigation, and tests | Codex gpt-6.2-sol; Claude claude-sonnet-5-5; Cursor composer-2.5; Pi google/gemini-3.8-flash, minimax/MiniMax-M3, or moonshotai/kimi-k3 |
| Fast | Mechanical edits, focused UI iteration, simple test fixes, repository search, summaries, and other bounded work with objective checks | Codex gpt-5.4-mini; Claude claude-haiku-4-5-20251001; Pi google/gemini-3.5-flash-lite |
Use these as routing hints, not benchmark rankings. Prefer auto when the user has no model preference and provider-native routing is more useful than a fixed model.
Delegate
- Decide whether delegation is worth the startup and verification overhead. Keep tiny tasks in the host session.
- Select a provider and model from the live tools. Use a powerful route when requirements or correctness are uncertain; use a balanced or fast route only when the task is bounded and independently verifiable.
- Give
delegate_coding_agentone clear outcome. Include the allowed scope, constraints, non-goals, relevant verification commands, and the expected response. - Pass the current trusted project root as
working_dirautomatically. Do not ask the user to enter it. - Record the returned
job_id. The delegation is asynchronous. - Call
get_coding_agent_jobonly afterpoll_after_seconds. Continue until the status iscompleted,failed,cancelled, ortimed_out. - Keep ordinary polling lightweight. When the user asks what is happening or progress appears stale, call
get_coding_agent_jobwithinclude_terminal_output: trueto receive the bounded plain-text tmux tail. Usetmux_capture_commandonly for deeper history. - Read the terminal result, inspect the actual diff, and run relevant tests before reporting completion.
Write a Delegation Task
Use this shape:
Outcome: <one concrete result>
Scope: <files or subsystem the agent may change>
Constraints: <behavior to preserve, dirty-worktree rules, and non-goals>
Verify: <specific tests, checks, or observable result>
Return: <short summary, changed files, and verification output>
For fast models, make the scope especially narrow and provide deterministic checks. Use a powerful model to resolve unclear requirements or review risky work before assigning a bounded implementation to a faster model.
Handle Problems
- Respect
poll_after_seconds; do not poll continuously. - If a job appears stalled, request
include_terminal_outputbefore using the deepertmux_capture_commandor cancelling it. - Never run
tmux_attach_commandfrom the host agent; it is interactive and intended for a human terminal. - If a job fails or times out, read its error, reduce the task scope, and retry once with
auto, a stronger model, or another installed provider. - Cancel only when the work is no longer needed or cannot make useful progress.
- Do not recursively ask a delegated agent to delegate again.
- Preserve existing user changes and never treat a provider's text response as proof that its edits or tests are correct.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the delegate-coding-agent skill do?
Route coding work to another local coding-agent CLI through the llm-provider MCP server. Use when a task benefits from a powerful model for difficult reasoning or a faster, lower-cost model for bounded implementation, tests, investigation, or review.
How do I install the delegate-coding-agent skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the delegate-coding-agent skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…