# Fan out cost control

> Fan out cost control is an open-source agent skill for developer tools. Guides agents to control fan-out cost via model choice, context, checkpoints and limits. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/wan-huiyan/agent-traffic-control/tree/main/plugins/agent-traffic-control/skills/fan-out-cost-control
- **Repository:** https://github.com/wan-huiyan/agent-traffic-control
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** fan-out-cost-control
- **Collection:** https://github.com/wan-huiyan/agent-traffic-control
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/fan-out-cost-control)
- [License: MIT](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/fan-out-cost-control)

## Features

- **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

## Install

### Claude Code

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):

```sh
/plugin marketplace add wan-huiyan/agent-traffic-control
/plugin install agent-traffic-control@wan-huiyan-agent-traffic-control
```

Or copy only this skill to `~/.claude/skills/fan-out-cost-control`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/fan-out-cost-control` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/fan-out-cost-control` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/wan-huiyan/agent-traffic-control.git --path plugins/agent-traffic-control/skills/fan-out-cost-control
```

Or copy the folder to `~/.gemini/skills/fan-out-cost-control` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/fan-out-cost-control`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git
```

Then 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.

## 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.

## Alternatives

- [Principle guard the context window](https://ai-powered.com/skills/principle-guard-the-context-window): Principle guard the context window is an open-source agent skill for developer tools.
- [Lane budget estimation](https://ai-powered.com/skills/lane-budget-estimation): Lane budget estimation is an open-source agent skill for developer tools.
- [Agentic engineering](https://ai-powered.com/skills/agentic-engineering): Agentic engineering is an open-source agent skill for developer tools.
- [Cost aware LLM pipeline](https://ai-powered.com/skills/cost-aware-llm-pipeline): Cost aware LLM pipeline is an open-source agent skill for developer tools.
- [Orchestration](https://ai-powered.com/skills/orchestration-xiaolai): Orchestration is an open-source agent skill for developer tools.
- [Game mechanics balancing](https://ai-powered.com/skills/game-mechanics-balancing): Game mechanics balancing is an open-source agent skill for developer tools.
- [Agentic engineering](https://ai-powered.com/skills/agentic-engineering-abdullayevtemurmalik): Agentic engineering is an open-source agent skill for developer tools.
- [Agent harness construction](https://ai-powered.com/skills/agent-harness-construction): Agent harness construction is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/fan-out-cost-control
