~/.dispatch/config.yaml defines available backends, models, and aliases for worker dispatch. On first run, /dispatch auto-generates this file — no manual configuration required.
File Location
/dispatch.
Schema Overview
Fields
default
The default model to use when no model is specified in the dispatch command. Must match a key in
models: or aliases:.backends
Defines CLI command templates for each backend. Each backend has a
command field.The CLI command template to invoke this backend. Use
> for multi-line YAML strings.claude
claude
Claude Code CLI backend. Does not append
--model flag — the Claude CLI manages model selection internally.The
env -u flags prevent nested Claude Code sessions from inheriting environment variables.cursor
cursor
Cursor CLI (agent) backend. Appends Final command:
--model <model-id> automatically.agent -p --force --workspace "$(pwd)" --model gemini-3.1-procodex
codex
OpenAI Codex CLI backend. Appends Final command:
--model <model-id> automatically.codex exec --full-auto -C "$(pwd)" --model gpt-5.3-codexmodels
Map of model IDs to their backend configuration. Each model is a single line mapping to a backend.
aliases
Named shortcuts that resolve to a model and optionally prepend role-specific instructions to the worker prompt.
Backend-Specific Command Construction
How the dispatcher builds the final CLI command depends on the backend:Model Detection Rules
When auto-generating config or auto-adding models, the dispatcher applies these detection patterns:Claude Models
Claude Models
Any model ID containing
opus, sonnet, or haiku — including versioned variants.Examples:opussonnethaikusonnet-4.6opus-4.5-thinkingclaude-opus-4-6
backend: claude. Never route Claude models through cursor or codex backends.OpenAI Models
OpenAI Models
Any model ID containing
gpt, codex, o1, o3, or o4-mini.Examples:gpt-5.3-codexgpt-5.2gpt-4o1-previewo3-minio4-mini
backend: codex. Only fall back to cursor backend when Codex is not installed.Other Models
Other Models
Models that don’t match Claude or OpenAI patterns (e.g., Gemini, Anthropic versioned IDs).Examples:
gemini-3.1-progemini-2.5-flashclaude-3-opus-20240229
cursor backend when available.Modifying Config
You can modify the config using natural language via/dispatch:
Add a Model
- Runs
agent modelsto verify availability - Adds to
models:with appropriate backend - Writes updated config
Create an Alias
aliases: section:
Change Default
default: field.
Remove a Model
models: section.
Auto-Discovery
When you reference a model NOT in your config, the dispatcher automatically:Check availability
Run
agent models (if Cursor CLI exists) or check known patterns (Claude/Codex CLIs)Backward Compatibility
Old config format usingagents: is still recognized:
When the dispatcher detects the old format, it suggests migrating:This converts
agents: to the new backends: + models: + aliases: schema.Config Patterns
Multi-Provider Setup
Support Claude, OpenAI, and Gemini models:Role-Based Aliases
Define specialized workers for different tasks:Related
/dispatch Command
Command syntax and usage patterns
Plan Files
How workers track progress