
Fan out cost control
Guides agents to control fan-out cost via model choice, context, checkpoints and limits
Fan out cost control is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 5
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Fan out cost control
This skill helps an agent running parallel investigations keep spending within plan. It covers checking which model a launcher actually uses, stating the intended model, effort and worker count before a large fan-out, and counting nested consultations and external reviewers that can multiply cost beyond the visible agent count.
The guidance also addresses context reuse, weighing a fresh focused helper against resuming a long transcript, and saving partial results durably so interrupted jobs do not lose completed work. It includes notes on sizing timeouts and watchdog limits from the work's own stage budgets, and on checking the outcome against the plan after the run, including the cost of cancelled work.
The skill is a single SKILL.md with no bundled scripts. It refers to a dispatch guidance reference and a learning loop skill in the same plugin for deeper cases.
When your agent uses it
Control agent fan-out cost through deliberate model selection, bounded context, useful checkpoints and limits on nested consultations.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (7 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the agent-traffic-control plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add wan-huiyan/agent-traffic-control
/plugin install agent-traffic-control@wan-huiyan-agent-traffic-controlOr copy only this skill to ~/.claude/skills/fan-out-cost-control:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/fan-out-cost-control &&
cp -R "$tmp/plugins/agent-traffic-control/skills/fan-out-cost-control" ~/.claude/skills/fan-out-cost-control &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/fan-out-cost-control inside it instead.
Copy the skill folder to ~/.agents/skills/fan-out-cost-control to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/fan-out-cost-control &&
cp -R "$tmp/plugins/agent-traffic-control/skills/fan-out-cost-control" ~/.agents/skills/fan-out-cost-control &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/fan-out-cost-control inside it instead.
Copy the skill folder to ~/.cursor/skills/fan-out-cost-control to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/fan-out-cost-control &&
cp -R "$tmp/plugins/agent-traffic-control/skills/fan-out-cost-control" ~/.cursor/skills/fan-out-cost-control &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/fan-out-cost-control inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/wan-huiyan/agent-traffic-control.git --path plugins/agent-traffic-control/skills/fan-out-cost-controlOr copy the folder to ~/.gemini/skills/fan-out-cost-control yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/fan-out-cost-control:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/fan-out-cost-control &&
cp -R "$tmp/plugins/agent-traffic-control/skills/fan-out-cost-control" ~/.copilot/skills/fan-out-cost-control &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/fan-out-cost-control inside it instead.
Get the folder:
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.gitThen copy agent-traffic-control/plugins/agent-traffic-control/skills/fan-out-cost-control into your agent's skills folder as fan-out-cost-control. Agents that support SKILL.md read one folder per skill.
What it does
- Model selection checks
- Verifies which model a launcher inherits and specifies supported model controls before launch.
- Consultation multiplication limits
- Accounts for nested agents and external reviewers so repeated reviews do not multiply the fan-out.
- Context reuse decisions
- Compares starting a focused helper with resuming a large prior transcript based on remaining work.
- Durable partial checkpoints
- Asks workers to save independently usable results as they complete, with completion state.
- Runtime limit sizing
- Sizes job timeouts from the sum of internal stage budgets and checks per-task versus per-unit application.
- Post-run cost review
- Compares planned and actual model, width and spend, treating cancelled runs as spend.
Good for
- Plan a parallel code investigation without accidentally running premium models on every worker
- Check whether a batch job's timeout is too tight for its internal stages
- Decide whether a follow-up review should start a new helper or resume a long session
- Audit how many nested agents and reviewers a multi-agent run actually launched
- Set up checkpoints so an interrupted extraction job keeps its finished results
Fan out cost control FAQ
What does Fan out cost control change in an agent's behaviour?
It adds guidance for planning and checking the cost of parallel agent runs, including model choice, nested consultations, context reuse, checkpoints, timeouts and post-run review.
Does Fan out cost control need any scripts or tools?
The skill has no bundled scripts and does not set allowed tools. It is a single SKILL.md file.
Does Fan out cost control override a worker's own instructions to save tokens?
No. The skill says not to suppress required independent checks or override a worker's higher-priority instructions to save tokens.
Where is Fan out cost control installed from?
It is part of the wan-huiyan agent-traffic-control Claude Code plugin marketplace, under the skills folder of that repository.
How do I install Fan out cost control in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/fan-out-cost-control to use it in all your projects, or to .claude/skills/fan-out-cost-control in one project. Or install the agent-traffic-control plugin, which includes it: /plugin marketplace add wan-huiyan/agent-traffic-control, then /plugin install agent-traffic-control@wan-huiyan-agent-traffic-control.
Does Fan out cost control run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Fan out cost control?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Fan out cost control?
The closest alternatives to Fan out cost control are Principle guard the context window, Lane budget estimation, Agentic engineering, Cost aware LLM pipeline and Orchestration.
Where this comes from
- Description: from the skill's own SKILL.md.
More from wan-huiyan/agent-traffic-control

Teaches agents to refuse a flawed instruction only with measured evidence attached
- Open source
- 5 GitHub stars
- Developer tools

Catches silent deletions when a subagent edits large files with repeated blocks
- Open source
- 5 GitHub stars
- Developer tools

Holds a pull request from merging by stopping its agent, disarming auto-merge, then
- Open source
- 5 GitHub stars
- Developer tools

Checks that a batch of pull requests does not cite file paths that will never exist
- Open source
- 5 GitHub stars
- Developer tools

Checks whether a pull request truly landed by comparing file content, not commit subjects
- Open source
- 5 GitHub stars
- Developer tools

Checks a branch for stale-base changes that would silently undo newer main work
- Open source
- 5 GitHub stars
- Developer tools




