# Repository Briefing: raiyanyahya/recall
> Source: https://repoforai.com/repo/raiyanyahya/recall (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/raiyanyahya/recall
- **Official Docs / Website**: https://recallplugin.dev
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: B+ (66/100 · Maintenance 20/35 · Adoption 12/25 · Releases 14/20 · License 20/20)
- **Latest Release**: v0.4.0 (2026-07-18) — https://github.com/raiyanyahya/recall/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: CLI, Local AI
- **Momentum**: 770 ★ total (+0 24h / +2 7d) · 44 forks
- **Topics**: `ai`, `ai-agents`, `anthropic`, `claude`, `claude-code`, `claude-code-plugin`, `claude-plugin`, `context`, `developer-tools`, `llm`, `local-first`, `memory`
- **When to Use**: Best for: Claude Code or OpenCode users who repeatedly return to the same repository and want an inspectable handoff without a separate summarization service. Skip if: You need full transcript fidelity, support for Codex, or a workflow that forbids saving session content in project-local plaintext.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Lifecycle capture: Claude Code appends new turns through `Stop` and `SessionEnd`; OpenCode captures on `session.idle` through `opencode export`.
- Shared state: `.recall/history.md` is append-only, while `.recall/context.md` is overwritten with the current handoff.
- Local ranking: TF-IDF, cosine similarity, and TextRank select source sentences; optional NumPy and pure-Python paths are checked for sentence-selection parity.
- Configurable bounds: Defaults retain eight summary sentences and cap summarizer input at 200,000 characters, dropping the oldest text first.
- Git controls: Git enrichment can be disabled with `include_git: false`; when enabled, Git reads disable external diffs, the pager, hooks, and fsmonitor.
- Release milestones: v0.3.6 fixed capture and context surfacing on standard Windows installs; v0.4.0 added opt-in OpenCode integration.
```

## Quick Start / Clone
```bash
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
```
