Dispatch

From the-agency-ai/the-agency · View interactive version

Dispatch is an AI agent skill from the GitHub repository the-agency-ai/the-agency. Manage dispatches — list, read, fetch, reply, create, resolve

How to use this skill

Skill file

<!--

Flag #62/#63: allowed-tools removed. Inherits Bash(*) from

.claude/settings.json. Restricting to specific subcommand patterns at the

skill level silently blocks agents on permission prompts the agent cannot

see — see dispatch #171 for the devex incident that surfaced this trap.

-->

Dispatch Management

Manage ISCP dispatches for inter-agent communication. Dispatches are indexed in the ISCP SQLite DB with payload files in git. All operations use integer dispatch IDs, not file paths.

Arguments

If empty, defaults to list.

Instructions

list

Run bash $CLAUDE_PROJECT_DIR/agency/tools/dispatch list $ARGUMENTS and display results.

read / fetch

Run bash $CLAUDE_PROJECT_DIR/agency/tools/dispatch read <id> or fetch <id>.

Summarize the content for the user.

reply

Quick response to an existing dispatch. Auto-resolves the recipient from the original sender, prefixes subject with "Re:", and sets the in_reply_to FK.

bash $CLAUDE_PROJECT_DIR/agency/tools/dispatch reply <id> "Your response message"

create

Create a new dispatch. The --to address must be fully qualified (repo/principal/agent).

bash $CLAUDE_PROJECT_DIR/agency/tools/dispatch create --to <addr> --subject <text> [--body <text>] [--type <type>] [--priority <p>]

resolve

Mark a dispatch as resolved, optionally linking a response dispatch:

bash $CLAUDE_PROJECT_DIR/agency/tools/dispatch resolve <id> [--response <id>]

check

Silent check for unread items. Returns JSON {"systemMessage": "..."} when items are waiting, silent exit 0 when empty. Used by the iscp-check hook.

status

Show the full record for a dispatch including timestamps, read_by, and payload path:

bash $CLAUDE_PROJECT_DIR/agency/tools/dispatch status <id>

Dispatch Workflow

  1. Receive: dispatch list → see what's waiting
  2. Peek: dispatch fetch <id> → inspect without committing
  3. Read: dispatch read <id> → commit to processing, marks as read
  4. Reply: dispatch reply <id> "message" → quick acknowledgment or response
  5. Resolve: dispatch resolve <id> → mark as done

Payload Resolution

Dispatch payloads are resolved transparently across branches and worktrees. The resolution ladder: local worktree → main checkout → git show all branches → scan all worktree directories. You don't need to merge main to read a dispatch — just dispatch read <id>.

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.