Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add josix/agent-flow/plugin install agent-flowWrote 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.
[](https://agentmods.dev/commands/josix/agent-flow/orchestrate)<a href="https://agentmods.dev/commands/josix/agent-flow/orchestrate"><img src="https://agentmods.dev/badge/commands/josix/agent-flow/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.
<a href="https://agentmods.dev/commands/josix/agent-flow/orchestrate"><img src="https://agentmods.dev/badge/commands/josix/agent-flow/orchestrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.08275 |
| Opus 5.5 | $0.00000 | $0.03310 |
| Sonnet 5.5 | $0.00000 | $0.01655 |
| Haiku 4.5 | $0.00000 | $0.00827 |
Grade B, and why
orchestrate scanned grade B with 1 finding 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 11d ago.
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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
TASK_COMPLEXITY=$(grep '^task_complexity:' .claude/orchestration.local.md | sed 's/task_complexity: *//' | tr -d '"' | tr '[:upper:]' '[:lower:]') How it starts
The opening of the file, as written. The whole thing — 520 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Orchestrate Command
Coordinate complex tasks through delegation to specialist agents.
Arguments
--use-deep-dive: Use existing deep-dive context to skip or accelerate exploration phase--codex: Enable Codex co-review for this run (off by default; same asAGENT_FLOW_CODEX=1)--review-panel <lenses|none>: Review-panel lenses for standard/thorough runs, comma-separated fromcorrectness,security,maintainability,tests(default: all four), ornonefor Lawliet-only review<task description>: The task to orchestrate
How much of the pipeline runs is decided by the orchestrator, not by user flags — see Execution Profile.
State Initialization
FIRST: Initialize orchestration state by running:
# Pull the init flags out of the arguments; the rest is the task
TASK_ARGS="$ARGUMENTS"
INIT_FLAGS=()
case " $TASK_ARGS " in *" --use-deep-dive "*)
INIT_FLAGS+=(--use-deep-dive); TASK_ARGS=$(printf '%s' "$TASK_ARGS" | sed 's/--use-deep-dive//') ;; esac
case " $TASK_ARGS " in *" --codex "*)
INIT_FLAGS+=(--codex); TASK_ARGS=$(printf '%s' "$TASK_ARGS" | sed -E 's/(^|[[:space:]])--codex([[:space:]]|$)/ /') ;; esac
PANEL_ARG=$(printf '%s' "$TASK_ARGS" | sed -nE 's/.*--review-panel[[:space:]]+([^[:space:]]+).*/\1/p')
if [ -n "$PANEL_ARG" ]; then
INIT_FLAGS+=(--review-panel "$PANEL_ARG"); TASK_ARGS=$(printf '%s' "$TASK_ARGS" | sed -E 's/--review-panel[[:space:]]+[^[:space:]]+//')
fi
TASK_ARGS=$(printf '%s' "$TASK_ARGS" | xargs)
bash ${CLAUDE_PLUGIN_ROOT}/scripts/init-orchestration.sh "${INIT_FLAGS[@]}" "$TASK_ARGS"
This creates .claude/orchestration.local.md to track:
- Current phase and iteration
- Gate results for each phase
- Agent actions and timestamps
Prompt Refinement (Pre-Phase)
Ticket intake: if "$ARGUMENTS" contains an issue key (e.g. ABC-123) or
a Jira/Atlassian/GitHub-issue URL and a matching tool is available (e.g.
getJiraIssue, gh issue view), fetch the ticket first and seed the intent
from it — Goal from the summary, Constraints and acceptance criteria from the
description/ACs, and keep the key in the Goal so branch, commit, and PR names
can carry it. Lawliet's intent-fidelity check then compares against the real
acceptance criteria. Skip silently when no tool is available.
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.
- 11d ago Changed · +20 lines 6be130497b5c
- 1mo ago Changed · +27 lines 83ffd90251a3
- 1mo ago Changed · +1 lines 4867c4c6e8e4
- 1mo ago Changed · +3 lines aadf44c123ca
- 2mo ago Changed · -207 lines b17f0cb03dc4
- 3mo ago First seen · 676 lines · 0 tokens per session scan B e2ede35d4fb3
orchestrate is a command published in the GitHub repository josix/agent-flow (8 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 8,275 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
orchestrate compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| orchestratejosix/agent-flow | Command | 8 | 12d ago | MIT | B | 0 | Claude Code |
| security-scanaffaan-m/ECC | Command | 314k | yesterday | MIT | A | 16 | Claude Code, OpenCode |
| helpSmart-AI-Memory/attune-ai | Command | 12 | today | Apache-2.0 | A | 9 | Claude Code |
| t00-statusmaysunAI/T00-zh | Command | 2 | 4mo ago | MIT | A | 28 | Claude Code |
| story-deslopXiaoyangy/novel-studio | Command | 170 | 2mo ago | Apache-2.0 | A | 24 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | today | MIT | A | 27 | Claude Code |