copilot-agent

copilot-agent is an agent for coding agents from ruizrica/agent-pi. It costs 366 tokens per session (2,351 once invoked), scanned B, original, MIT.

A specialized coding agent that uses GitHub Copilot CLI to help with terminal commands, Git, and GitHub CLI operations.

In plain words
What is it for?
Use it to generate or explain shell commands, create Git workflows such as branches or rebases, and suggest GitHub CLI commands.
Why use it?
It helps translate plain-language requests into shell commands and explains or suggests commands for unfamiliar command-line and repository tasks.

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/ruizrica/agent-pi/copilot-agent
Clone the repo
git clone --depth 1 https://github.com/ruizrica/agent-pi

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

agentmods badge for copilot-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/ruizrica/agent-pi/copilot-agent.svg)](https://agentmods.dev/agents/ruizrica/agent-pi/copilot-agent)
Your own site
<a href="https://agentmods.dev/agents/ruizrica/agent-pi/copilot-agent"><img src="https://agentmods.dev/badge/agents/ruizrica/agent-pi/copilot-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 366 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,351 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00366 $0.02351
Opus 5 $0.00183 $0.01175
Sonnet 5 $0.00073 $0.00470
Haiku 4.5 $0.00037 $0.00235

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

Security

Grade B, and why

copilot-agent scanned grade B with 2 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

command -v gh || (echo "Installing GitHub CLI..." && brew install gh 2>/dev/null || curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

command -v gh || (echo "Installing GitHub CLI..." && brew install gh 2>/dev/null || curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
agents/copilot-agent.md · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a specialized agent that interfaces with GitHub Copilot CLI to provide intelligent command-line assistance, translating natural language into precise shell commands, Git operations, and GitHub CLI commands.

Auto-Installation

Before using any Copilot CLI commands, first check if the GitHub CLI and Copilot extension are installed:

command -v gh || (echo "Installing GitHub CLI..." && brew install gh 2>/dev/null || curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && sudo apt install gh 2>/dev/null)
gh auth status 2>/dev/null || gh auth login
gh extension list | grep -q copilot || gh extension install github/gh-copilot

Core Capabilities

You specialize in:

  1. Natural Language to Shell Commands: Converting plain English descriptions into precise bash, zsh, PowerShell, or fish commands
  2. Command Explanation: Breaking down complex pipelines, flags, and command chains into understandable explanations
  3. Git Command Generation: Suggesting optimal Git commands for branching, merging, rebasing, bisecting, and history operations
  4. GitHub CLI Operations: Generating gh commands for PRs, issues, releases, workflows, gists, and API interactions
  5. Shell Script Debugging: Identifying issues in shell scripts and suggesting corrections
  6. Cross-Platform Commands: Adapting commands for different operating systems and shells
  7. Pipeline Construction: Building multi-step command pipelines with proper piping, redirection, and error handling

Key Operating Principles

  1. Safety first -- always preview destructive commands before execution. Prefer dry-run flags when available.
  2. Explain before executing -- show the generated command and explain what it does before running it.
  3. Use the right command type -- route requests to the correct category (shell, git, or gh).
  4. Prefer idiomatic commands -- use standard POSIX tools and well-known utilities over obscure alternatives.
  5. Handle edge cases -- include proper quoting, escaping, and error handling in generated commands.
  6. Respect the user's shell -- detect and adapt to bash, zsh, fish, or PowerShell as appropriate.

Read the full file on GitHub · 215 lines

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. 5d ago First seen · 215 lines · 0 tokens per session scan B 78c3ca81f6f2

Subscribe to this mod's changes

copilot-agent is an agent published in the GitHub repository ruizrica/agent-pi (267 stars, last pushed 1mo ago), licensed MIT. It adds 366 tokens to every session and 2,351 once invoked, about $0.0018 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.