compare

compare is a command for Claude Code from eddiebelaval/squire. It costs 0 tokens per session (332 once invoked), scanned A, original, MIT.

A command that explains differences between versions of a software project, such as current edits, branches, commits, or file versions.

In plain words
What is it for?
Use it to count changed lines and files, group changes by area, explain important edits, and flag risks such as breaking changes or new dependencies.
Why use it?
It makes large or unfamiliar code changes easier to understand by summarizing what changed and why it may matter.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to count changed lines and files, group changes by area, explain important edits, and flag risks such as breaking changes or new dependencies.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/eddiebelaval/squire/compare
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/eddiebelaval/squire

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 compare

README.md
[![agentmods](https://agentmods.dev/badge/commands/eddiebelaval/squire/compare/github.svg)](https://agentmods.dev/commands/eddiebelaval/squire/compare)
Your own site
<a href="https://agentmods.dev/commands/eddiebelaval/squire/compare"><img src="https://agentmods.dev/badge/commands/eddiebelaval/squire/compare/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 compare

Your own site · 80×15
<a href="https://agentmods.dev/commands/eddiebelaval/squire/compare"><img src="https://agentmods.dev/badge/commands/eddiebelaval/squire/compare.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 332 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 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.00332
Opus 5.5 $0.00000 $0.00133
Sonnet 5.5 $0.00000 $0.00066
Haiku 4.5 $0.00000 $0.00033

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

Security

Grade A, and why

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

commands/compare.md · 61 lines

What it actually says

/compare - Compare Changes

You are helping visualize what changed. Make it clear and actionable.

  1. Determine Comparison Ask what to compare:

    • Current changes vs last commit
    • Current branch vs main
    • Two specific commits
    • Before/after a specific file
  2. Show Summary Stats

    📊 Changes Summary:
    - Files changed: [count]
    - Lines added: [count]
    - Lines removed: [count]
    - Net change: [+/- count]
    
  3. Categorize Changes Group by type:

    🎨 UI/Frontend

    • [List files]

    ⚙️ Logic/Backend

    • [List files]

    🗄️ Database

    • [List files]

    📝 Documentation

    • [List files]

    ✅ Tests

    • [List files]
  4. Highlight Key Changes For each important file:

    • What changed in plain English
    • Why it matters
    • Any potential issues
  5. Visual Diff (if requested)

    • Show specific file changes
    • Explain what the changes do
    • Use simple language
  6. Impact Assessment

    • Breaking changes? (yes/no)
    • Affects existing features? (list)
    • New dependencies? (list)
    • Performance impact? (better/worse/neutral)

Output Style:

  • Visual and organized
  • Plain English explanations
  • Focus on WHAT changed and WHY it matters
  • Flag any concerns or risks
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 · 61 lines · 0 tokens per session scan A 18007612fdc2

Subscribe to this mod's changes

compare is a command published in the GitHub repository eddiebelaval/squire (21 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 332 tokens. 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.

Related

Other commands, from other repositories

review-pr

Review a pull request (GitHub) or merge request (GitLab) and provide detailed feedback.

desplega-ai/agent-swarm · 19 tokens

fix-issue

Fixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to…

yonatangross/orchestkit · 82 tokens

create-pr

Creates GitHub pull requests with pre-flight validation, conventional title formatting, and structured summary generation. Runs parallel checks (tests, lint, type-check, security) before opening. Supports feature, bugfix, refactor, and hotfix PR types with milestone assignment via gh CLI. Invoke only if the operator…

yonatangross/orchestkit · 89 tokens

swarm-migrate

Cross-repo migration swarm — one coordinator + N parallel subagents (one per target repo) that apply the same transformation, open PRs, wait for CI, and report back to a shared JSON ledger. Coordinator handles topology, conflict auto-rebase, and stop-on-novel-failure. Use when bumping a shared dependency, rolling out…

yonatangross/orchestkit · 103 tokens

implement-issue

Implement a GitHub issue or GitLab issue and create a PR/MR.

desplega-ai/agent-swarm · 15 tokens

auto-review.skeleton

Description: This section is populated by Bootstrap with manifest data. Required manifest fields: project.description, stack.primary, project.structure Example output.

varienos/agentic-workflow · 0 tokens