一键导入
dispatch-task
Dispatch a bead-tracked task via ao spawn/ao send, register the mapping, and ack in Slack thread.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Dispatch a bead-tracked task via ao spawn/ao send, register the mapping, and ack in Slack thread.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when dispatching work through the Hermes gateway with /claw, especially when the task may resolve slash commands or hand off into AO worker orchestration.
12-hour autonomous evolution loop — observe, measure, diagnose, fix, repeat every 10min. Drives zero-touch rate up by finding friction and dispatching fixes.
Custom evolve loop for jleechanbrain orchestrator — drains dropped Slack thread backlog via /claw, fixes hermes issues, proposes new work items. Max 50 items, newest-first.
jleechanbrain / Hermes-specific harness — gateway, canary, deploy, lane backlog, staging vs prod. Use with user-scope harness-engineering.
Delegate coding change tasks to Agent-Orchestrator (AO). Triggered by the keyword "agento" anywhere in a message, or by default for any coding task. Never use mctrl unless explicitly requested.
Spawn an Agent-Orchestrator (AO) worker that uses the minimax CLI with the M3 model (via the minimax Anthropic-compatible API). Use when: the task should be dispatched to a worker that uses minimax M3 specifically, when the user says 'use minimax', 'use the M3 model', 'use the minimax worker', 'ao spawn minimax', or 'minimax CLI for AO'. This skill verifies the env (MINIMAX_MODEL, MINIMAX_API_KEY, ANTHROPIC_BASE_URL) end-to-end, then runs `ao spawn --agent minimax`. Verified 2026-06-13 against session ao-6355 / PR #678.
| name | dispatch-task |
| version | 1.0.0 |
| description | Dispatch a bead-tracked task via ao spawn/ao send, register the mapping, and ack in Slack thread. |
Use this skill when jleechan asks you to work on a task and you decide to dispatch it to an agent.
sessions_spawn for coding taskssessions_spawn is hermes's internal nested-agent tool. It does NOT create a git worktree, does NOT handle PR lifecycle, pastes prompts without auto-submitting Enter, and allows silent task rewriting. It is banned for any task involving code, files, or PRs.
Always use this skill and the ao CLI (agent-orchestrator), not Hermes's nested sessions_spawn.
Build the task body you pass to ao send (via --file) in two parts:
/mem-search or the memory MCP: past failures, known gotchas, patterns that apply to this taskFinal task = original text + appended memory context. Never replace the user's words with a summary. If the original is long, that is intentional.
# If bead exists:
br update ORCH-xxx --status in_progress
# If new task (match CLAUDE.md / PROJECTS_BEADS.md):
br create "short description" --type task --priority 1
# Note the ORCH-xxx ID from output
This is the Deterministic Slack Thread Response Contract.
Record the Slack context from jleechan's original message:
SLACK_TRIGGER_TS = the ts field from jleechan's message (e.g. 1772857900.668299)SLACK_TRIGGER_CHANNEL = the channel ID (e.g. C0AH3RY3DK6)Reply to jleechan's original Slack message in the same thread:
On it. Spawning agent for ORCH-xxx — will reply here when done.
While the dispatched task is active, supervisor/nudge automation must post progress in-thread at least every 5 minutes until done (or blocked).
Proof-First Requirement: When the supervisor posts completion, it MUST include at least one reviewable proof URL (PR, commit, or artifact):
https://github.com/OWNER/REPO/pull/NUMBERhttps://github.com/OWNER/REPO/commit/SHAAlways search memories before writing the task prompt. Use /mem-search or the memory MCP to find:
Inject relevant learnings into the task prompt to prevent repeat failures.
First, determine the ao project ID from the bead or context:
# Look up which project the bead belongs to
ao projects list # shows all configured projects and their IDs
br show ORCH-xxx # bead description often names the repo/project
Example IDs that sometimes appear in configs include jleechanbrain, worldai, mctrl, and agent-orchestrator. Always confirm the correct ID with ao projects list and the bead/repo context—do not pick one from this list by guesswork.
If jleechan explicitly requests Codex (or another agent CLI), use the override flags your ao spawn supports (ao spawn --help); defaults live under defaults.agent in agent-orchestrator.yaml. Do not fall back to sessions_spawn.
Then spawn and send:
# 1. Create worktree + session
ao spawn ORCH-xxx -p <project-id>
# 2. Send task verbatim (auto-submits — no manual Enter needed)
TASK_FILE=$(mktemp)
trap 'rm -f "$TASK_FILE"' EXIT
cat > "$TASK_FILE" <<'TASK'
<full task description enriched with memory learnings>
TASK
ao send <session-name> --file "$TASK_FILE"
If ao spawn or ao send fails, report the failure instead of claiming the task was queued.
For GitHub/PR automation, the lifecycle lane should map directly into this
dispatch path. comment-validation, fix-comment, and fixpr are mctrl
lanes, not Mission Control board tasks.
When the task involves making a PR to a different repo than the worktree:
gh pr create --repo owner/repo --base main --head <branch> to PR cross-repogh pr create --repo jleechanorg/mctrl_test --base mainEnsure the task text instructs the agent to push before it stops. Include wording like:
After making and committing the change, run
git push origin <branch>and only then stop.
The ao spawn command prints the session name. Note it for tracking.
Update bead notes with the session name and Slack context so the supervisor knows which thread to reply to:
br update ORCH-xxx --append-notes "Dispatched to session <session-name>. slack_trigger_ts=<SLACK_TRIGGER_TS> slack_trigger_channel=<SLACK_TRIGGER_CHANNEL>. Supervisor watching."
The mctrl supervisor reads slack_trigger_ts and slack_trigger_channel from bead notes to post the completion reply in the correct Slack thread.
The mctrl supervisor loop (ai.mctrl.supervisor launchd agent) runs every 30s and:
git log start_sha..HEAD for commits and verifies the branch is reachable on a configured remoteYou do not need to poll. The supervisor handles completion notification, but it will only classify the task as finished if the review surface exists on remote.
ao spawn creates an isolated git worktree for each task automatically (configured in agent-orchestrator.yaml)ao spawn fails, check that ao is on PATH and agent-orchestrator is properly configured