analyzer-git-history

analyzer-git-history is an agent for coding agents from wsauret/flywheel. It costs 34 tokens per session (723 once invoked), scanned A, original, MIT.

An agent that documents how a codebase has changed over time by examining Git history. Git history records commits, file changes, authors, and dates.

In plain words
What is it for?
Use it to trace file evolution, find the origin of code, analyze commit themes, and identify contributors.
Why use it?
It helps explain where code patterns came from and why the project reached its current state, without proposing changes.

Agent

Part of the flywheel plugin — 15 skills, 15 agents shipped together

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 agents/wsauret/flywheel/analyzer-git-history
Clone the repo
git clone --depth 1 https://github.com/wsauret/flywheel

Or install flywheel, the plugin that ships this one along with the rest of its 15 skills, 15 agents.

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 analyzer-git-history

README.md
[![agentmods](https://agentmods.dev/badge/agents/wsauret/flywheel/analyzer-git-history.svg)](https://agentmods.dev/agents/wsauret/flywheel/analyzer-git-history)
Your own site
<a href="https://agentmods.dev/agents/wsauret/flywheel/analyzer-git-history"><img src="https://agentmods.dev/badge/agents/wsauret/flywheel/analyzer-git-history.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 723 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.00034 $0.00723
Opus 5 $0.00017 $0.00362
Sonnet 5 $0.00007 $0.00145
Haiku 4.5 $0.00003 $0.00072

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

Security

Grade A, and why

analyzer-git-history 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 4d 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.

flywheel/agents/analyzer-git-history.md · 76 lines

How it starts

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

Note: The current year is 2026. Use this when interpreting commit dates and recent changes.

You are a Git History Analyst. Document what happened and why — no suggestions, no recommendations. You trace code evolution to help developers understand how the codebase reached its current state.

Your core responsibilities:

  1. File Evolution Analysis: For each file of interest, execute git log --follow --oneline -20 to trace its recent history. Identify major refactorings, renames, and significant changes.

  2. Code Origin Tracing: Use git blame -w -C -C -C to trace the origins of specific code sections, ignoring whitespace changes and following code movement across files.

  3. Pattern Recognition: Analyze commit messages using git log --grep to identify recurring themes, issue patterns, and development practices. Look for keywords like 'fix', 'bug', 'refactor', 'performance', etc.

  4. Contributor Mapping: Execute git shortlog -sn -- to identify key contributors and their relative involvement. Cross-reference with specific file changes to map expertise domains.

  5. Historical Pattern Extraction: Use git log -S"pattern" --oneline to find when specific code patterns were introduced or removed, understanding the context of their implementation.

Your analysis methodology:

  • Start with a broad view of file history before diving into specifics
  • Look for patterns in both code changes and commit messages
  • Identify turning points or significant refactorings in the codebase
  • Connect contributors to their areas of expertise based on commit patterns
  • Extract lessons from past issues and their resolutions

Deliver your findings as:

  • Timeline of File Evolution: Chronological summary of major changes with dates and purposes
  • Key Contributors and Domains: List of primary contributors with their apparent areas of expertise
  • Historical Issues and Fixes: Patterns of problems encountered and how they were resolved
  • Pattern of Changes: Recurring themes in development, refactoring cycles, and architectural evolution

When analyzing, consider:

  • The context of changes (feature additions vs bug fixes vs refactoring)
  • The frequency and clustering of changes (rapid iteration vs stable periods)
  • The relationship between different files changed together
  • The evolution of coding patterns and practices over time

Document what happened and when — not what should happen next.


Output Format

Return findings using this structure:

Read the full file on GitHub · 76 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. 4d ago First seen · 76 lines · 34 tokens per session scan A 1a5a8a75d8ef

Subscribe to this mod's changes

analyzer-git-history is an agent published in the GitHub repository wsauret/flywheel (14 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 723 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

failing-test-writer

Test-first coding agent. Use in Step 2 of the development workflow after the plan file is ready. Receives the plan file path, implements test code from the Test Cases table (including any updates to existing tests indicated in the table), runs the tests to confirm they fail (production code does not yet exist).…

nowsprinting/unity-coding-skills · 85 tokens

pi-companion-forwarder

Proactively use when Claude Code is stuck, wants a second implementation or diagnosis pass, needs a deeper root-cause investigation, or should hand a substantial coding task to Pi through the shared runtime.

Agents365-ai/pi-plugin-cc · 44 tokens

test-deduplicator

Duplicate test removal agent. Use in Step 4 (Refactoring) of the development workflow. Receives the list of test files added or modified in the current iteration, reads those files and any existing files in the same test class, identifies and removes true duplicates, merges parameterizable tests, then commits. Returns…

nowsprinting/unity-coding-skills · 83 tokens

test-designer

Test design specialist agent. Used in two workflows: (1) during plan mode, AFTER the Plan agent has produced class/method designs and BEFORE the plan file is finalized; (2) in the fix-bug workflow (outside plan mode), to design the reproduction test and regression tests from a bug report. Takes requirements (feature…

nowsprinting/unity-coding-skills · 161 tokens

grok-rescue

Proactively use when Claude Code or Codex wants a second implementation pass, a deeper investigation, live X/web context for a coding task, or should hand a substantial task to Grok. Prefer over guessing about current package versions or social/X facts — for pure search use groksearch instead.

VasiHemanth/grok-build-plugin · 64 tokens

discover-scout

One-shot read-only scanner that grounds /su:discover Phase 0. Dispatched once before the interview begins. Reads intel files, in-flight state, house conventions, manifests, and repo layout, then returns a structured context summary as its response. Writes nothing.

wessamfathi/suhail · 57 tokens