Persistent session recall for Claude Code: orient, search, list, show transcripts via stdlib Python + SessionStart hook
Persistent session recall for Claude Code. Read-only access to your local transcripts at ~/.claude/projects/, surfaced via a SessionStart hook and a /recall slash command.
Adapted from dezgit2025/auto-memory by Desi Villanueva. Mental model, command taxonomy, and "RUN FIRST" instruction pattern are his — see NOTICE.
Status: v0.1.0 — personal use, single-author repo.
From any Claude Code session:
/plugin marketplace add gabrielpc1190/claude-automemory
/plugin install claude-automemory@claude-automemory
The marketplace and plugin share the same name. Updates: /plugin marketplace update claude-automemory then reinstall.
Every time Claude Code starts (or after /clear / /compact), the hook injects a small "orient" snapshot: 10 most recent files in your cwd + 3 most recent sessions + a "RUN FIRST" instruction block telling the model to query the bundled CLI before falling back to grep.
You can also invoke /recall <query> manually to ask things like:
/recall files --days 1/recall search "rate limiter"/recall show abc12345/recall list --globalRun directly from Bash:
python3 "${CLAUDE_PLUGIN_ROOT}/bin/recall.py" <cmd>
| Command | What it returns |
|---|---|
orient | Files + sessions snapshot for this cwd. The hook calls this. |
files | Files touched (Edit/Write/Read), dedup, recency-sorted. |
list | Recent sessions: id, first user msg, turn count. |
search <term> | Case-insensitive substring search across user/assistant text. |
show <sid> | One session: first/last user msg, turn count, tool_uses. |
plans | Lists ~/.claude/plans/. |
health | 4-dim status: dir exists, parseable count, query latency, freshness. |
format-check | Samples records, reports fraction matching expected schema. |
Common flags: --days N, --limit N, --global, --json, --debug.
SessionStart hook ──► recall.py orient --hook ──► additionalContext (~50 tokens)
/recall slash ──► recall.py <args> ──► surfaces output to model
SKILL.md ──► tells model to prefer recall over grep
▼
~/.claude/projects/<cwd-encoded>/*.jsonl (read-only)
bin/recall.py is a single-file stdlib script (no pip install). The plugin manifest registers the hook; nothing in ~/.claude/CLAUDE.md or ~/.claude/settings.json is modified.
Claude Code's JSONL format may evolve. Run python3 bin/recall.py format-check --json periodically. If status is drift, update REQUIRED_FIELDS in recall.py. The plugin never blocks the session on drift — only warns.
python3 -m pytest tests/ -v --tb=short
CI runs on Ubuntu and Windows, Python 3.10/3.11/3.12.
/plugin uninstall claude-automemory@claude-automemory
Leaves no residue in ~/.claude/. The plugin only ever read.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub gabrielpc1190/claude-automemory --plugin claude-automemoryMulti-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Memory compression system for Claude Code - persist context across sessions
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Write feature specs, plan roadmaps, and synthesize user research faster. Keep stakeholders updated and stay ahead of the competitive landscape.