orchestrate

orchestrate is a command for Claude Code from egorfedorov/claude-context-optimizer. It costs 0 tokens per session (451 once invoked), scanned A, original, MIT.

A workflow for splitting a long coding task between a main agent and smaller scout and runner agents. It keeps research separate from decisions and edits, then asks for evidence such as file paths and line numbers.

In plain words
What is it for?
Use it to investigate independent questions in parallel, plan from the results, make the edits yourself, and verify the result.
Why use it?
Long conversations repeatedly carry earlier text into later requests. Delegating research lets the main agent avoid rereading all of that context while keeping code changes under its control.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code.

Part of the context-optimizer plugin — 6 skills, 23 commands, 3 agents, 6 hooks shipped together

Good fit Use it to investigate independent questions in parallel, plan from the results, make the edits yourself, and verify the result.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/egorfedorov/claude-context-optimizer/orchestrate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/egorfedorov/claude-context-optimizer

Made for: Claude Code.

Or install context-optimizer, the plugin that ships this one along with the rest of its 6 skills, 23 commands, 3 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for orchestrate

README.md
[![agentmods](https://agentmods.dev/badge/commands/egorfedorov/claude-context-optimizer/orchestrate/github.svg)](https://agentmods.dev/commands/egorfedorov/claude-context-optimizer/orchestrate)
Your own site
<a href="https://agentmods.dev/commands/egorfedorov/claude-context-optimizer/orchestrate"><img src="https://agentmods.dev/badge/commands/egorfedorov/claude-context-optimizer/orchestrate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for orchestrate

Your own site · 80×15
<a href="https://agentmods.dev/commands/egorfedorov/claude-context-optimizer/orchestrate"><img src="https://agentmods.dev/badge/commands/egorfedorov/claude-context-optimizer/orchestrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 451 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00451
Opus 5.5 $0.00000 $0.00180
Sonnet 5.5 $0.00000 $0.00090
Haiku 4.5 $0.00000 $0.00045

Measured today against content hash d868c8529590, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

orchestrate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cco/commands/orchestrate.md · 36 lines

What it actually says

Orchestrate:

Needs Claude Code or Cowork: the scout and runner subagents don't load in claude.ai chat. There, do the task directly and suggest fresh-start when the conversation gets long.

Do this task as an orchestrator. The aim is the same result at a fraction of the cost: in a long session, every token in this conversation is re-read on each later request, while a subagent's reading is discarded when it returns. The plugin's subagents run on Haiku 5.5, about 40× cheaper per token than Opus 5.5.

How to split the work

  1. Understand (delegate). List the questions you need answered before you can change anything: where is X defined, how does Y flow, what calls Z, what do the docs say about W. Send each independent question to a context-optimizer:scout subagent, several in parallel when they don't depend on each other. Write each prompt as a precise question with the names, paths or URLs you already know, and ask for path:line evidence.
  2. Decide (yourself). Plan from the scouts' answers. Read yourself only the exact line ranges you are about to edit.
  3. Change (yourself). Make the edits here. Don't hand edits or design decisions to a subagent.
  4. Verify (delegate). Send the exact test, build or lint commands to a context-optimizer:runner subagent and act on its failure report. Fix, then send the runner again until it passes.
  5. Report. What changed, why, and what was verified.

When not to delegate

  • One known file or one grep: do it yourself; a subagent's startup costs more.
  • Work that needs many back-and-forth steps on shared context.
  • Anything that changes files, or needs judgment about the design.

If this conversation is already past ~150K tokens, suggest /compact before starting a large task.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 36 lines · 0 tokens per session scan A d868c8529590

Subscribe to this mod's changes

orchestrate is a command published in the GitHub repository egorfedorov/claude-context-optimizer (116 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 451 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-18.