Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By danworkman1v0.3.0MITIn 1 marketplace
Post-implementation code review of commits made by Claude Code. Reviews fire asynchronously after git commit/amend/rebase tool calls.
Run automatically on Claude Code events. Claude doesn't decide.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Post-implementation code review for Claude Code. Once a branch is done, hindsight reviews it with fresh eyes and asks: now that we have a working solution, is there a cleaner approach?
When Claude Code is mid-task, it makes local decisions to keep the work moving. Abstractions get introduced, helpers get extracted, patterns emerge that made sense in flight. Once the task is done and the solution actually works, those choices often look different. A fresh second pass — done by an agent that never saw the journey, only the destination — catches things the original pass can't.
That's hindsight: a separate agent, with its own system prompt and its own tools, that reviews the finished state and tells you whether there's a cleaner version.
# Install globally (or use npx)
npm install -g hindsight
# Export your Anthropic API key
export ANTHROPIC_API_KEY=sk-ant-...
# Finish your branch, then:
hindsight
The verdict prints to stdout. That's it.
Finish a branch
│
▼
Run `hindsight` (defaults to main..HEAD)
│
▼
Phase 1: Triage (Haiku) — was code actually changed?
│
▼
Phase 2: Deep review (Opus) — is there a cleaner solution?
│
▼
Verdict prints to stdout
ANTHROPIC_API_KEY. Reviews bill against your API account, not your Claude.ai subscriptionhindsight [options]
| Flag | Description |
|---|---|
--base <ref> | Diff against <ref>..HEAD instead of main..HEAD |
--force | Skip triage — go straight to deep review |
--path <dir> | Run against this repo instead of cwd |
--triage-model <model> | Phase 1 model. Default: haiku |
--review-model <model> | Phase 2 model. Default: opus |
help | Print usage |
Model values: haiku, sonnet, opus (or a raw Anthropic model ID).
| Env var | Equivalent flag |
|---|---|
HINDSIGHT_TRIAGE_MODEL | --triage-model |
HINDSIGHT_REVIEW_MODEL | --review-model |
Flags always win over env vars.
# Review the whole branch against main (default)
hindsight
# Review against a different base
hindsight --base develop
# Force a deep review (skip triage)
hindsight --force
# Point at a different repo
hindsight --path ~/coding/my-project
# Use Sonnet instead of Opus for the deep review
hindsight --review-model sonnet
main with no --base: main..HEAD is empty — hindsight prints a message telling you to pass --base and exits non-zero.clean and printed to stdout.Verdict: clean
Added auth middleware in src/auth.ts
Verdict: worth refactoring
src/hooks/useUserData.ts (lines 12-45)
Issue: duplicates logic already in useAuth
Fix: consolidate into useAuth and re-export
The new useUserData hook duplicates logic that already lives in useAuth...
Rough per-run costs at current Anthropic pricing:
Set a monthly spending cap in the Anthropic Console while you're getting comfortable.
hindsight also ships as a Claude Code plugin that auto-fires a review after every git commit, git commit --amend, or git rebase Claude runs in a session. This is the "set and forget" mode — you don't run anything manually.
In Claude Code:
/plugin marketplace add danworkman1/hindsight
/plugin install hindsight@danworkman1
Restart Claude Code if prompted. From the next session forward, every commit, amend, or rebase Claude performs triggers an async review.
ANTHROPIC_API_KEYis required. Reviews are made by a hook subprocess that bills against your API account, not your Claude.ai subscription — Anthropic doesn't permit third-party plugins to use subscription auth. ExportANTHROPIC_API_KEYin your shell rc (use~/.zshenvor~/.bash_profileso non-interactive shells inherit it). Without the key the hook logs a[skip]line and exits cleanly — your Claude session is never blocked.
Everything the CLI needs, plus:
jq (used by the plugin's hook script — almost certainly already on your system)Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub danworkman1/hindsight --plugin hindsightPlugins from other owners that cover similar ground