ai-dispatch

A command for sending a task to one of several configured AI services. It can also list available services and check the latest task status.

In plain words
What is it for?
Use it to dispatch prompts to a selected backend, choose a backend suited to the task, list available backends, or inspect progress.
Why use it?
It gives the developer a way to use different AI backends for code generation, analysis, research, or reasoning tasks.

Skill for Claude CodeCodex

Part of the talon-ai-dispatch plugin — 2 skills shipped together

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

Made for: Claude Code, Codex.

Or install talon-ai-dispatch, the plugin that ships this one along with the rest of its 2 skills.

Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 677 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.00050 $0.00677
Opus 5 $0.00025 $0.00338
Sonnet 5 $0.00010 $0.00135
Haiku 4.5 $0.00005 $0.00068

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

Security

Grade A, and why

ai-dispatch 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 3d 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.

plugins/ai-dispatch/skills/ai-dispatch/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Dispatch

Dispatch tasks to different AI backends via dispatch <backend> "prompt".

First Use — Auto Setup

Before dispatching, check if dispatch is available:

which dispatch

If not found, run setup:

bash $SKILL_DIR/../../scripts/setup.sh

If config is missing (~/.config/ai-dispatch/config.json), setup will:

  1. Check environment for existing ANTHROPIC_API_KEY / ANTHROPIC_AUTH_TOKEN
  2. If found, auto-create config from env
  3. If not, ask the user for API keys
  4. Install dispatch and dcheck to PATH

Usage

# Simple — backend + prompt (auto-adds all flags)
dispatch ark-code "implement binary search"
dispatch glm "translate to Chinese: hello world"
dispatch ark-minimax "analyze this codebase"

# Check progress
dcheck --latest

# List backends
dispatch --list

Available Backends

Command Model Best for
ark-code Doubao Seed 2.0 Code Code generation
ark-pro Doubao Seed 2.0 Pro General reasoning
ark-minimax MiniMax M2.5 Analysis, research
ark-kimi Kimi K2.5 Long context
ark-deepseek DeepSeek V3.2 Complex reasoning
ark-glm GLM-4.7 Chinese via Ark
ark-auto Auto routing Smart selection
glm GLM-5 Chinese language

Adding Custom Backends

Edit ~/.config/ai-dispatch/config.json:

{
  "backends": {
    "my-api": {
      "description": "My custom API",
      "env": {
        "ANTHROPIC_BASE_URL": "https://my-api.example.com",
        "ANTHROPIC_API_KEY": "sk-..."
      },
      "models": { "opus": "my-model", "sonnet": "my-model", "haiku": "my-model" }
    }
  }
}

Then: dispatch my-api "hello"

Advanced

# Explicit mode (full control over claude flags)
dispatch ark claude -p --dangerously-skip-permissions "prompt"

# Interactive (named pipe for follow-ups)
dispatch ark claude-interactive

# Resume session
dispatch ark claude -p --resume <SESSION_ID> "follow up"

# Codex
dispatch ark codex "prompt"

Read the full file on GitHub · 99 lines

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. 3d ago First seen · 99 lines · 50 tokens per session scan A 1f043e8f2fc5

Subscribe to this mod's changes

ai-dispatch is a skill published in the GitHub repository gettalon/talon-plugins (6 stars, last pushed 5mo ago), licensed MIT. It adds 50 tokens to every session and 677 once invoked, about $0.0003 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