Skip to main content

ops agent

Multi-agent orchestration. Broadcasts tasks to project master agents (Claude Code instances) in parallel, chains agents sequentially, and manages saved chain configs. Each project's CLAUDE.md makes a spawned agent an instant expert on that project.

Orchestrator Pattern

ops agent broadcast uses wg-orchestration as the orchestrator agent, which fans out to every other project agent simultaneously. Each spawned worker inherits its project's CLAUDE.md context, so it already knows the codebase before the prompt arrives.

Subcommands

SubcommandDescription
broadcastBroadcast a task to all master agents in parallel
chainChain agents sequentially — each output feeds the next input
runRun a saved chain by name
list-chainsList available chain configs
list-mastersList all registered master agents
add-claude-mdCreate or update CLAUDE.md in a project
historyShow recent agent run history

Capabilities at a Glance

📡

Fan-Out Broadcast

Send the same task to every project agent in parallel — perfect for portfolio-wide audits, sweeps, and summaries.

🔗

Sequential Chains

Compose multiple agents into a pipeline where each agent's output becomes the next agent's input.

🧠

Project-Native Context

Workers inherit their own project's CLAUDE.md, so they answer like an expert in that codebase — not a generic LLM.


ops agent broadcast

Broadcast a task to every master agent in parallel and collect their responses.

Fan out a single prompt to every project agent at once
Terminal
$ops agent broadcast --prompt "Check for any hardcoded API keys"

Flags

FlagTypeDescriptionDefault
--prompt-pTEXTTask to send to all master agents
--file-fPATHRead task from a file (use instead of --prompt for long prompts)
--projectTEXTTarget specific project IDs (repeatable; default: all)
--exclude-xTEXTExclude specific project IDs (repeatable)
--timeout-tINTEGERPer-agent timeout in seconds300
--workers-wINTEGERMax parallel agents4
--output-dir-oPATHSave each agent's output to this directory (one file per project)
--jsonflagOutput results as JSON
--dry-runflagShow which agents would be contacted without running them

Examples

Target a subset of projects
Terminal
$ops agent broadcast --project wdp-import --project prefect-azure-infra --prompt "List all open TODO comments"
Persist each agent's response to its own file
Terminal
$ops agent broadcast --prompt "Write a release summary" --output-dir /tmp/summaries/
Preview which agents would be contacted — no LLM calls
Terminal
$ops agent broadcast --prompt "..." --dry-run
Long Prompts

For multi-paragraph prompts or anything you want to version, write the prompt to a file and pass it with --file. This also keeps shell quoting from mangling the input.

Cost & Concurrency

Each broadcast spawns one Claude Code instance per project. Use --workers to cap concurrency and --project to narrow scope when running expensive prompts.


ops agent chain

Chain agents sequentially. Each agent receives the previous agent's output as its input.

Run a sequential pipeline of agents from a config file
Terminal
$ops agent chain <chain-config.yaml>

ops agent run

Run a saved chain by name. Equivalent to ops agent chain but without typing the full config path.

Execute a pre-registered chain
Terminal
$ops agent run daily-portfolio-digest

ops agent list-chains

List every available chain config, with each chain's description and the agents it invokes.

See what chains are available and what they do
Terminal
$ops agent list-chains

ops agent list-masters

List every registered master agent and whether it is ready to receive work.

Inventory of project agents and their readiness state
Terminal
$ops agent list-masters
Readiness Check

A master is considered ready when its project directory exists, its CLAUDE.md is present, and the Claude Code CLI can launch in that directory.


ops agent add-claude-md

Create or update a project's CLAUDE.md, then commit and push the change. Use this when bootstrapping a new project agent or refreshing context after architectural changes.

Provision or refresh a project's CLAUDE.md and push to origin
Terminal
$ops agent add-claude-md <project-id>

ops agent history

Show recent agent run history — broadcasts, chains, and one-off runs.

Review past agent invocations and their outcomes
Terminal
$ops agent history