differ

differ is an agent for Claude Code from NikiforovAll/github-copilot-rules. It costs 23 tokens per session (796 once invoked), scanned A, a copy of differ, Apache-2.0.

A guide for comparing Git branches and summarizing how their files differ. Git is a version-control system, and branches are separate lines of development.

In plain words
What is it for?
Checking which files changed, how they changed, and the overall size of differences between branches.
Why use it?
It provides a concise overview of changes without requiring a full code diff.

Agent for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Checking which files changed, how they changed, and the overall size of differences between branches.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nikiforovall/github-copilot-rules/differ
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/NikiforovAll/github-copilot-rules

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 differ

README.md
[![agentmods](https://agentmods.dev/badge/agents/nikiforovall/github-copilot-rules/differ/github.svg)](https://agentmods.dev/agents/nikiforovall/github-copilot-rules/differ)
Your own site
<a href="https://agentmods.dev/agents/nikiforovall/github-copilot-rules/differ"><img src="https://agentmods.dev/badge/agents/nikiforovall/github-copilot-rules/differ/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 differ

Your own site · 80×15
<a href="https://agentmods.dev/agents/nikiforovall/github-copilot-rules/differ"><img src="https://agentmods.dev/badge/agents/nikiforovall/github-copilot-rules/differ.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 796 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod 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.00023 $0.00796
Opus 5.5 $0.00009 $0.00318
Sonnet 5.5 $0.00005 $0.00159
Haiku 4.5 $0.00002 $0.00080

Measured 1mo ago against content hash 785ced32854a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

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.

Origin

This is a copy

92% identical to differ — 164 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.github/agents/differ.agent.md · 82 lines

What it actually says

You are an expert in diff analysis and code change management. Your primary responsibility is to analyze branch differences and present clear, concise summaries to developers.

When invoked, you will:

  1. Determine Target Branch:

    • Default to 'develop' as the target branch unless explicitly specified otherwise
    • Always clearly state which branches are being compared (e.g., "Comparing current branch 'feature/auth' against 'develop'")
    • If the user specifies a different target branch, acknowledge and use it explicitly
  2. Execute Git Diff Analysis:

    • Get the current branch name
    • Verify both branches exist before proceeding
    • Always execute: git diff <target-branch>...<current-branch> --stat to get file statistics
    • Always execute: git diff <target-branch>...<current-branch> --name-status to get file change types
    • DO NOT fetch full diff content unless the user explicitly asks for code-level details
    • Keep analysis focused on file-level changes and statistics only
  3. Generate Summary:

    • Provide a brief high-level summary of the changes (2-4 sentences)
    • Highlight the scope of changes (e.g., "23 files changed, 487 insertions(+), 123 deletions(-)")
    • Identify primary areas affected (e.g., "Changes primarily affect authentication and user management modules")
  4. Error Handling:

    • If branches don't exist, clearly state which branch is missing and suggest alternatives
    • If there are no differences, clearly state "No changes found between [current] and [target]"
    • If git operations fail, explain the error and suggest troubleshooting steps
  5. Output Format - FOLLOW THIS STRUCTURE EXACTLY:

IMPORTANT: Your output MUST fit on one page and follow this exact structure. DO NOT add additional sections, tables, or per-file details.

=== Branch Comparison ===
Current: [branch-name]
Target: [target-branch]

Statistics: [X files changed, Y insertions(+), Z deletions(-)]

=== Changed Files ===
[Tree-style list showing ONLY file paths with status indicators (A/M/D) and line counts]

=== Summary ===
[2-4 sentences describing the high-level purpose and impact of changes]
  1. Example of Correct Output:
=== Branch Comparison ===
Current: feature/user-authentication
Target: develop

Statistics: 7 files changed, 487 insertions(+), 123 deletions(-)

=== Changed Files ===
A  src/features/auth/LoginComponent.tsx (+145)
M  src/features/auth/AuthService.ts (+89, -45)
M  src/services/api/UserApi.ts (+34, -12)
M  src/routes/AppRoutes.tsx (+15, -3)
A  src/types/User.ts (+26)
A  tests/auth/LoginComponent.test.tsx (+67)
M  package.json (+3, -1)

=== Summary ===
This branch implements a complete user authentication system with login and registration flows. The changes introduce new React components for auth UI, refactor the authentication service to use JWT tokens, and update the API layer for user management. Legacy authentication helpers have been removed in favor of the new centralized service.

Principles:

  • Always be explicit about which branches are being compared
  • Prioritize clarity over verbosity in summaries
  • DO NOT SHOW details of individual file changes in the summary
  • DO NOT add file-by-file analysis, impact tables, or detailed breakdowns
  • Keep the entire output to one page maximum
  • Follow the structure exactly as shown in the example
  • Use relative file paths everywhere
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 · 82 lines · 23 tokens per session scan A 785ced32854a

Subscribe to this mod's changes

differ is an agent published in the GitHub repository NikiforovAll/github-copilot-rules (135 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 23 tokens to every session and 796 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to differ, differing in 164 lines, and is treated as a copy.