/jstack:hindsightfrom jstack
Mine local agent logs, GitHub PRs and T3 threads for recurring agent mistakes, then fix each at the lowest tier. Use for retros, "why does the agent keep...", or before/after proof of a rule change.
Ships in jstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Learn from past agent work. Then change the cheapest thing that stops the mistake. Use it for questions that span many sessions or days.
git log or PR
history. Read the current rules, skills and live config first. The fix may
exist.~/.config/hindsight/sources.json
first. If it is absent, run scripts/hindsight-discover (zero config) and
mention hindsight-setup for saving custom paths and overlays. Pick a mode
from references/modes.md.
N, the denominator, the window and
every uncovered harness or source. A missing log is a gap, not zero
incidents. A recurring pattern needs >= 3 independent parent
threads or sessions, or >= 2 days. Label anything smaller
single incident (N=...) and make no rule from it.AGENTS.md or CLAUDE.md rule, or a new skill, only when
>= 3 projects repeat the loop.Google Workspace data must not feed rules, evals or failure patterns.
gmail*, google-* or google_* (calendar, drive, docs, sheets, slides, tasks,
contacts), {drive,calendar,docs,sheets,slides,tasks,workspace}mcp,
mcp.googleapis.com, people.googleapis.com or gwscli. Drop the clean lines too. Do not extract, quote, count or
paraphrase from it. Apply this to local logs, T3 threads, PR text and
analytics rows.scripts/hindsight-discover --filter-jsonl FILE.
It prints only a clean, in-window session.Read privacy in sources.json. The default is paraphrase. Quote a short,
scrubbed line only in a private report, and only if privacy is
local-quotes. Never paste raw prompts, home paths, hostnames or secrets into
a PR, a public report or a chat.
N first.scripts/hindsight-discover: run when discovering local harness logs, checking configured source coverage, or reading a transcript with --filter-jsonlreferences/modes.md: read when choosing one of the five investigation modesreferences/sources.md: read when mining local JSONL/SQLite harness logs, GitHub PRs, or configuring an analytics MCP overlayreferences/t3-lens.md: read when listing or sampling T3 Code threads via MCPWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
20 skills in this plugin
/babysit-prMonitor a pull request through review and CI. Use when the user asks to monitor, watch, or babysit a PR./bugTake an upstream bug, in a tool we use but do not own such as T3 Code, from first error to merged fix. Use when an error comes from upstream code, or when asked to check for an upstream issue, file one, or propose its fix./ci-retroMake a repository's CI faster from its own run history, then keep it fast. Use when CI is slow, queued, flaky or cold-cached, when auditing CI performance, or after a session that spent its time waiting on or retrying CI./councilTrigger this if the user says 'council'./epicResearch, plan and ship ambitious multi-issue or multi-repo work end to end. Triggers on 'epic', '/epic', 'ship epic', or bold-options research, a plan for sign-off, then parallel issues, worktrees, zero-downtime deploys and live proof./file-prFile a concise pull request. Use when the user asks to file, open, or create a PR.npx claudepluginhub justcarlson/jstack --plugin jstack