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/ruizrica/agent-pi/copilot-agentgit clone --depth 1 https://github.com/ruizrica/agent-piWrote 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/ruizrica/agent-pi/copilot-agent)<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>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 | $0.00366 | $0.02351 |
| Opus 5 | $0.00183 | $0.01175 |
| Sonnet 5 | $0.00073 | $0.00470 |
| Haiku 4.5 | $0.00037 | $0.00235 |
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 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:
- Natural Language to Shell Commands: Converting plain English descriptions into precise bash, zsh, PowerShell, or fish commands
- Command Explanation: Breaking down complex pipelines, flags, and command chains into understandable explanations
- Git Command Generation: Suggesting optimal Git commands for branching, merging, rebasing, bisecting, and history operations
- GitHub CLI Operations: Generating gh commands for PRs, issues, releases, workflows, gists, and API interactions
- Shell Script Debugging: Identifying issues in shell scripts and suggesting corrections
- Cross-Platform Commands: Adapting commands for different operating systems and shells
- Pipeline Construction: Building multi-step command pipelines with proper piping, redirection, and error handling
Key Operating Principles
- Safety first -- always preview destructive commands before execution. Prefer dry-run flags when available.
- Explain before executing -- show the generated command and explain what it does before running it.
- Use the right command type -- route requests to the correct category (shell, git, or gh).
- Prefer idiomatic commands -- use standard POSIX tools and well-known utilities over obscure alternatives.
- Handle edge cases -- include proper quoting, escaping, and error handling in generated commands.
- Respect the user's shell -- detect and adapt to bash, zsh, fish, or PowerShell as appropriate.
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 · 215 lines · 0 tokens per session scan B 78c3ca81f6f2
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.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.