budget — GitHub Copilot CLI¶
Run an execution kit on a cheaper ladder of models when the AI-Credits budget is tight — one-tier-lower dispatch with honest actual-vs-standard cost reporting. Use when the user says budget mode, run this cheaply, low on credits, or wants the savings measured.
- Source: copilot/.github/skills/budget/SKILL.md
- Also available on: this harness only — see the parity matrix
In practice¶
What it does¶
Your AI-Credit balance, not time or quality, is what decides whether a kit finishes. Budget mode makes the run cheaper in exactly two places — the planner you pick yourself, the implementer the driver dispatches — then measures whether that helped. Scope, verification and review are untouched; each run records a labeled estimate you can total later.
When to reach for it¶
- Credits are the binding constraint on a kit of routine tasks, each with a verify command strong enough to catch a cheaper model getting it wrong.
- Not when verify commands are weak: a cheap implementer behind a soft gate moves cost into escalation rather than saving it.
- Not alongside
--max-escalations 0— a demoted task that fails verify would go straight toblockedinstead of getting its one escalation. - Not on the other two harnesses, and that is what the matrix's dashes mean: only Copilot meters every call against a finite balance that can run out mid-kit.
Worked example¶
Preview first; this writes and spawns nothing (the installer resolves
{{POLYTROPOS_ROOT}}):
python3 {{POLYTROPOS_ROOT}}/bin/copilot_execute.py run --kit <dir> --task <id> --budget --dry-run
A budget: line reads demoted <tier> -> <tier> beside the usual task:, dispatch: and
verify: lines. Drop --dry-run and the real run adds one more — budget est.: — reading
a saving, BACKFIRED, unpriced, or no demotion this run. Total the kit later with
budget --kit <dir> — no dispatch, no spend, ending in a verdict: line.
Failure modes & fallbacks¶
BACKFIRED— escalations cost more than the demotion saved. With only two roles downgraded, one escalation can erase a run's saving.- A LOSING verdict — drop
--budgetfor the rest of the kit; believe the ledger, not the theory. unpriced— the estimate could not be computed, so no dollars are invented; the run is excluded rather than counted as zero.- Blocked runs never fold into the headline net — a saving beside a blocked overspend prints as both halves.
Cost & safety¶
--dry-run writes and spawns nothing; a real run spends real AI Credits. The budget est.:
line is a labeled estimate — a named task profile, a single-dispatch first-try
counterfactual — never a bill. Demotion is exactly one tier, floored at the cheapest: it
never fabricates a rung. Reviews are exempt by design — a phase review is more worth
running here, not less. Candidates come from
data/pricing.copilot.json
at run time; pick your planner from copilot_pricing.py models, never from memory.
Related¶
- execute — the standard, undemoted run.
- usage — what you actually spent afterwards.
- Parity matrix — why it has no sibling elsewhere.
The skill card — what the model reads¶
This is the SKILL.md body the model reads, transformed for this page: the source's own leading title, if it had one, is removed; every remaining heading is demoted one level to nest under this section; and relative links are rewritten to site or GitHub URLs. ${CLAUDE_PLUGIN_ROOT} and {{POLYTROPOS_ROOT}} are install-time path variables, left intact exactly as the model sees them. The unmodified original is copilot/.github/skills/budget/SKILL.md.
You run an existing execution kit at reduced cost by demoting where the driver dispatches,
never how it verifies or reviews. Read the kit's PLAN.md fence before starting, same as a
normal execute run — budget mode changes dispatch, not scope.
The budget ladder¶
| Role | Standard tier | Budget tier | How enforced |
|---|---|---|---|
| architect (planner) | frontier | strong | taught here — the driver never dispatches the planner |
| implementer | mid | cheap | enforced by run --budget |
| verifier | cheap | cheap (unchanged) | already the floor |
| reviewer | strong | strong (unchanged) | review gains no budget flag |
Savings come from exactly two moves — the planner drop and the implementer drop. The strong reviewer is deliberately preserved: it is the defect net that catches what cheap tiers miss, and it is also the one instrument that would detect budget mode itself backfiring.
Run a kit in budget mode¶
python3 {{POLYTROPOS_ROOT}}/bin/copilot_execute.py run --kit <dir> --task <id> --budget [--budget-profile M]
Preview with --dry-run first — a real run spends real AI Credits. The demotion is exactly
one tier, floor cheapest: it never fabricates a rung and never jumps two. Escalation still
climbs the normal ladder on a verified failure, so the first rung up is the tier the task
would have started at under standard dispatch. Do not combine --budget with
--max-escalations 0 — a demoted task that fails verify would go straight to blocked
instead of getting the one escalation attempt budget mode is designed around.
Read the measurement — it can say budget mode failed¶
The budget est.: line the driver prints is a labeled estimate — a named task profile, a
single-dispatch first-try counterfactual — never a bill. BACKFIRED means the escalations
this run needed cost more than the demotion saved. Total a whole kit with:
python3 {{POLYTROPOS_ROOT}}/bin/copilot_execute.py budget --kit <dir>
The headline net covers only completed (done) runs — blocked runs and runs that made no
demotion are reported on their own separate labeled lines, never folded into that net. If the
verdict says the kit is LOSING money, drop --budget for the rest of that kit — believe the
ledger, not the theory. With only two roles downgraded, a single escalation can erase a whole
run's saving.
Reviews run at full strength — use them more, not less¶
review takes no budget flag by design; it always dispatches the reviewer agent at its
standard strong tier. Budget mode's cheap implementer makes the phase review MORE valuable,
not less, so run one at every phase boundary — it is priced per phase, not per task, so the
insurance is cheap exactly when implementation quality is most likely to have dropped.
The planner under budget¶
The architect drop (frontier→strong) cannot be driver-enforced — the driver never dispatches
the architect. It is taught, not enforced: pick a strong-tier model for /architect runs
yourself, via the /model picker or --model, choosing a candidate from
python3 {{POLYTROPOS_ROOT}}/bin/copilot_pricing.py models
never from memory — the roster and tiers can change under you.
Same-named agent¶
There is no budget agent — budget mode is a skill-only capability in this bundle. The driver still dispatches the existing implementer and reviewer custom agents; --budget changes which tier the implementer dispatch runs on, never which agent runs it.
Installed?¶
If the literal {{POLYTROPOS_ROOT}} text is still visible above, the bundle is not
installed — tell the user to run python3 bin/harness_select.py install --harness copilot
(then /skills reload picks the skills up in-session).