agency-orchestrator: Instructions file for Claude Code

CLAUDE.md

agency-orchestrator CLAUDE.md is an instructions file for Claude Code from jnMetaCode/agency-orchestrator. It costs 7,998 tokens per session, scanned A, original, Apache-2.0.

Project guidance for an agent workflow orchestrator that runs collaboration workflows defined in YAML, a text format for configuration.

In plain words
What is it for?
Validating and running workflows, previewing their execution plan, checking providers and credentials, and maintaining roles, templates, and skills.
Why use it?
It documents the commands, architecture, release process, and safety checks needed to operate and maintain the orchestrator.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

This is jnMetaCode/agency-orchestrator's own configuration. It tells Claude Code how to work on agency-orchestrator itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agency-orchestrator configures →

About the project

jnMetaCode/agency-orchestrator is a workflow system that lets people assemble teams of specialized AI roles from a natural-language request and run them against defined tasks and acceptance criteria. It is intended for individuals who want AI collaborators to produce research, content, products or other deliverables through web, desktop, Docker or command-line interfaces. The catalogue add-ons configure the agent roles and workflows used by the orchestrator.

jnMetaCode/agency-orchestrator · 2,403 stars · on GitHub · ao.aiolaola.com

Reuse

Borrowing it

Nothing to install: this file belongs to jnMetaCode/agency-orchestrator. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jnMetaCode/agency-orchestrator/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/jnMetaCode/agency-orchestrator

