Skip to content

execute — GitHub Copilot CLI

Run an execution kit under tasks/kits/<slug>/ — drive bin/copilot_execute.py task by task, verify each result, and climb the pricing tiers only on failure. Use when the user says to execute, continue, or resume a kit or plan.

In practice

What it does

Drives an execution kit through to done, task by task — but with a real, named limit worth stating up front: this harness has no parallel fan-out and no warm agent clusters. Kit tasks run serially, one run invocation at a time, even ones marked independent: (that marking means "safe in any order," not "runs at once").

When to reach for it

  • The user says execute, continue, or resume a kit /architect already wrote.
  • You want state (status), one dispatch (run), or a phase check (review) on an existing kit.
  • Deciding whether budget mode is worth turning on for this kit's implementer dispatches.
  • Not for parallel dispatch or a session-side escalation valve — this harness has neither; escalation lives entirely in the driver's own ladder.

Worked example

python3 bin/copilot_execute.py status --kit <dir>
python3 bin/copilot_execute.py run --kit <dir> --task <id> --dry-run
python3 bin/copilot_execute.py run --kit <dir> --task <id>

status is free — it only reads TASKS.md. --dry-run previews the exact dispatch without spending anything. A real run dispatches the task's pinned model, retries once on failure with the evidence attached, and climbs the pricing-tier ladder only on a second failure (--max-escalations <N> caps how far). review --kit <dir> --phase <n> dispatches the reviewer agent against PLAN.md at a phase boundary.

Failure modes & fallbacks

  • A task reports done. Re-run its verify command yourself before trusting that — a dispatched run's own success claim is never evidence.
  • A tier keeps needing escalation. That's the ladder working as designed, not a defect; report which rung ultimately passed.
  • Expecting parallel tasks to run at once. They won't — independent: on this harness means safe-in-any-order, never concurrent.

Cost & safety

status is read-only and free; --dry-run previews and spends nothing; a real run spends real AI Credits on whatever model the task's model: pin (or an active prefs pin) resolves to. Add --budget to dispatch one tier lower — see budget — and note that review deliberately takes no budget flag, because phase reviews stay at full strength by design.

  • architect — writes the kit this skill runs.
  • budget — the cheaper-dispatch variant of the same driver.
  • escalate — the same ladder, for a single task outside any kit.

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/execute/SKILL.md.

You drive an existing execution kit through to done. The expensive thinking already happened in /architect — your job is faithful dispatch, verification, and state-keeping, not re-litigating the plan. Read the kit's PLAN.md fence before starting; do not build anything it fences off, even if it looks helpful.

See state

python3 {{POLYTROPOS_ROOT}}/bin/copilot_execute.py status --kit <dir>

Add --json for machine-readable output. Every task's status is exactly one of pending | in-progress | done | blocked.

Run a task

python3 {{POLYTROPOS_ROOT}}/bin/copilot_execute.py run --kit <dir> --task <id>

The driver dispatches the task to the implementer agent on that task's pinned model (--agent <name> overrides which agent runs it), runs the verify command, retries once with the failure evidence on a miss, and climbs the pricing-tier ladder only on failure (--max-escalations <N> caps how far it climbs). Omit --task to take the first eligible pending task. --dry-run previews the exact dispatch without spending anything — real run invocations spend real AI Credits, so preview when unsure.

The driver also honors the user's model prefs — repeatable --pin TIER=MODEL_ID and --exclude MODEL_ID flags override the gitignored prefs/copilot.json file, and --no-prefs ignores it (python3 {{POLYTROPOS_ROOT}}/bin/copilot_pricing.py prefs shows what is active).

Budget mode: add --budget to run to dispatch one tier lower than the task's pin (floor: the cheapest tier) and print an honest estimated actual-vs-standard comparison afterwards — escalation still climbs the normal ladder on a verified failure, and python3 {{POLYTROPOS_ROOT}}/bin/copilot_execute.py budget --kit <dir> totals what budget mode saved or overspent on the kit's completed runs so far — blocked and no-demotion runs are reported separately, never folded into that net. review takes no budget flag: phase reviews deliberately stay at full strength. See the budget skill.

Verify independently

The driver runs each task's verify command itself, but re-run it yourself before trusting a done — a dispatched run's own claim of success is never evidence.

Phase boundaries

python3 {{POLYTROPOS_ROOT}}/bin/copilot_execute.py review --kit <dir> --phase <n>

Dispatches the reviewer agent against the kit's PLAN.md at the end of a phase.

What this harness does NOT have

Claude Code's execute skill fans tasks out to parallel subagents and keeps warm agent clusters running across several tasks at once. Copilot CLI has no equivalent surface: kit tasks run serially, one run invocation at a time. A task marked independent: means "safe to run in any order," not "runs in parallel" — say this plainly rather than faking an orchestrator. Escalation lives in the driver's ladder, not in a session-side valve.

End of run

Report tasks completed, blocked, and remaining, each with its verify output, then check the result against the kit's PLAN.md "done" definition before calling the kit finished.

Agents under the hood

There is no execute agent — this skill drives bin/copilot_execute.py, and the driver dispatches the kit's work to the implementer, verifier, and reviewer custom agents (copilot --agent <name> also reaches them directly). Each task's model pin from TASKS.md decides what the dispatch runs on, not this session's model.

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

Optional context travel

When an explicit repository/kit/assignment and authorized startup config are supplied, use the native context-travel skill and read {{POLYTROPOS_ROOT}}/docs/CONTEXT-TRAVEL-SURFACES.md on demand for a bounded task brief. Treat missing, stale, partial, or refused context as advisory; retain this workflow's authoritative sources, policy, pricing, permission, and mandatory verification rules. If no authorized context transport is available, continue this workflow and report context unavailable.