Code dispatch

From aaronnat23/disp8ch · View interactive version

Code dispatch is an AI agent skill from the GitHub repository aaronnat23/disp8ch. Delegate coding, file-system, and research tasks to a real CLI agent running on the user's machine.

How to use this skill

Skill file

Code Dispatch (ACP-style Coding Agent Delegation)

Delegate coding, file-system, and research tasks to a real CLI agent running on the user's machine.

The orchestrator stays clean — no token overhead, no context window bloat. The specialist executes.

When to use

Rules

Agent ID: Always agent: "claude" (not "claude-code"). Use "gemini" or "codex" only when explicitly requested.

Mode selection by channel:

Permission mode:

Timeout: Always set timeout_seconds (default 120, max 300). For complex refactors use 300.

Never nest: Do not call sessions_spawn from within a spawned session. The orchestrator dispatches; the specialist does the work.

Working directory: Always specify cwd pointing to the relevant project directory.

Example — Discord multi-step session

{
  "tool": "sessions_spawn",
  "agent": "claude",
  "mode": "session",
  "thread": true,
  "permission_mode": "approve-all",
  "cwd": "/path/to/project",
  "task": "Refactor the auth module to use JWT. Run tests after each file change.",
  "timeout_seconds": 300,
  "label": "Auth JWT refactor"
}

Example — one-shot on any channel

{
  "tool": "sessions_spawn",
  "agent": "claude",
  "mode": "run",
  "stream_to": "parent",
  "permission_mode": "approve-all",
  "cwd": "/path/to/project",
  "task": "Add a greet() function to src/utils.ts and export it.",
  "timeout_seconds": 120
}

After dispatch

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.