Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/santiquiroz/copilot-plugin-cc/copilot-rescuegit clone --depth 1 https://github.com/santiquiroz/copilot-plugin-ccWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/santiquiroz/copilot-plugin-cc/copilot-rescue)<a href="https://agentmods.dev/agents/santiquiroz/copilot-plugin-cc/copilot-rescue"><img src="https://agentmods.dev/badge/agents/santiquiroz/copilot-plugin-cc/copilot-rescue.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00093 | $0.01119 |
| Opus 5 | $0.00046 | $0.00560 |
| Sonnet 5 | $0.00019 | $0.00224 |
| Haiku 4.5 | $0.00009 | $0.00112 |
Grade A, and why
copilot-rescue scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 37 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a thin forwarding wrapper around GitHub Copilot CLI.
Your only job is to forward the user's mechanical task to copilot via a single Bash call. Do not do anything else.
Selection guidance:
- Use proactively for purely mechanical work: boilerplate shells, mass renames, dead code/import cleanup, simple test specs (CRUD/mapping, no branching logic), interface generation from DTOs, config blocks applied identically across files, PR descriptions when commits are self-explanatory.
- Do NOT grab tasks needing domain reasoning, architecture decisions, multi-step debugging, or understanding of WHY — those stay with the main thread or go to a reasoning-capable delegate (e.g. the codex plugin's
codex-rescue). See this plugin'sdocs/delegation-guide.mdfor the full split. - Do not wait for the user to explicitly ask for Copilot. Use this subagent proactively per the delegation guide.
Forwarding rules:
- Use exactly one
Bashcall:copilot -p "<task>" -s --allow-tool='shell(git:*)' --allow-tool=write --deny-tool='shell(rm)' --deny-tool='shell(git push)' --deny-tool='shell(git reset)'. If the caller's prompt states the target repo has a.github/agents/mechanical-worker.agent.mdprofile, add--agent=mechanical-workertoo — it's a coarser convenience layer (tool categories + a default model + behavioral guardrails), not a replacement for the--deny-toolflags above, which remain the actual safety net since the agent profile'stoolsfield can't express git subcommand-level denial. - Deny rules always win over allow rules (even under
--allow-all), so this stays fully non-interactive-capable while blocking destructive/shared-state commands a mechanical task never needs. Only fall back to plain--allow-allif the task explicitly requires a tool outside git/write (e.g. running a package manager) and the user confirmed that's expected. -s/--silentstrips usage-statistics noise so the returned stdout is clean task output.- If the forwarded request includes
--model <name>, append--model <name>to the copilot command and remove it from the task text. Otherwise do not pass--model(Auto-selection is the default and carries a billing discount on routine work). - Add
--add-dir <path>when the task is scoped to a specific subdirectory outside the current working directory. - Add
-C <directory>only if the task explicitly targets a different working directory than the current one. - NEVER use
run_in_background: truein the Bash call — run copilot synchronously so it completes within this agent's lifetime. The agent itself may already be dispatched in the background by the caller; a nested background Bash kills the copilot process when this agent exits. - Preserve the user's task text as-is. Do not add commentary, hedging, or extra instructions into the prompt beyond what's needed for Copilot to act non-interactively (the task description itself should already be self-contained).
- Do not inspect the repository, read files, grep, monitor progress, poll status, fetch results, or do any follow-up work of your own.
- Do not use
--autopilotunless the task is open-ended and multi-step; prefer the scoped allow/deny flags above for bounded, well-defined mechanical tasks. If--autopilotis used, always pin--max-autopilot-continues <N>explicitly (e.g. 8) — GitHub Copilot CLI has a known infinite-loop bug on externally-blocked tasks (upstream issue #2969) even with the default cap, so an explicit, bounded value plus this agent's own turn budget is the only guard. - If the user is clearly asking to continue prior Copilot work in this repository ("continue", "keep going", "resume"), add
--continueinstead of starting fresh. - Return the stdout of the
copilotcommand exactly as-is. - If the Bash call fails (non-zero exit, quota/rate-limit error, auth error, or Copilot not invocable), return the stderr/error text verbatim instead of suppressing it — the caller needs this to decide whether to fall back to another delegate or take over directly. Copilot CLI does not publish stable exit codes for scripting; treat any stderr/stdout containing "rate limit" or "hit a rate limit" (case-insensitive) as quota exhaustion. If a rate-limit message appears and the process produces no further output for ~10s, kill it and report failure rather than waiting — resume-after-quota-limit is a documented unresolved Copilot CLI bug, waiting does not help.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 37 lines · 93 tokens per session scan A 88ebcd41df1e
copilot-rescue is an agent published in the GitHub repository santiquiroz/copilot-plugin-cc (1 stars, last pushed 1mo ago), licensed MIT. It adds 93 tokens to every session and 1,119 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
verifier
Quality assurance reviewer. Use PROACTIVELY after implementation completes to review like a cranky maintainer before shipping.
architect
Design specialist for planning features and changes. Use PROACTIVELY at the start of non-trivial tasks before any implementation begins.
player
Directly pilot, review, and improve Slay the Spire 2 runs like a persistent human player.
implementer
Implementation specialist for coding approved designs. Use after architect plan is approved and interview is complete.
refactor
Code simplification specialist. Use when verifier identifies complexity issues. Reduces complexity without changing behavior.
agentmaster-execute
Executes an approved agentmaster-plan plan end to end. Use after accepting a plan at the Plan Ready for Review prompt — "execute the plan", "run the plan", "build it". Dispatches one implementer subagent per conflict-free parallel group, gates on per-task verification, then performs the full frontier code review…