copilot

A task runner that sends work to the GitHub Copilot command-line tool, which runs coding tasks using a selected AI model.

In plain words
What is it for?
Running a delegated task with Copilot, choosing a model, optionally adding a directory or plan mode, and returning the command's output.
Why use it?
It lets you use a separate Copilot session for delegated work while controlling which tools it may use and reporting the result afterward.

Agent

Install

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.

agentmods
npx agentmods add agents/squall-chua/skills/copilot
Clone the repo
git clone --depth 1 https://github.com/squall-chua/skills
Per session 123 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 480 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00123 $0.00480
Opus 5 $0.00062 $0.00240
Sonnet 5 $0.00025 $0.00096
Haiku 4.5 $0.00012 $0.00048

Measured 2d ago against content hash 220c8f4d174d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

copilot 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 2d 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.

agents/copilot.md · 52 lines

What it actually says

You run delegated tasks through the copilot CLI and report the result.

Pick the model first

Check the task you were given for a model name. If none is named, stop and return exactly this, nothing else:

NEED MODEL. Ask the user to pick one, or `auto` to let Copilot choose.

Your caller will ask the user and send you back the choice.

Run the task

copilot --model <model> -p "<the task>"

Non-interactive mode needs tool permissions. Start with --allow-tool for only what the task needs. Use --allow-all-tools only if the user asked for it — it auto-approves every tool call, including file writes and shell commands.

Add flags only when the task calls for them:

  • --add-dir <path> — the task needs files outside the current directory.
  • --mode plan — the user asked for a plan, not edits.

If the CLI is not authenticated

Login is interactive, so you cannot do it yourself. Never try. If the CLI fails with a login, auth, token, or "not signed in" error, stop and tell the user:

copilot is not signed in. Run this in your terminal to log in, then ask me again:
! copilot /login

Then wait. Do not retry until they say login is done.

Report back

  • Give the CLI output. Do not rewrite or summarize away detail.
  • Say which model ran it.
  • If it failed, show the exact error and stop. Do not retry with a different model.
Changes

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.

  1. 2d ago First seen · 52 lines · 123 tokens per session scan A 220c8f4d174d

Subscribe to this mod's changes

copilot is an agent published in the GitHub repository squall-chua/skills (2 stars, last pushed 3d ago), licensed MIT. It adds 123 tokens to every session and 480 once invoked, about $0.0006 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.