copilot-agent

copilot-agent is an agent for Claude Code from ruizrica/agent-pi. It costs 0 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 for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; positional $N argument; mentions Codex.

Good fit Use it to generate or explain shell commands, create Git workflows such as branches or rebases, and suggest GitHub CLI commands.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ruizrica/agent-pi/copilot-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.

Clone the repo
git clone --depth 1 https://github.com/ruizrica/agent-pi

Made for: Claude Code.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for copilot-agent

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
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 2,351 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.02351
Opus 5.5 $0.00000 $0.00940
Sonnet 5.5 $0.00000 $0.00470
Haiku 4.5 $0.00000 $0.00235

Measured 1mo ago against content hash 78c3ca81f6f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (276 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,351 tokens. 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.

Related

Other agents, from other repositories

plastic-node-work

Dispatched for a work node by Plastic's node-graph runner. Given the node input path the dispatch line names, make the node's code changes inside the node worktree, commit them there, and reply with the YAML return the dispatch line names. Never spawned outside a runner dispatch.

zalom/plastic · 65 tokens

pr-ghostwriter

Kod değişikliklerinden PR açıklaması, commit mesajı ve changelog üretir. Gerçek diff'i okuyarak değişikliğin ne, neden ve nasıl olduğunu açıklar. Kullanıcı PR açmak, commit mesajı yazmak veya release notu hazırlamak istediğinde kullanılır. Jenerik açıklama üretmez — her zaman gerçek değişikliğe özgü yazar.

komunite/kalfa · 81 tokens

git-specialist

Git workflow specialist. Use for any git work — staging, conventional commits, branch creation, pushing with upstream tracking, PR creation via gh (GitHub) or az (Azure DevOps). Auto-detects host from origin. Enforces strict commit and branch naming.

fmflurry/settings-opencode · 62 tokens

copilot-integration

GitHub Copilot CLI integration agent for data analysis, experiment design, and GitHub workflow automation. Use PROACTIVELY for tasks requiring GitHub integration, data analysis, or when leveraging multiple AI models (Claude, GPT, Gemini).

weorbitant/claude-code-agentic-research-orchestrator · 53 tokens

Historical Context Reviewer

Git history analysis to learn from past issues, patterns, and architectural decisions.

nathanvale/side-quest-marketplace-old · 18 tokens

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.

microsoft/playwright · 151 tokens