/jstack:hindsight-setupfrom jstack
Set up or audit the log sources that hindsight reads. Use for "hindsight setup", "/hindsight-setup", or when adding a new harness, log folder or analytics store.
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.
None: SKILL.md is the whole skill.
Save which agent logs hindsight reads, in ~/.config/hindsight/sources.json.
Ask short questions. Write nothing until the user confirms.
Inventory. Run hindsight-discover --no-gh --human from the sibling
hindsight skill (scripts/hindsight-discover). Also note whether gh is
signed in, whether T3 Code MCP tools are visible in this session, and any
analytics MCP server (ClickHouse, DuckDB, OpenTelemetry or similar).
hindsight is not installed, use this check: list these folders under
~ and count files by name only, without opening them:
.claude/projects, .codex/sessions, .codex/archived_sessions,
.gemini, .pi/agent/sessions, .local/share/opencode/opencode.db,
.t3/userdata/providers/antigravity. Run gh auth status.Show coverage. Give a short table: harness, session count, date span. List missing harnesses as gaps. A gap is not zero incidents.
Ask once, together:
paraphrase everywhere (default), or local-quotes for short
quotes in private reports?Write the config. Run hindsight-discover --write-config with the
answers: --extra-glob NAME=GLOB, --exclude GLOB, --analytics-mcp NAME,
--analytics-queries PATH, --privacy MODE. It keeps unknown keys and
writes atomically. Without the script, write the same JSON with a temp file
and rename (keys: version, harnesses, custom_globs, exclude_globs,
analytics_mcp, queries_ref, t3_mcp, privacy). To disable a harness,
set harnesses.<name>.enabled to false.
Offer, do not force, this pointer for AGENTS.md or CLAUDE.md:
## Hindsight
Log sources: `~/.config/hindsight/sources.json`. Run `hindsight` for retros.
Re-run `hindsight-setup` after adding a harness or telemetry store.
Verify. Run hindsight-discover --check --no-gh --human. Every enabled
source must be readable. If it fails, show the error lines, fix the
config with the user and run it again. For a declared analytics MCP, call
one harmless tool (list tables) to prove it responds.
Close. Tell the user they can run hindsight any time. Tell them to
re-run hindsight-setup when they add a harness or telemetry store. Report
the exact coverage from the check.
sources.json. Keep tokens in your secret manager.AGENTS.md or CLAUDE.md unless the user says yes.What 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