omp-dispatch
Delegate work from Claude Code or Codex to subagents running on
omp, using your configured providers and models.
Claude Code keeps the familiar Agent argument shape and .claude/agents/*.md
definitions. Codex uses the same MCP server with background dispatch and polling.
Codex: see installation and workflow.
Previously measured startup cost for an empty task (Claude Code comparison;
Codex startup savings have not been measured):
| tokens |
|---|
| Claude Code | 53,272 |
| omp, tool-restricted | 10,322 |
What it gives you
Agent({ description, prompt, subagent_type: "reviewer", model: "sonnet" })
mcp__omp-dispatch__omp_agent({ description, prompt, subagent_type: "reviewer", model: "sonnet" })
Your existing agent definitions are read unmodified. tools:,
disallowedTools:, maxTurns: and model: all apply. A definition asking for
a tool omp has no equivalent for — Skill, an mcp__* tool — is refused,
naming the tool, rather than quietly running weakened.
Run controls:
omp_steer interrupts the turn an agent is in the middle of.
ask_supervisor lets a stuck agent ask you a question and wait.
omp_answer resumes it.
omp_doctor checks everything a dispatch depends on — including
whether omp's own SQLite databases (models, agent state, usage stats) are
actually writable — and names what to fix. The same checks run without the server:
bun <plugin>/dist/server.js --doctor.
omp_usage totals the session's dispatched runs, turns and cost.
- A background start acknowledges the resolved model and caps — a wrong
tier is catchable at dispatch time — and
omp_task_output accepts
include_diff to return a run's git diff with its report.
omp_wait waits on a set of runs at once — first to settle (default)
or all — returning early the moment the condition is met, with a per-run
status line (tool calls, cost, liveness age) on timeout. The polling
primitive for fan-outs.
- Foreground calls are block-bounded:
omp_agent and omp_send_message
return a handoff ("still running, collect with omp_task_output") after
~55s instead of letting a host's MCP call timeout kill them mid-flight —
the failure mode behind Codex's duplicated task notifications. Raise or
lower the bound with OMP_DISPATCH_BLOCK_MS; Claude Code is detected and
keeps true blocking.
- A settled report is served in full once per session: later fetches get
a compact tombstone with the footer and pointers (the diff surface stays
available via
include_diff), so a re-collect never re-bills the same
tokens.
- Definition-less dispatches run under a fire-and-forget reporting
contract: one reply, at most three bullets — changed files, verifying
command output, failures with raw output (each omitted when empty). No
narration, no restated diff, no causal theories.
- A dispatch that fails explains itself: the doctor's findings ride
along with the error, one call instead of two.
Install
These commands install into Claude Code. For Codex, use the
Codex setup guide.
This repository is its own marketplace, so adding it comes first — install
alone will not find the plugin.
claude plugin marketplace add jvsteiner/omp-dispatch
claude plugin install omp-dispatch@omp-dispatch
The two names are the same here because the marketplace and the plugin it
carries share a name. Inside a Claude Code session the same steps are
/plugin marketplace add jvsteiner/omp-dispatch then
/plugin install omp-dispatch@omp-dispatch.
To pick up later changes:
claude plugin marketplace update omp-dispatch
Requires bun and omp on PATH, with omp installed as a Bun package:
bun install -g @oh-my-pi/pi-coding-agent
The plugin ships as one bundled file with no dependencies to install. It
loads omp's RPC client from that omp installation, so a compiled single-file
omp does not work. omp must be version ^18.1.17; --doctor checks both.
Repository layout