history-insights-reviewer

history-insights-reviewer is an agent for Claude Code from vladolaru/claude-code-plugins. It costs 38 tokens per session (3,888 once invoked), scanned B, original, MIT.

A code-review agent that searches Git history and GitHub pull requests for earlier fixes, improvements, and lessons. Git history records past changes, while pull requests are proposed code changes for review.

In plain words
What is it for?
Use it to review a change by finding similar past work and relevant decisions in the repository.
Why use it?
It helps reviewers reuse knowledge the team has already recorded instead of repeating old investigations or mistakes.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths.

Good fit Use it to review a change by finding similar past work and relevant decisions in the repository.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/vladolaru/claude-code-plugins/history-insights-reviewer
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/vladolaru/claude-code-plugins

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 history-insights-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/vladolaru/claude-code-plugins/history-insights-reviewer/github.svg)](https://agentmods.dev/agents/vladolaru/claude-code-plugins/history-insights-reviewer)
Your own site
<a href="https://agentmods.dev/agents/vladolaru/claude-code-plugins/history-insights-reviewer"><img src="https://agentmods.dev/badge/agents/vladolaru/claude-code-plugins/history-insights-reviewer/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 history-insights-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/vladolaru/claude-code-plugins/history-insights-reviewer"><img src="https://agentmods.dev/badge/agents/vladolaru/claude-code-plugins/history-insights-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,888 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00038 $0.03888
Opus 5.5 $0.00015 $0.01555
Sonnet 5.5 $0.00008 $0.00778
Haiku 4.5 $0.00004 $0.00389

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

Security

Grade B, and why

history-insights-reviewer scanned grade B with 1 finding 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 2mo 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.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

Complete this setup first — it provides your review rules, scope, diffs, and output instructions:
plugins/pirategoat-tools/agents/history-insights-reviewer.md · 255 lines

How it starts

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

MANDATORY SETUP — Run Bootstrap Before Reviewing

Complete this setup first — it provides your review rules, scope, diffs, and output instructions:

Run the bootstrap script:

PLUGIN_ROOT=$(cat "${PIRATEGOAT_TOOLS_HOME:-$HOME/.pirategoat-tools}/sessions/$CLAUDE_CODE_SESSION_ID/plugin-root" 2>/dev/null)
[ -z "$PLUGIN_ROOT" ] || [ ! -d "$PLUGIN_ROOT/scripts" ] && PLUGIN_ROOT=$(find ~/.claude -path "*/pirategoat-tools/*/scripts/review/agent/bootstrap.py" -type f 2>/dev/null | sort -V | tail -1 | xargs dirname | xargs dirname | xargs dirname | xargs dirname)
python3 $PLUGIN_ROOT/scripts/review/agent/bootstrap.py --agent history-insights-reviewer

If STATUS is NO_DOMAIN_FILES, your not_applicable review is already recorded at the REVIEW path printed; return STATUS: FINISHED without reading the briefing. If STATUS is ERROR, report the error and exit. Otherwise the output names your briefing file; read it in full. It contains your review rules, scope (with diffs and file list), and output instructions. Parse the diffs, file list, BASE_REF, and OUTPUT_DIR from the scope section. Use the diffs for scenario extraction (Phase 1). Use BASE_REF for history mining commands. Only then proceed.


You are an expert History Insights Reviewer specializing in git archaeology, commit analysis, PR pattern mining, and cross-area knowledge transfer. The team has already solved many problems — your job is to find those solutions before the same mistakes are repeated or improvements are missed. This review matters: repeating mistakes the team already fixed is preventable waste.

Your scope: You read PR diffs to understand WHAT changed (scenario extraction), then mine git history for similar scenarios fixed or improved elsewhere. Your findings come from history, not from reviewing the working tree code. Focus on temporal insights (what the team learned over time), not pattern detection (what exists now).

RULE 0 (MOST IMPORTANT): The Team Already Knows

Every fix, enhancement, and refactor in git history is a lesson. Before approving code that handles error recovery, validation, edge cases, performance, or UX — search for how the team solved similar problems elsewhere. The best review feedback comes from the project's own experience.

Read the full file on GitHub · 255 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. 2mo ago Changed 2df7f9859299
  2. 2mo ago Changed 19491c8f0021
  3. 2mo ago Changed 6d064487d42c
  4. 2mo ago Changed · -5 lines 6fb91a20b0c9
  5. 2mo ago Changed 7323886ff549
  6. 3mo ago First seen · 260 lines · 38 tokens per session scan B eae40b49a777

Subscribe to this mod's changes

history-insights-reviewer is an agent published in the GitHub repository vladolaru/claude-code-plugins (9 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 3,888 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

history-insights-reviewer compared with agents from other repositories

history-insights-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
history-insights-reviewervladolaru/claude-code-pluginsAgent9todayMITB38Claude Code
component-improverdavila7/claude-code-templatesAgent35ktodayMITA39Claude Code
release-validatorrlajous/claude-code-commandsAgent3017d agoMITA25Claude Code
pr-creatoraxiomantic/spellbookAgent136d agoMITA75Claude Code
FlowSubmitNWatchPRjpoley/flowspecAgent491mo agoApache-2.0A30Claude Code
fe-git-operatorsh5623/fe-railAgent1todayMITA83Claude Code
hooks-daemon-branch-reject-reviewerEdmonds-Commerce-Limited/claude-code-hooks-daemonAgent4todayMITA71Claude Code