workflow-budget
Skill0 starsChanged 5 months agoMITView on GitHub
Elicits a hard token budget from the human before launching multi-agent orchestration and threads it into the run as an enforced cap. Use when about to launch a workflow or agent fan-out that spawns multiple subagents, or when a budget gate has blocked the launch.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adaptive-coachingSkill
- architecture-tradeoffSkill
- clairvoyanceSkill
- decision-coachingSkill
- human-harnessSkill
- review-verdictSkill
- session-handoffSkill
- using-clairvoyanceSkill
- visual-handoffSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Never ask the human to invent a number.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Workflow Budget
Turns "how much will this run cost" into a human decision made before the tokens are spent, not discovered at a rate limit.
UTILITY SKILL: loaded directly before multi-agent orchestration; not routed by using-clairvoyance (a budget is not a handoff).
Steps
- Estimate before asking: count the planned agents per phase and multiply by a cost band per agent role (heavy readers and finders toward the top of the band, low-effort verifiers toward the bottom). State the total as a range, never a point.
- Never ask the human to invent a number. Offer 2-3 prepared budgets via portable question handoff (AskUserQuestion when available, otherwise
AskUserQuestion:text with the same choices): typically a reduced scope, the full plan, and defer - each naming the coverage it buys. - Mark the recommended choice and say why.
- Thread the chosen budget into the launch as
args.budgetTokens. An answer given inside a question dialog does not bind the harness's native budget ceiling - only a+Ndirective typed in a regular user message does - so the args path is the working contract. - Enforce inside the script: check
budget.spent()againstargs.budgetTokensbefore each phase and each parallel batch, scale fleet sizes statically from the cap, andlog()spend at phase boundaries so the human sees the burn live. - Split multi-phase work into separate resumable workflows at phase boundaries; a window limit then costs at most one phase, and completed agents replay from cache on resume.
- With no human present (scheduled or autonomous runs), apply the smallest default that completes the current phase, and record that choice in the run output.
Output
Use these headings:
- Estimate: planned agents x cost band, totalled as a range.
- AskUserQuestion: the one budget question (or its text fallback).
- Choices: 2-3 named budgets with the coverage each buys.
- Recommended: the safest default and why.
- Enforcement: how the cap binds:
args.budgetTokens, thebudget.spent()guard, and the phase split.
Pattern: Estimate -> AskUserQuestion -> Choices -> Recommended -> Enforcement. When no human is present, replace AskUserQuestion/Choices with the recorded default.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

