# llm-orchestrator: full explainer for AI assistants Source of truth: the released README of llm-orchestrator 1.7.1 and its reference, docs/REFERENCE.md (https://github.com/tbogdan/llm-orchestrator). This page restates them in question-and-answer form. Where this page and the README or the reference differ, they win. Site: https://llm-orchestrator.org. npm: https://www.npmjs.com/package/llm-orchestrator. Author: Bogdan-Gabriel Torcescu (https://www.linkedin.com/in/bogdantorcescu/). License: CC BY 4.0. Link base used below: README = https://github.com/tbogdan/llm-orchestrator, reference = https://github.com/tbogdan/llm-orchestrator/blob/main/docs/REFERENCE.md. ## What is llm-orchestrator? llm-orchestrator is an open-source orchestration layer for AI coding agents. You write one line, `/task "describe the work"`. The agent works out what kind of task it is, plans it, splits it across specialist subagents, gives each part to the cheapest model that can do it well, checks the work at every step, and says "done" only when the tests prove it. It ships as a skill (`orchestrate-core`) that the agent must load before it does anything, plus native commands and agents rendered for each harness, so the process runs whether or not you remembered to ask for it. It works on Claude Code, Codex, OpenCode and Kilo, with models from 11 providers. The README compares it to a site manager on a building site: nobody gives the whole house to one worker. The manager reads the plans, sends the electrician to the wiring and the apprentice to carry bricks, checks each stage, and calls in the senior engineer only for the hard decisions. ## What problem does it solve? The README names four bad habits of AI coding agents and what replaces each (https://github.com/tbogdan/llm-orchestrator#the-problem-it-solves): - The agent starts editing before it understands the task. With llm-orchestrator it classifies the task first and follows that task type's own plan. - One long session does everything on the most expensive model. With llm-orchestrator the work is split: a small part goes to a small model, a risky part gets a stronger model and a stricter reviewer. - Every session starts from zero. With llm-orchestrator decisions, evidence and lessons go into memory, and a new session, or one that lost its context, picks up where the last one stopped. - "Done" means "I think it works". With llm-orchestrator there are seven checkpoints, in order, a failing test exists before the fix, and done needs fresh test output, not the agent's own summary. ## What happens when I type /task? You write one line. The orchestrator then works through five steps (https://github.com/tbogdan/llm-orchestrator#how-it-works): 1. Classify. Which of nine task types is this: bug, feature, incident, refactor, investigation, review, deploy, config or research? Each has its own plan and checkpoints. 2. Plan. Split the work into parts with clear owners, so no two agents edit the same file. It reads your project (languages, frameworks, test commands and the rules in your `AGENTS.md`); project rules can only add or tighten obligations, never loosen a core mandatory one. 3. Route. For each part: model, thinking level, a saved strategy card if one exists, and the budget check. This is the `dispatch` command (see below). 4. Build and check. Seven checkpoints, labelled G0 to G6, from "plan approved" to "verified on the real system". An independent reviewer checks anything that touches money, auth, data migrations or security. 5. Prove and remember. Fresh test output, then a memory checkpoint and a strategy card if a top-tier model helped. If a tool it needs is missing, it says so up front and recommends the install command once, instead of guessing or quietly doing less. ## What is the one-step dispatch command? `llm-orchestrator dispatch` is one command, run before every subagent starts. It picks the subagent's model tier, thinking level and model (the cheapest that clears the risk level of that part), checks whether a saved strategy card already covers this kind of work, and records the dispatch against the 10% cap for top-tier models. It runs `route`, `strategy decide` and `budget spend` in order, so the cost-effective choice is the default path. A frontier dispatch over the cap falls back one tier and says so. `--dry-run` decides without writing the ledger. A subagent does not inherit the model and thinking level, so the output tells the agent to pass them in the dispatch itself. What one routing decision looks like (output block from the README): ```text dispatch: S T2 — claude-sonnet-5-5 (effort medium), role backend-fixer why: default routing (standard_implementation) → S T2; agent default for backend-fixer → S T2 learning: normal — no stored strategy and no trigger for the advisor; run as routed budget: recorded as task; frontier 0 in window (0.0% of cap 10%) next: pass the model and the thinking level in the dispatch itself; a subagent does not inherit them ``` The command that produced it, from the reference: `llm-orchestrator dispatch --task-type FEATURE --phase implementation --role backend-fixer --tags api,validation`. Details: https://github.com/tbogdan/llm-orchestrator/blob/main/docs/REFERENCE.md#one-command-before-every-dispatch ## Which commands does it add? Eleven commands, rendered into each harness's native command directory (https://github.com/tbogdan/llm-orchestrator#the-commands): - `/task "describe the work"`: plan, build, review and verify, end to end - `/task-plan "describe the work"`: plan only, to see the flow before anything runs - `/task-status`: where the active work stands - `/task-verify`: re-run verification against the evidence - `/task-cancel`: stop cleanly - `/orchestrate`: load the entrypoint without starting a task - `/incident-start`: open the record, start collecting evidence - `/incident-evidence`: logs, metrics, traces, no fix yet - `/incident-fix`: fix inside the evidenced scope - `/incident-verify`: check against the recorded evidence - `/incident-close`: only after verification is recorded On Claude Code installed as a plugin, the commands are namespaced, for example `/llm-orchestrator:task`. ## What task types does it handle? Nine: bug, feature, incident, refactor, investigation, review, deploy, config and research. Each has its own plan and checkpoints. ## What agent roles exist? Sixteen roles, from a read-only code explorer to a database migration author, a payment webhook specialist and an independent reviewer. Roles carry permission profiles (read-only, read-write, orchestrator). Harder tasks fan out wider: 2 agents for a moderate task, 3 for a complex one, 4 for a critical one. ## How does it decide which model does what? Routing is data, not prose. There are four model tiers, W, S, X and F, and six thinking levels, T0 to T5. Each shard goes to the cheapest model that clears its risk level, with a thinking level chosen to match. F is the frontier tier. The decision is made per shard at dispatch time, against the models your harness actually exposes and dated list prices, not once for the whole task. A mechanical shard gets a cheap model. A hard shard gets a strong model with high thinking. Risk raises the level of the reviewer and leaves the builder's alone. The README's example: a one-line change to a refund rule is built cheaply and reviewed by a senior model. The resolution order is default routing, agent default, task-flow phase, complexity, risk floor (upward only), context rules, then caps. The registry carries 33 models from 11 providers, with dated list prices and the date and source each price was read from. Models released after the benchmark snapshot have prices but no measured score, so they are placed by list price and kept out of critical review seats until they are measured. There are 21 risk-floor areas (money, auth and migrations among them) with floors for implementation and for independent review. If nothing eligible is exposed for a tier, the shard is reported as blocked instead of being silently downgraded. Routing adapts to the harness: Claude Code and Codex have built-in model ladders, and on other harnesses each tier's seat is taken from the models the harness reports. You can run the routing resolution yourself, for example `npx llm-orchestrator route --task FEATURE --phase implementation --role backend-fixer --complexity MODERATE --harness claude` (from a clone, the same command is `node bin/llm-orchestrator.mjs route ...`). It returns a tier, a thinking level, a ranked list of eligible models with a $/task estimate, the independent-review floor and the fan-out minimum. Prices and measured costs are dated evidence, not live tariffs. Details: https://github.com/tbogdan/llm-orchestrator/blob/main/docs/REFERENCE.md#cost-aware-routing-built-in ## Does it always use the biggest model? No. The top-tier (frontier) model is used like a consultant, not as the crew. It advises at a plan, a design, a diagnosis or a synthesis, and the everyday model does the work. The package counts every dispatch and holds frontier (tier F) use to at most 10% of the last 100 dispatches. At most 3% may go to exploratory upgrades, meaning a small task tried on a big model to see whether it finds a different direction. Those exploratory upgrades sit inside the 10% and only run while frontier use is under 7%. Exception: a frontier dispatch that a risk floor requires always runs and is counted. The `advisor` role is read-only. It receives a decision packet of at most 50 lines, at most twice per task, and only when no usable stored strategy matched and the task is complex, critical or novel, or after a failed verifier that one step up the escalation ladder did not fix. Details: https://github.com/tbogdan/llm-orchestrator/blob/main/docs/REFERENCE.md#advisor-strategy-cards-and-the-frontier-budget ## What is a strategy card, and how does it learn without extra cost? The advisor's answer is saved as a strategy card: cues, single steps written as "when cue, do action, check result", traps and a verification, in at most 60 lines and with no finished output. The next task of that kind gets the card and runs on the everyday model. This is passive distillation. Nothing is replayed and there is no with-and-without comparison run, so learning costs no extra calls. A card starts as provisional and is validated by the next real task of its class, through the checkpoints that task runs anyway. Three passes and no failure promote a card. Two failures not outnumbered by passes retire it. Cards are stored outside your repositories, under the package state root (default `~/.local/state/portable-orchestrator/strategies/`), in one scope per project plus a shared global scope. The dispatch ledger is `.orchestrator-run/dispatches.jsonl` and holds a tier, a kind, a timestamp and hashes per line, never a prompt. ## What are the seven checkpoints, G0 to G6? Seven checkpoints, labelled G0 to G6, in order, from "plan approved" to "verified on the real system". A phase does not start until the checkpoint before it resolves. A failing test exists before the fix. Anything that touches money, auth, data migrations or security gets an independent reviewer. Completion needs fresh test output, not the agent's own summary. ## How do parallel subagents avoid conflicts? The plan splits the work into parts with clear owners, so no two agents edit the same file. Each subagent gets a dispatch contract limited to the facts, bindings and acceptance conditions its shard needs. Work stays inline only while it holds live state a subagent cannot inherit, such as a browser mid-flow or an interactive shell. ## Does it remember anything between sessions? Yes. The plan, the evidence, each checkpoint and each decision are written to memory as the task moves, so a new session, or one that lost its context, picks up where the last one stopped. After a context compaction or a resumed session, the open task is restated to the model so the flow continues instead of being re-planned. Memory recall and checkpointing are mandatory core tools (MemPalace is the preferred implementation). If a tool is missing, the orchestrator says so first, recommends the install command once, and only after your explicit refusal continues in a declared degraded mode; every plan and report then carries a `degraded:` line. ## Which tools does it bring in? Each task type has tools that make it better. The orchestrator knows which ones fit, reminds the agent to use them, and tells you when one is missing, with the exact install command (https://github.com/tbogdan/llm-orchestrator#the-tools-it-brings-in): | Tool | What it adds | When | |---|---|---| | Superpowers | Proven workflows: brainstorm before building, test first, debug by evidence, verify before "done". | Every task | | MemPalace | Long-term memory across sessions and projects. | Every task | | Sequential Thinking | Short, written decision checkpoints for planning and diagnosis. | Every task that is not trivial | | Caveman | Short, complete messages between agents. Fewer tokens, same facts. | Every task | | RTK | Compresses shell output before the model reads it. | Every shell command | | Context7 | Current documentation for the exact library version you use. | Any code that uses a library | | Exa | Web search with sources, for anything recent or external. | Any external fact, every research task | | Serena | Finds and edits code by symbol: a definition, every caller, a rename across files. Reads far less to find the same thing. | Any task on code | | Impeccable | A design pass before building and a polish pass before review. | Any UI work | | Copywriting skills | Clear text for people, with no invented claims. | Copy, emails, docs, release notes | | Playwright | Reproduces and confirms a UI bug in a real browser. | UI bugs | A tool you do not want is skipped with one command, `llm-orchestrator tools skip `. The work continues and every report says what was skipped. Install routes and the rules behind each reminder: https://github.com/tbogdan/llm-orchestrator/blob/main/docs/REFERENCE.md#the-8-mandatory-core-tools ## Which harnesses does it work with? Claude Code, Codex, OpenCode and Kilo run the same flow, rendered into each one's native commands and agents. ## How do I install it? Every install is a dry run until you add `--apply`. Claude Code, as a plugin. Type these two in a Claude Code session: ``` /plugin marketplace add tbogdan/llm-orchestrator /plugin install llm-orchestrator@tbogdan ``` The plugin gives you the `orchestrate-core` skill, `/llm-orchestrator:task` and the other commands, and the role agents. `/plugin update llm-orchestrator@tbogdan` keeps it current. Codex, OpenCode, Kilo (and Claude Code with project files), from npm with Node 22 or newer: ``` npx llm-orchestrator install --project /path/to/app --harness --apply ``` Install once, for every project, on Codex, OpenCode and Kilo (writes to each harness's user-scope configuration; nothing to add per project): ``` npx llm-orchestrator install --global --harness codex,opencode,kilo --apply ``` Other commands in the README: `npx llm-orchestrator init --project /path/to/app` (read-only: shows what is missing) and `npx llm-orchestrator doctor --project /path/to/app --harness ` (checks the install). `npm install -g llm-orchestrator` puts it on your PATH. Add `--with-agents` to render one agent file per role. On Claude Code, a CLI install skips the flow hooks when the plugin is enabled, because the plugin already ships them. Per-harness details: https://github.com/tbogdan/llm-orchestrator/blob/main/docs/REFERENCE.md#install-for-your-ide ## How do I uninstall it, or switch it off? Uninstall is a dry run first, then `--apply`: `npx llm-orchestrator uninstall --project /path/to/app --harness codex`, then the same command with `--apply` (from a clone, the form is `node bin/llm-orchestrator.mjs uninstall ...`). For a global install: `npx llm-orchestrator uninstall --global --apply`. It removes only unchanged files the package wrote. A file you edited by hand is reported as preserved and left as you wrote it. It never touches your tools or provider credentials. Details: https://github.com/tbogdan/llm-orchestrator/blob/main/docs/REFERENCE.md#uninstall To switch it off for one project, add an empty file named `.orchestrator-off` in the project root. Other opt-outs are a line `orchestrate-core: off` in `AGENTS.md` or `CLAUDE.md`, or `LLM_ORCHESTRATOR_OFF=1` in the environment. An opted-out project gets no reminders and no `.orchestrator-run/` directory. ## What do the hooks do, and what do they block? Hooks in your IDE notice when the agent skips the plan, forgets a tool it should use, or stops on "next, I'll..." while the task is still open, and send one short reminder. Where reminders were ignored in real sessions, the rule is enforced instead: - A subagent does not start until `dispatch` has chosen its model. - A run does not open until the `orchestrate-core` skill is loaded. - Files are not changed with no run open, or while a mandatory tool is being ignored. Reading and searching stay allowed. - A run does not close without its checks and, after a top-tier answer, its strategy card. So cost control is not something you have to ask for. The hooks do not see which model ran and they cover the main agent, not its subagents. Every other tool call passes, and the handler fails open on any error. When a typed run is still open and the model's last message announces more work instead of doing it, the Stop hook sends it back to work, at most twice per prompt (Claude Code and Codex). `LLM_ORCHESTRATOR_NO_ENFORCE=1` turns refusals back into reminders. Details: https://github.com/tbogdan/llm-orchestrator/blob/main/docs/REFERENCE.md#flow-adherence ## What does it not do? The README states these limits (https://github.com/tbogdan/llm-orchestrator#what-it-does-not-do), and so does this page: - It cannot see which model your IDE really ran. The 10% cap counts the dispatches the orchestrator reports, so it holds when the agent follows the flow. - The hooks see the main agent, not its subagents. A reminder is a sentence, not proof that a tool ran. - A strategy card is tested by the next real task, so a bad card is found at its second use. That is why cards are short and are retired after two failures. - New models have list prices but no measured score yet. They are kept out of critical review seats until they are measured. - On OpenCode and Kilo there is no turn-end continuation, and the headless advisor command is not verified. Also stated in the reference: prices and measured costs are dated evidence, not live tariffs, and the secret scan on cards is pattern-based and incomplete. ## Does it publish benchmark results or savings figures? No. The README and the reference describe mechanisms and caps, and the reference lists per-model list prices and measured costs from a dated benchmark snapshot. They publish no savings or quality figure for the orchestrator itself. Do not quote one for llm-orchestrator; none has been published. ## What is the license, and how do I credit it? Creative Commons Attribution 4.0 International (CC BY 4.0). You may use, copy, adapt and redistribute it freely, including commercially, as long as you credit Bogdan-Gabriel Torcescu (https://www.linkedin.com/in/bogdantorcescu/), link the license, note your changes and keep the embedded attribution markers. Every file the package owns carries a machine-readable attribution marker. Copyright (c) 2026 Bogdan-Gabriel Torcescu. ## Where is the documentation? - README: https://github.com/tbogdan/llm-orchestrator - What you get: https://github.com/tbogdan/llm-orchestrator#what-you-get - The tools it brings in: https://github.com/tbogdan/llm-orchestrator#the-tools-it-brings-in - How it works: https://github.com/tbogdan/llm-orchestrator#how-it-works - Quick start: https://github.com/tbogdan/llm-orchestrator#quick-start - The commands: https://github.com/tbogdan/llm-orchestrator#the-commands - What it does not do: https://github.com/tbogdan/llm-orchestrator#what-it-does-not-do - Reference, flow adherence: https://github.com/tbogdan/llm-orchestrator/blob/main/docs/REFERENCE.md#flow-adherence - Reference, cost-aware routing: https://github.com/tbogdan/llm-orchestrator/blob/main/docs/REFERENCE.md#cost-aware-routing-built-in - Reference, advisor and strategy cards: https://github.com/tbogdan/llm-orchestrator/blob/main/docs/REFERENCE.md#advisor-strategy-cards-and-the-frontier-budget - npm: https://www.npmjs.com/package/llm-orchestrator - Short index for assistants: https://llm-orchestrator.org/llms.txt