raiyanyahya/recall
Local Python plugin that carries project context across coding-agent sessions
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Recall is a lifecycle-driven plugin, not an MCP server or a memory service. Claude Code loads the manifest in .claude-plugin/; hooks/hooks.json wires session-start handling and incremental capture on Stop and SessionEnd. scripts/parse_transcript.py turns transcript entries into events, scripts/capture.py appends new activity to .recall/history.md, and scripts/make_context.py rebuilds the separate .recall/context.md handoff.
scripts/summarizer.py builds TF-IDF sentence vectors and a cosine-similarity graph, runs TextRank, and restores the selected sentences to source order. The implementation runs on the Python standard library, with NumPy as an optional accelerator. OpenCode reuses the same Markdown and summarization pipeline rather than maintaining a separate store: a generated TypeScript shim reacts to session.idle, and the adapter reads the session through the public opencode export CLI.
Key Capabilities & Differentiators
The history records prompts, replies, files touched, and commands run. The digest combines extracted sentences with the initial goal, where work stopped, open threads, and optionally git diff --stat and recent commits. The full digest is roughly 1–2K tokens, not a fixed limit. The default configuration keeps eight ranked sentences and supplies up to 200,000 characters to the summarizer, discarding the oldest input first.
Claude Code exposes /recall:save, /recall:show, and /recall:log; its startup hook asks whether to resume from context and whether to keep logging. OpenCode provides /recall-save and loads the digest through instructions. Auto-save is off by default. With auto_save_context: "on_end", Claude Code rebuilds at session end, whereas OpenCode can rebuild on each idle turn. To stop capture temporarily, create .recall/.capture-paused.
Trade-offs & Limitations
Recall complements CLAUDE.md and --continue / --resume: the first stores curated instructions, the latter recover a conversation, and Recall generates a compact record of what happened. Extractive ranking avoids a separate inference bill but cannot reliably identify every decision or unresolved constraint. Older details can fall outside the input cap. CI checks selection against lead, tail, and random baselines on labeled fixtures and checks parity between Python and NumPy; it does not enforce latency targets.
Recall itself makes no network calls, but a digest loaded by the host can become part of that host's model context. Redaction is best-effort, so keep .recall/ ignored by default and review files before sharing. Claude Code fences recalled text as untrusted reference data; the OpenCode integration loads the file through instructions, so do not assume the same confirmation step. Treat shared memory as untrusted input, especially in repositories with broad write access.
Hardware & Deployment Guide
Install Recall from Claude Code with /plugin marketplace add raiyanyahya/recall and /plugin install recall@recall, or load a checkout with claude --plugin-dir /path/to/recall. The runtime is local Python; CI covers Python 3.9–3.13 with and without NumPy. There is no pip install step for Recall, no service or GPU to provision, and no summarizer API key. Git is used for optional repository context. The v0.3.6 release fixed silent capture and context-surfacing failures on standard Windows installations.
v0.4.0 added opt-in OpenCode support while leaving the Claude Code path unchanged. Clone Recall and run python3 ~/recall/scripts/install.py --opencode --project /path/to/your/project. The installer writes .opencode/plugins/recall.ts and .opencode/commands/recall-save.md, and updates opencode.json to load .recall/context.md. Keep the clone at a stable path because the generated plugin points to it. Test capture, save, and restart on a representative project before rolling the setup out.
Stop and SessionEnd; OpenCode captures on session.idle through opencode export..recall/history.md is append-only, while .recall/context.md is overwritten with the current handoff.include_git: false; when enabled, Git reads disable external diffs, the pager, hooks, and fsmonitor.Claude Code or OpenCode users who repeatedly return to the same repository and want an inspectable handoff without a separate summarization service.
You need full transcript fidelity, support for Codex, or a workflow that forbids saving session content in project-local plaintext.
Quick Start & Installation
python -m venv .venv && . .venv/bin/activate pip install pytest ruff bandit numpy # numpy optional ruff check scripts tests benchmarks # lint bandit -c pyproject.toml -r scripts # security static analysis pytest # run the suite (also test without numpy) python benchmarks/bench.py # perf + quality numbers (human-readable) python benchmarks/bench.py --check # assert quality invariants (the CI gate) claude plugin validate . # official manifest validation
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| recall ★ | 770 | +2 | Python | MIT | Local Python plugin that carries project context across coding-agent sessions |
| ECC | 316.1k | +4.2k | JavaScript | MIT | Plugins and CLI workflows for planning, reviewing, and verifying agent-written c |
| ponytail | 204.4k | +4.1k | JavaScript | MIT | A prompt-driven coding-agent plugin for smaller changes and focused tests. |
| rtk | 88.7k | +684 | Rust | Apache-2.0 | A local Rust CLI wrapper that trims command output before coding agents read it. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/raiyanyahya/recall.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about recall
How do Claude Code and OpenCode capture and reload memory?
Stop and SessionEnd hooks to capture activity and SessionStart to surface saved context. OpenCode uses a generated TypeScript shim that captures on session.idle through opencode export, and loads the digest through opencode.json instructions. Both can use the same project-local Markdown files.What hardware does Recall need, and where does overhead come from?
on_end on representative sessions because it can summarize after each turn.Can we use it commercially, and does local processing settle compliance?
When should I use Recall instead of `--resume` or `CLAUDE.md`?
--resume when you need the original conversation, and CLAUDE.md when you need stable instructions. Recall is better suited to a compact, generated handoff across sessions or between Claude Code and OpenCode. Its extractive digest can leave out a critical constraint, so verify important details against the log or source before acting.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy