dispatch-agent

A skill for sending work to an external agent through Agent Dispatch MCP tools and waiting for the result.

In plain words
What is it for?
Delegating work when the user names an external dispatch target or another skill requires dispatch.
Why use it?
It defines how to select a dispatch target, start one conversation, track it, and handle completion or failure.

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/conn-castle/agent-layer/dispatch-agent
Any agent
npx skills add conn-castle/agent-layer --skill dispatch-agent
Clone the repo
git clone --depth 1 https://github.com/conn-castle/agent-layer

Made for: Claude Code, Codex.

Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 405 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00049 $0.00405
Opus 5 $0.00024 $0.00202
Sonnet 5 $0.00010 $0.00081
Haiku 4.5 $0.00005 $0.00040

Measured 2d ago against content hash 2fc73a19a75d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dispatch-agent scanned grade A with 0 findings 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 2d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

internal/templates/skills-catalog/dispatch-agent/SKILL.md · 38 lines

What it actually says

Dispatch Agent

If the MCP tools are unavailable, report the missing server; do not substitute command-line calls.

  1. Call dispatch_options; map the requested target to agent, model, and reasoning_effort. Ask if ambiguous.
  2. Call dispatch_start once with exactly one prompt source and retain its session handle. Do not replace active work.
  3. Call dispatch_wait with the handle. If it returns running or is interrupted, call it again with the same handle. On completed, read the Markdown file at result_path; report failed or cancelled.

For parallel work, call dispatch_start once per independent conversation and retain each handle. Call dispatch_wait for those handles in parallel when supported.

Continuing a conversation

After a terminal result, use dispatch_continue only for useful follow-up, requested information, or corrective action within the current scope. It preserves the provider conversation context. Pass the same handle and exactly one prompt source, then call dispatch_wait again.

Use dispatch_start when fresh context is required, not dispatch_continue.

Cancelling a conversation

dispatch_cancel permanently stops active provider work. Call it only when the user explicitly requests cancellation or an active skill explicitly instructs you to abandon the dispatch.

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. 2d ago First seen · 38 lines · 49 tokens per session scan A 2fc73a19a75d

Subscribe to this mod's changes

dispatch-agent is a skill published in the GitHub repository conn-castle/agent-layer (10 stars, last pushed 3d ago), licensed MIT. It adds 49 tokens to every session and 405 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

deepagent-research-delegation

Use this skill when external references or broader codebase discovery is required; delegate to a research subagent and synthesize findings.

ljxpython/ai-agent-platform · 33 tokens

copilotkit-setup

Use when adding CopilotKit to an existing project or bootstrapping a new CopilotKit project from scratch. Covers framework detection, package installation, runtime wiring (managed Intelligence or self-hosted SSE), provider setup, and first working chat integration.

CopilotKit/CopilotKit · 56 tokens

copilotkit-channels

Use for the CODE half of a managed Intelligence Channel with Slack or Microsoft Teams: customising the Channel a CLI-scaffolded project already ships, or — for a project the CLI did not generate — writing the Channel declaration, the long-running host, and the awaited activation call. Teams provider setup is in scope…

CopilotKit/CopilotKit · 112 tokens

runtime

@copilotkit/runtime — mount a fetch-native CopilotRuntime on any JS server, wire middleware, pick an AgentRunner, instantiate BuiltInAgent (Factory Mode with TanStack AI is the preferred default) or plug in any of 12 external agent frameworks (Mastra, LangGraph, CrewAI Crews/Flows, PydanticAI, ADK, LlamaIndex, Agno…

CopilotKit/CopilotKit · 150 tokens

copilotkit-integrations

Use when wiring an external agent framework (LangGraph, CrewAI, PydanticAI, Mastra, ADK, LlamaIndex, Agno, Strands, Microsoft Agent Framework, or others) into a CopilotKit application via the AG-UI protocol.

CopilotKit/CopilotKit · 61 tokens

a2ui-renderer

Render A2UI (Agent-to-UI declarative surfaces) in CopilotKit v2. Enable the runtime via CopilotRuntime({ a2ui: {...} }), then enable the provider via . Auto-activates via /info — do NOT manually pass renderActivityMessages. createA2UIMessageRenderer ships from @copilotkit/react-core/v2; low-level primitives…

CopilotKit/CopilotKit · 175 tokens