/onex:dispatch_workerfrom onex
Dispatches a background worker agent with role-templated prompts and auto-populated collision fences. Supports roles like fixer, designer, auditor for async task execution.
Ships in onex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Compile a worker dispatch spec through node_dispatch_worker and spawn a background agent.
Announce at start: "I'm using the dispatch-worker skill."
Autonomous execution: No human confirmation gate.
--dry-runis the only preview mechanism.
Required for all dispatched workers — enforced by
_COMMON_PREAMBLEinomnimarket/src/omnimarket/nodes/node_dispatch_worker/handlers/handler_dispatch_worker.py. Operating rule 4's final local test command isenv -u PYTHONPATH uv run pytest tests/ -v.
SendMessage to {reports_to}.
Never batch acks across multiple deliverables."Primary task done — awaiting further instruction or shutdown." then stop.
Ambient-idle looping after task completion is forbidden.# Inline YAML spec
/dispatch_worker "
name: pr-202-fix
team: daylight-0411
role: fixer
scope: Fix omnimarket#202 halt_conditions CodeRabbit findings
targets: [omnimarket#202, <TICKET>]
"
# From file
/dispatch_worker ~/docs/plans/workers/pr-202-fix.yaml
# Dry run (print compiled prompt, no spawn)
/dispatch_worker --dry-run "
name: vggp-designer
team: daylight-0411
role: designer
scope: Design VGGP inference pipeline
targets: [<TICKET>]
"
| Role | Purpose | Default cap |
|---|---|---|
watcher | CI watch loop, no code changes | 90 min |
fixer | TDD-first fix + hostile_reviewer + PR | 90 min |
designer | Design doc + hostile_reviewer + plan | 120 min |
auditor | Read-only investigation + findings doc | 60 min |
synthesizer | Reconcile cross-domain design docs | 90 min |
sweep | Short-lived cron pulse, one metrics line | 10 min |
ops | Long-lived stateful admin worker | 480 min |
name: <worker-handle> # required: lowercase, hyphens/underscores, max 64 chars
team: <team-name> # required
role: <role> # required: one of 7 values above
scope: "<goal description>" # required
targets: [<ticket>, <pr>, ...] # required: what this worker owns
collision_fences: [] # optional: auto-populated from TaskList if empty
reports_to: team-lead # optional: default team-lead
wall_clock_cap_min: 90 # optional: defaults by role (range: 5–480)
model: sonnet # optional: default sonnet
replace: false # optional: kill existing in_progress worker with same name
Immediately after the node compiles the worker prompt and before Agent() is
spawned, write a ModelDispatchRecord to
$ONEX_STATE_DIR/dispatches/<agent-id>.yaml so downstream hooks
(allowedTools audit, tool-call usage audit, consecutive-failure halt) can
reason about the dispatch:
from datetime import datetime, timezone
from omniclaude.hooks.lib.dispatch_record_writer import write_dispatch_record
from omniclaude.hooks.model_dispatch_record import ModelDispatchRecord
write_dispatch_record(
ModelDispatchRecord(
agent_id=spec["name"],
dispatched_at=datetime.now(timezone.utc),
dispatcher="onex:dispatch_worker",
ticket=spec["targets"][0],
allowed_tools=spec.get("allowedTools", []),
prompt_digest=prompt_digest,
parent_session_id=parent_session_id,
)
)
The PostToolUse post_tool_use_subagent_tool_log.sh hook appends a JSONL
line per subagent tool call to
$ONEX_STATE_DIR/dispatches/<agent-id>/tool-calls.jsonl when
ONEX_AGENT_ID is set in the subagent environment.
The Operating Rules are injected verbatim into every worker prompt by prompt.md
before spawning. They are auto-injected — dispatchers MUST NOT hand-restate them.
They are defined once, canonically, and referenced here rather than restated:
@_lib/dispatch-laws/helpers.md
This file previously carried a second hand-maintained copy which had drifted from the injected block: it declared itself verbatim, undercounted the rules, dropped one entirely, and abridged two others. Do NOT restate them here again.
node_dispatch_worker (omnimarket) — compiles the prompt templatedocs/design/dispatch-worker-skill-design.mdsrc/omniclaude/hooks/model_dispatch_record.py — dispatch record schemasrc/omniclaude/hooks/lib/dispatch_record_writer.py — writer/readersrc/omniclaude/hooks/model_resume_manifest.py — resume manifest schema ()src/omniclaude/hooks/lib/resume_manifest_writer.py — phase-boundary manifest writer ()What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (omninode-ai/omniclaude) — no native marketplace selected
npx claudepluginhub p/omninode-ai-onex-plugins-onexOther plugins' skills for the same job
128 skills in this plugin
/adversarial_pipelineAdversarial PipelineAutonomous 3-stage adversarial plan-to-ticket pipeline — design_to_plan → hostile_reviewer gate (≥3 issues required) → plan_to_tickets. All stages run as background agents. Zero foreground work./agent_healthcheck/onex:agent_healthcheck — dispatch-only shimDispatch-only shim for agent stall detection and recovery. All detection and recovery logic lives in node_worker_stall_recovery (omnimarket). The skill parses args, builds the input envelope, dispatches to the node, and renders the receipt./aislop_sweep