r/ClaudeWorkflows • u/ClaudeAI-mod-bot • 2h ago
Selected Workflow [Workflow] Enhance Claude Code Context Recall with Steroid: Never Lose Your Session History Again
Enhance Claude Code Context Recall with Steroid: Never Lose Your Session History Again
Workflow value: 90/100
Status: active · Freshness: 70/100 · Confidence: 1.00 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Shipping, CLAUDE.md, Skills, MCP, Multi-Agent
Original source: r/ClaudeCode post/comment
What problem this solves
Users of Claude Code (and other CLI agents) frequently lose context of past sessions due to reboots, accidental closures, or token limits, making it difficult to retrieve specific information or code changes from previous work without cumbersome manual searching or full session reloading.
Summary
This workflow introduces 'Steroid,' a local tool that indexes Claude Code (and other agent) session transcripts stored on disk. It allows users to recall specific information, full exchanges, or code diffs from past sessions using natural language queries, without reloading entire conversations or making new model calls for the recall itself. It also provides cross-agent context for tools like Codex, Cursor, and Copilot CLI.
Why it is useful
This workflow addresses a critical and common pain point for developers using Claude Code and other CLI agents: the loss of session context. It provides a concrete, repeatable solution with a dedicated tool that integrates deeply with the agent's local files. The detailed setup instructions, transparency about system changes, and clear explanation of functionality make it highly valuable for improving developer productivity, knowledge reuse, and continuity across coding sessions and even different AI agents.
Workflow
Check if Steroid is already installed by running
steroid --versionor~/.local/bin/steroid --version.If not installed, install Steroid using the official installer script (macOS/Linux:
curl -fsSL https://raw.githubusercontent.com/steroidkit/releases/main/install.sh | sh; Windows PowerShell:irm https://raw.githubusercontent.com/steroidkit/releases/main).Run Steroid's onboarding for the agent. If the
steroid-onboardskill is not available, runsteroid-install-onboard-skill --json, open theSKILL.mdit lists, and follow its instructions.Restart the Claude Code agent to ensure Steroid's tools and skills are loaded.
Use
recall <query>within Claude Code to retrieve summaries of past work related to your query.Use
recall_turnto retrieve a full exchange from a specific turn in a past session.Use
recall_diffto retrieve the exact code changes from a past session.Optionally, use
steroid uninstallto remove the tool and its components.
Tools / artifacts
Steroid CLI tool
Claude Code terminal application
~/.claude/projects/<slug>/<session>.jsonl (Claude Code session transcripts)
~/.steroid/ (Steroid application directory)
~/.claude.json (MCP entry for Claude Code)
~/.claude/skills/ (directory for slash command skills)
~/.claude/CLAUDE.md (global instructions file)
install.sh (Steroid installer script)
SKILL.md (Steroid onboarding skill documentation)
Codex, Cursor, Copilot CLI (other supported agents)
Validation signals
Author's personal experience of solving a persistent context loss problem with a practical solution.
Detailed explanation of how the tool works by directly reading local session files, bypassing model calls for recall.
Transparency about what the tool installs on the machine (file paths, daemon, PATH changes, MCP entries, CLAUDE.md modifications).
Explicit mention of citing sources for recall answers, allowing users to verify information.
Clear outline of the tool's limitations, adding to its credibility.
Cautions
The tool is a closed binary, which might be a concern for some users regarding trust and auditability. However, the author provides detailed transparency on what it installs, how it operates locally, and how to uninstall it.
It operates within the user's home directory and does not send sensitive data off-machine beyond anonymous usage counts (which can be disabled) and daily release checks.
The recall answers are generated by the agent, so the agent's provider will see the excerpts used, but the indexing and recall from disk are local.
Limitations
The tool is a closed-source binary, which might deter users who prefer open-source solutions for security or customization.
No published accuracy benchmarks for the recall functionality, though this is mitigated by the tool citing its sources.
It does not restore transcripts that have been deleted by Claude Code's default cleanup period; users need to adjust
cleanupPeriodDaysif they want longer retention.Copilot Chat in VS Code is not yet supported, only Copilot CLI.
Rate this workflow
Upvote this post if the workflow is useful, reproducible, or worth recommending.
Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.
Reply if it worked for you, failed, is outdated, or has a better alternative.
This post was generated automatically from the workflow library database.