copilot

An adapter that lets the agent use the GitHub Copilot command-line tool, which suggests code and answers from a terminal.

In plain words
What is it for?
Use it to ask Copilot CLI for coding suggestions, such as guidance on rebasing a branch, and to manage Copilot CLI plugins through the adapter.
Why use it?
It provides a way to send prompts to Copilot CLI and read its streamed responses through the adapter. It requires the GitHub CLI, authentication, and a GitHub token or login.

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/a5c-ai/babysitter/copilot
Clone the repo
git clone --depth 1 https://github.com/a5c-ai/babysitter
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 410 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.00000 $0.00410
Opus 5 $0.00000 $0.00205
Sonnet 5 $0.00000 $0.00082
Haiku 4.5 $0.00000 $0.00041

Measured 3d ago against content hash 97eee16021fa, 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 3d 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.

docs/adapters/reference/agents/copilot.md · 69 lines

What it actually says

GitHub Copilot

Adapter for GitHub Copilot CLI (gh copilot).

Install

adapters install copilot

Supported on macOS, Linux and Windows. The adapter spawns gh copilot suggest ..., so the gh CLI must be on PATH.

Auth

  • GitHub token — set GITHUB_TOKEN.
  • OAuth device flowgh auth login handles this.

Settings: ~/.config/github-copilot/settings.json.

Minimal run

adapters run copilot --prompt "How do I rebase onto main?"

Notable flags

The adapter runs:

gh copilot suggest "<prompt>"

It does not currently forward --model or approval modes — Copilot CLI selects the model server-side. Default bundled model is gpt-4o.

Session files

  • Location: ~/.config/github-copilot/sessions/*.jsonl
  • Output is parsed line-by-line; non-JSON lines are treated as plain text deltas.

Plugins

Plugin support: yes — GitHub Copilot CLI plugin marketplace with agents/skills/hooks/MCP packages.

Plugin Management

adapters plugin install copilot <plugin>
adapters plugin list copilot
adapters plugin update copilot <plugin>
adapters plugin uninstall copilot <plugin>

MCP Servers

adapters mcp install copilot <mcp-server>
adapters mcp list copilot

Capabilities

Text streaming only. No native tool calling, no parallel tool calls, no JSON mode, no image input.

Known limitations

  • Cannot resume or fork sessions server-side — Copilot CLI is stateless per invocation.
  • --model is ignored (Copilot picks the model).
  • Requires gh CLI and an authenticated GitHub user.
  • Project-level config not supported.
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. 3d ago First seen · 69 lines · 0 tokens per session scan A 97eee16021fa

Subscribe to this mod's changes

copilot is an agent published in the GitHub repository a5c-ai/babysitter (1,757 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 410 tokens. 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-30.

Related

Other agents, from other repositories

rn-tester

Tests React Native features on simulator/emulator. Verifies UI renders correctly, user flows work, and internal state matches expectations. Use when a feature has been implemented and needs verification. PARENT-SESSION-ONLY: requires MCP tools (cdp, device) — do NOT spawn via Task tool, run protocol inline in parent…

Lykhoyda/rn-dev-agent · 337 tokens

rn-code-architect

Designs implementation blueprints for React Native features by analyzing existing codebase patterns, then providing specific files to create/modify, component designs, testID placement, store slice design, and build sequences. Triggers: "design the architecture", "plan the implementation", "create a blueprint", "what…

Lykhoyda/rn-dev-agent · 238 tokens

rn-debugger

Diagnoses broken or unexpected behavior in a React Native app running on simulator/emulator. Gathers parallel evidence (component tree, logs, network, store), narrows root cause, applies a fix, and verifies recovery. PARENT-SESSION-ONLY: requires MCP tools (cdp, device, collectlogs) — do NOT spawn via Task tool, run…

Lykhoyda/rn-dev-agent · 341 tokens

rn-code-reviewer

Reviews React Native implementation for bugs, logic errors, RN-specific convention violations, and testability issues. Uses confidence-based filtering to report only high-priority issues that truly matter. Triggers: "review this code", "check for bugs", "review the implementation", "are there any issues", "check…

Lykhoyda/rn-dev-agent · 234 tokens

design-author

Use after research is complete to draft the approach before any code is written. Drafts a 200-line design document covering current state, desired end state, patterns to follow, and decisions made. Resolves its own open questions autonomously, recording each as an explicit, auditable assumption in the design.

bostonaholic/team · 64 tokens

implementer

Use when the implementation plan needs to be executed slice by slice. A seasoned coding expert that reads the plan, follows TDD discipline, executes one vertical slice at a time, and commits each slice atomically when its tests pass. Dispatched during the Implement phase.

bostonaholic/team · 56 tokens