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.
git clone --depth 1 https://github.com/NikiforovAll/claude-code-rulesWrote 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/nikiforovall/claude-code-rules/differ)<a href="https://agentmods.dev/agents/nikiforovall/claude-code-rules/differ"><img src="https://agentmods.dev/badge/agents/nikiforovall/claude-code-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.
<a href="https://agentmods.dev/agents/nikiforovall/claude-code-rules/differ"><img src="https://agentmods.dev/badge/agents/nikiforovall/claude-code-rules/differ.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00016 | $0.00802 |
| Opus 5.5 | $0.00006 | $0.00321 |
| Sonnet 5.5 | $0.00003 | $0.00160 |
| Haiku 4.5 | $0.00002 | $0.00080 |
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 23d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- differ — 92% identical, 164 lines differ
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:
-
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
-
Execute Git Diff Analysis:
- Get the current branch name
- Verify both branches exist before proceeding
- Always execute:
git diff <target-branch>...<current-branch> --statto get file statistics - Always execute:
git diff <target-branch>...<current-branch> --name-statusto 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
-
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")
-
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
-
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]
- 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
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.
- 23d ago First seen · 84 lines · 16 tokens per session scan A 039b3517851f
differ is an agent published in the GitHub repository NikiforovAll/claude-code-rules (141 stars, last pushed 11d ago), licensed Apache-2.0. It adds 16 tokens to every session and 802 once invoked, about $0.0001 per session on Opus 5.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-09-21.
Other agents, from other repositories
portfolio-surveyor
Read-only portfolio surveyor for the Agentic Engineer. Runs the cheap live-state survey across exactly the repositories the consuming deployment's Portfolio map names and returns ONE compact, fixed-shape digest of operate and advance signals — breakage, per-PR hygiene, review-lane state, triage, and roadmap state …
cicd-specialist
CI/CD expert for GitHub Actions, GitLab CI, and Forgejo. Use for pipeline creation, testing workflows, and release automation.
git-historian
Use this agent for git archaeology, when the user asks "why does this code exist", "when did this break", "what introduced this behavior", mentions "git blame", "git bisect", "pickaxe", "regression", "who changed this", or "find the commit that". Examples.
conflict-resolver
Use this agent when a merge or rebase has produced conflicts, when the user mentions "merge conflict", "conflict markers", "rebase conflict", "unmerged paths", or asks how to reconcile two branches' changes to the same file. Examples.
semver-advisor
Use this agent when the user needs to decide a version bump, asks whether a change is breaking, mentions "major minor patch", "semver", "version bump", "backward compatible", or "API compatibility", or when a command needs a diff/commit-range classified per Semantic Versioning. Examples.
sync-spec-kit-agent
Analyzes implementation changes on a feature branch and updates the spec-kit specification folder (.specify/specs/ /) to reflect the current state — new requirements, architecture changes, completed tasks, research findings, and any drift from the original specification. Context: User finished implementing something…