the-rabak/compound-engineering-plugin/session-history

Claude Code and agent skill by the-rabak/compound-engineering-plugin

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Recover prior attempts safely by searching repo artifacts first and only then using a bounded recent-session fallback when the harness exposes searchable history

Install

npx vskill@latest install the-rabak/compound-engineering-plugin/session-history

SKILL.md

Session History

Use this skill when you need to answer "what did we already try?" without blindly dumping prior transcripts into the current context.

This skill exists to prevent repeated dead ends, especially when:

  • resuming interrupted work
  • debugging a failure that may have been seen before
  • writing compounded learnings after several attempts
  • comparing current behavior against prior execution or review history

Core Rule

Search repo-owned artifacts first. Only if those artifacts do not answer the question clearly enough should you fall back to a bounded recent-session search.

The goal is recovery of useful decisions and evidence, not transcript archaeology for its own sake.

Source Priority

Tier 1: Repo-Owned Artifacts (always first)

Search the smallest set of repo artifacts that could answer the question:

  • docs/solutions/
  • docs/execution-sessions/
  • docs/plans/ (.md or .html)
  • docs/architecture/ (.md or .html)
  • docs/tickets/
  • docs/brainstorms/ (.md or .html)
  • related README, CHANGELOG, constitution, or workflow-reference docs when they explain intent or constraints

Prefer artifacts that already encode structured learning, decisions, or execution evidence.

Dual-read by artifact extension. A matched plan, brainstorm, or architecture artifact may be legacy .md or the .html-artifact output (plan since the html-artifacts pilot, brainstorm since T03, architecture since T04). Never scrape a rendered .html artifact for its content. Detect the reader from the artifact's own extension: `.md` -- parse frontmatter and sections as today (legacy path, unchanged). `.html` -- load commands/workflows/references/html-artifacts/island-extraction-helper.md, quote its first non-empty line, and read the artifact's #artifact-data JSON island for that kind's fixed-core facts instead. If extraction fails for any reason, stop immediately and report the artifact path and the exact failure per the helper's fail-loud branch -- do not proceed on partial data, scrape the rendered HTML, or fall back to a .md mirror. Solutions, execution sessions, and tickets stay .md-only.

Tier 2: Recent Harness Sessions (conditional fallback)

Only search prior interactive sessions when:

  • the repo artifacts do not explain what was tried
  • the problem is recent and likely lives in transient execution history
  • the current task needs failure chronology, not just stable docs

Use a bounded window. Default to the last 8 relevant sessions unless the user asks for a different range.

If the harness exposes searchable session history, use that tool. For example:

  • Copilot: prefer structured session-history facilities such as session_store
  • other harnesses: use their searchable local session history or transcript index if available

If the harness does not expose searchable session history, say so plainly and continue from repo artifacts only.

Retrieval Method

Step 1: Define the lookup target

Before searching, state what you are trying to recover:

  • prior fixes for the same symptom
  • failed approaches
  • relevant file paths or modules
  • decisions that constrained the current design
  • exact evidence from a previous reproduction or execution run
Step 2: Search repo artifacts first

Search for the task topic plus close variants:

  • problem terms
  • component names
  • file/module names
  • error text fragments
  • feature names
  • workflow artifact refs (brainstorm_ref, architecture_ref, tickets_ref, plan_ref)

Prefer exact matches first, then broaden.

Step 3: Decide whether session fallback is needed

Use recent-session lookup only if Tier 1 leaves a material gap.

Good reasons to fall back:

  • you found references to prior attempts but not the actual failure progression
  • a recent bug/fix loop happened before documentation was updated
  • you need to know which hypotheses were already ruled out

Bad reasons to fall back:

  • curiosity
  • searching for filler context
  • loading whole transcripts when a short summary would do
Step 4: Keep extraction bounded

Never dump raw transcripts into the main thread unless the user explicitly asks for that.

Extract only the minimum useful structure:

  • session date / title / branch if available
  • task or bug being worked on
  • relevant files touched
  • key hypotheses tried
  • what failed
  • what worked
  • unresolved blockers

When possible, summarize from structured snippets, checkpoint summaries, or short excerpts instead of full transcripts.

Output Shape

Return a concise, decision-ready summary:

markdown
## Prior Context
-**Best artifact matches:** [paths]
-**What was already tried:** [1-3 bullets]
-**What failed:** [1-3 bullets]
-**What worked or partially worked:** [1-3 bullets]
-**Relevant files / modules:** [paths]
-**Remaining uncertainty:** [what still is not known]

If session fallback was used, add:

markdown
-**Recent session window used:** [count and scope]

Guardrails

  • Do not treat speculative assistant text as verified fact.
  • Do not surface secrets, credentials, or unrelated private conversation content.
  • Do not widen the session window just because the first search was noisy.
  • Do not quote large transcript blocks when a short synthesis is enough.
  • If the evidence is weak, label it as weak.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/the-rabak/compound-engineering-plugin/session-history/badge)](https://verified-skill.com/skills/the-rabak/compound-engineering-plugin/session-history)

Something wrong with this skill or its page? Tell us.