github-copilot-cli

Instructions for using GitHub Copilot CLI, an AI assistant that runs through the GitHub command-line tool.

In plain words
What is it for?
Use it for second-opinion codebase reviews, pre-push pull-request checks, and shell command suggestions. Automated use requires the CLI to be installed, authenticated, and run with a prompt.
Why use it?
It provides a separate AI review of code or pull requests and can suggest shell commands, reducing reliance on one reviewer's judgment.

Skill for Claude CodeCodex

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 skills/neverinfamous/memory-journal-mcp/github-copilot-cli
Any agent
npx skills add neverinfamous/memory-journal-mcp --skill github-copilot-cli
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/memory-journal-mcp

Made for: Claude Code, Codex.

Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 654 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.00102 $0.00654
Opus 5 $0.00051 $0.00327
Sonnet 5 $0.00020 $0.00131
Haiku 4.5 $0.00010 $0.00065

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

Security

Grade A, and why

github-copilot-cli 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.

skills/github-copilot-cli/SKILL.md · 60 lines

How it starts

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

GitHub Copilot CLI

The new GitHub Copilot agentic CLI is integrated directly into the GitHub CLI (gh). The older standalone github-copilot-cli package and the gh-copilot extension are deprecated. You must use gh copilot which now triggers the new agentic experience natively.

When integrated into an AI workflow (AI evaluating AI), it acts as a robust secondary reviewer mapping against different context windows and potentially different foundational models than the primary agent, significantly reducing confirmation bias during PR or full-repository reviews.

⚠️ CRITICAL — Non-Interactive Mode: The gh copilot CLI must be run in non-interactive mode using the -p (or --prompt) flag. Omitting this flag will launch an interactive UI and hang the agent indefinitely. Use -s (silent) to suppress styling/decorations and output raw text.

Installation & Authentication Baseline

Before using the CLI in automated pipelines, ensure the terminal environment is equipped and authenticated:

# 1. Verify availability
gh copilot --version || echo "Copilot not installed"

# 2. Pre-check / Authenticate
# Check auth status first. If this fails, the environment cannot use Copilot.
gh auth status
# If unauthenticated, human interaction is required (which agents cannot do).
# Fallback: Gracefully skip the Copilot execution step, log the skip reason, and proceed with other tasks.
# gh auth login

Agentic Interaction Strategies

Because the Copilot CLI is primarily interactive, standalone non-interactive agents cannot easily navigate its interactive UI natively for arbitrary open-ended tasks.

However, you can leverage its single-shot non-interactive mode (-p) for targeted tasks:

Direct Tool Commands

For precise shell suggestions or file explanations in automated workflows:

# Shell Suggestion (Evaluates context and produces command)
gh copilot -p -s "find all files over 5mb in the current directory"

# File Explanation
gh copilot -p -s "explain src/utils/crypto.ts"

Read the full file on GitHub · 60 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. 2d ago First seen · 60 lines · 102 tokens per session scan A b77e1ea07278

Subscribe to this mod's changes

github-copilot-cli is a skill published in the GitHub repository neverinfamous/memory-journal-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 102 tokens to every session and 654 once invoked, about $0.0005 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-30.