Made for: Claude Code.

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 agency-orchestrator CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jnmetacode/agency-orchestrator/claude-md/github.svg)](https://agentmods.dev/instructions/jnmetacode/agency-orchestrator/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jnmetacode/agency-orchestrator/claude-md"><img src="https://agentmods.dev/badge/instructions/jnmetacode/agency-orchestrator/claude-md/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 agency-orchestrator CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jnmetacode/agency-orchestrator/claude-md"><img src="https://agentmods.dev/badge/instructions/jnmetacode/agency-orchestrator/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,998 This file is loaded in full into every session.
When invoked 7,998 The same file — it is already loaded in full.
Security scan A 1 finding. 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.07998 $0.07998
Opus 5.5 $0.03199 $0.03199
Sonnet 5.5 $0.01600 $0.01600
Haiku 4.5 $0.00800 $0.00800

Measured 5d ago against content hash 125a6ac03e84, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agency-orchestrator CLAUDE.md scanned grade A 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 5d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**Local provider `local-sdcpp`** (shape `local`, `src/connectors/local-sdcpp.ts`): runs the machine's own stable-diffusion.cpp `sd-cli` with MiniMax-H3 GGUF (models `minimax-h3-q2/q3/q4`, gated by unified memory 24/32/64
CLAUDE.md · 383 lines

How it starts

The opening of the file, as written. The whole thing — 383 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agency Orchestrator — Project Context

This is a multi-agent workflow orchestrator. Users define AI collaboration workflows in YAML, and the engine executes them with automatic DAG parallelism, variable passing, and retry logic.

Key Commands

ao run <workflow.yaml> [options]      # Execute workflow
ao run <workflow.yaml> --resume last --from <step-id>  # Re-run from a specific step
ao validate <workflow.yaml>           # Validate without running
ao plan <workflow.yaml>               # Show DAG execution plan + media spend preview (N clips × seconds × tier × vendor; estimated from input defaults)
ao doctor [--fix] [--no-probe] [--media-probe]  # Self-check provider/creds/endpoint reachability/CLI/system Claude Code; --fix repairs a hijacked ~/.claude (fake token / relay base_url); --no-probe skips the live endpoint probe (a 1-token request); --media-probe (old alias: --video-probe) checks every keyed OpenAI-compatible relay for **video / image / speech** endpoints at zero cost (invalid probe body + a control path; see src/media/probe-video.ts) — speech matters because `type: tts` otherwise fails only after the paid image/video steps already ran
ao roles                              # List all 276 available roles
ao install --tool claude-code         # Install bundled roles into a coding tool (claude-code/cursor/copilot/gemini-cli/qwen/opencode/workbuddy/codebuddy); --lang zh|en, --category, --dry-run
ao run <workflow.yaml> --compare      # Run workflow + single-shot baseline + blind judge → side-by-side verdict (productized eval).
                                      # Verdict + the baseline's own prompt + both full outputs are archived to <run>/compare.md and rendered in `ao report` — the baseline and the two judge calls cost real money, they don't live in the terminal only. The judge's anchor is the **deliverable** step's acceptance (not "last completed step")
ao team save <workflow.yaml>          # Save a role line-up as a reusable team (Loadout)
ao team list / show / rm              # Manage saved teams (stored in ~/.ao/teams)
ao run --team <name> "task"           # Run a new task with a saved team (locked line-up)
ao prompt optimize "<prompt>"         # AI-optimize a prompt (--mode system|user, --save)
ao prompt test / list / show / rm / garden  # Prompt Lab: test / manage / starter templates
ao skills [name]                      # List / view methodology skills (superpowers-zh) for step `skill:`
ao report [dir|last]                  # Render a run into a shareable single-file HTML (default: latest run → <run>/report.html)
ao ledger add "<what>" --reason <r>   # Human-intervention ledger (src/cli/ledger.ts): log manual work outside workflows; reasons unsupported|quality|judgment|external; JSONL at <ao-output>/ledger.jsonl (AO_LEDGER_FILE)
# claude-code MUST use `--output-format stream-json --verbose` (src/connectors/claude-code.ts `streamJson`): when one answer exceeds the CLI's output cap it auto-continues, and plain `json` keeps only the LAST segment in `result` (silently, subtype success). parseResultJson joins all assistant segments. Don't revert to json. test/claude-code-stream.ts pins it
AO_CLI_INHERIT_CWD=1 ao run <wf>      # claude-code/codebuddy spawn in an empty temp dir by default (src/connectors/claude-code.ts) so the user's Claude Code project memory / CLAUDE.md never leak into role outputs; set this to spawn in cwd (old behavior). Don't switch to --bare: it disables OAuth/keychain
ao ledger report [--since D] [--until D] [--out f.md]  # Daily table: runs, AI steps, approval/human_input nodes (auto-counted), manual entries → AI autonomy rate (counts, not effort; never prices)
ao run <wf> --notify <webhook>        # Push result to DingTalk/Feishu/WeCom/generic webhook when done (AO_NOTIFY_URL also works; cron-friendly)
ao run <wf> --export pptx             # Export outputs as PPTX (also docx/pdf/xlsx/skill/plan); pandoc preferred, pptxgenjs fallback.
                                      # The file lands in the CURRENT directory, named after the workflow — same name overwrites the previous export
ao run <wf> -i [email protected]         # Image inputs auto-become vision input (data-URI protocol, src/utils/vision.ts); needs a vision-capable API model; CLI providers strip+warn
ao run <wf> -i docs=@./materials     # Directory input = knowledge source: text files (md/txt/csv/json/yaml/html/code) concatenated as `## 文件: <path>` sections (src/utils/docs-dir.ts); skips binaries/hidden/node_modules; pdf/docx are skipped WITH a warning (convert via pandoc first); 400KB total / 200KB per-file cap, truncation is announced. Studio never expands @ (AO_NO_AT_FILE=1)

Read the full file on GitHub · 383 lines

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. 5d ago Changed · +12 lines · +365 tokens per session 125a6ac03e84
  2. 1mo ago Changed · +21 lines · +498 tokens per session 67a8baaea465
  3. 1mo ago Changed · +10 lines · +426 tokens per session ae84b1411100
  4. 1mo ago Changed · +3 lines · +139 tokens per session 9c577919da8e
  5. 1mo ago Changed · +4 tokens per session 0a4e5df0e6c7
  6. 1mo ago First seen · 337 lines · 6,566 tokens per session scan A 772993a38c56

Subscribe to this mod's changes

agency-orchestrator CLAUDE.md is an instructions file published in the GitHub repository jnMetaCode/agency-orchestrator (2,403 stars, last pushed 3d ago), licensed Apache-2.0. It adds 7,998 tokens to every session, about $0.0320 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens