{"id":50557963,"url":"https://github.com/pixzl/recall","last_synced_at":"2026-06-04T09:00:59.392Z","repository":{"id":357901171,"uuid":"1239048734","full_name":"Pixzl/recall","owner":"Pixzl","description":"Shared memory for Claude Code — MCP server + CLI that indexes your local sessions and memory across all projects.","archived":false,"fork":false,"pushed_at":"2026-05-14T19:27:24.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-14T20:06:26.798Z","etag":null,"topics":["claude","claude-code","cli","developer-tools","embeddings","mcp","model-context-protocol","semantic-search","sqlite","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/pixzl","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pixzl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-14T17:56:41.000Z","updated_at":"2026-05-14T19:27:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Pixzl/recall","commit_stats":null,"previous_names":["drieken/recall"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Pixzl/recall","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pixzl%2Frecall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pixzl%2Frecall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pixzl%2Frecall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pixzl%2Frecall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pixzl","download_url":"https://codeload.github.com/Pixzl/recall/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pixzl%2Frecall/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33897568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude","claude-code","cli","developer-tools","embeddings","mcp","model-context-protocol","semantic-search","sqlite","typescript"],"created_at":"2026-06-04T09:00:57.508Z","updated_at":"2026-06-04T09:00:59.379Z","avatar_url":"https://github.com/Pixzl.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# recall\n\n[![CI](https://github.com/Pixzl/recall/actions/workflows/ci.yml/badge.svg)](https://github.com/Pixzl/recall/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\n\u003e Shared memory for Claude Code. An MCP server **and** a CLI that index your local Claude Code sessions and memory across every project — so Claude (and you) can find what was already figured out.\n\n![recall searching past Claude Code sessions from the terminal](https://raw.githubusercontent.com/Pixzl/recall/main/assets/demo.gif)\n\n## Why\n\nClaude Code already saves every session to disk — but only *within* one project. Whatever you worked out in another repo three weeks ago is invisible from where you are now.\n\n`recall` makes that history searchable across **every** project, and hands Claude a tool to search it mid-conversation:\n\n\u003e *\"Have we hit this auth bug before?\"* — Claude actually checks, instead of guessing.\n\nIt builds a local, on-disk SQLite index over the data Claude Code already keeps in `~/.claude/`:\n\n- past sessions (`projects/*/\u003cuuid\u003e.jsonl`)\n- memory files (`projects/*/memory/*.md`)\n\nand exposes it two ways:\n\n1. an **MCP server** Claude Code can call (`recall_search`, `recall_get`)\n2. a **CLI** you run yourself: `recall search \"...\"`\n\n100 % local. No telemetry. Secrets are redacted before they hit the index.\n\n## Install\n\n```bash\nnpm install -g pixzl\n# or run via npx without installing:\nnpx pixzl --help\n```\n\n\u003e The npm package is named `pixzl`; the command it installs is `recall`.\n\nNode 20+ is required (you already have it if Claude Code is installed).\n\n\u003e **Heads up — the first `recall index` is the slow one.** It downloads a ~120 MB embedding model once, then indexes your whole `~/.claude/projects/` tree (5–15 min on a recent Mac). Every run after that is incremental and fast — and all of it happens locally, nothing is uploaded.\n\n## Quickstart\n\n```bash\n# 1. Build the index (first run is slow — see the note above).\nrecall index\n\n# 2. Search from the terminal\nrecall search \"auth pattern across projects\"\n\n# 3. Register the MCP server with Claude Code (one-time)\nclaude mcp add recall -- npx pixzl mcp\n```\n\nAfter registration, Claude Code can call `recall_search` and `recall_get` in any new session. Try asking: *\"Have we discussed this auth pattern before? Use recall_search to check.\"*\n\n### What a search looks like\n\n```\n$ recall search \"how did we handle rate limiting\"\n\n1.000  session 2026-03-12  ~/dev/my-api\n  s_d84edb695ee7...\n  …token bucket lets a client spend accumulated capacity, which matches\n  how real clients behave. Bucket size = burst allowance, refill rate…\n\n0.984  memory  2026-02-28  ~/dev/my-api\n  m_9fc1cf0f552a...\n  [memory:decisions.md] ## Rate limiting — token bucket per API key, 60\n  capacity, 1/sec refill, backed by Redis. Sliding window was rejected…\n```\n\n## What gets indexed\n\n| Source                                  | Status |\n| --------------------------------------- | ------ |\n| `~/.claude/projects/*/*.jsonl`          | ✅ v1  |\n| `~/.claude/projects/*/memory/*.md`      | ✅ v1  |\n| `CLAUDE.md` in each project working dir | 🔜 v2  |\n| `~/.claude/file-history/`               | 🔜 v2  |\n\nSessions are chunked **per conversation turn** (one user message + the assistant's reply chain until the next user message). That's the right unit for \"what did we figure out about X\" — single messages are too small, whole sessions too coarse.\n\n## MCP tools\n\n| Tool             | What it does                                                                                                  |\n| ---------------- | ------------------------------------------------------------------------------------------------------------- |\n| `recall_search`  | Hybrid (vector + BM25) search. Returns short snippets + stable IDs.                                           |\n| `recall_get`     | Fetch a chunk by ID with surrounding turns from the same session. Use after `recall_search` to expand context. |\n\n## Privacy\n\n- The index lives at `~/.recall/index.db` with `0600` permissions.\n- Before any text enters the database, secrets matching common patterns (OpenAI/Anthropic API keys, AWS access keys, GitHub tokens, Slack tokens, PEM private keys, `Bearer ...`, `password=...`) are replaced with `[REDACTED:\u003ctype\u003e]`. No raw secret material is embedded or stored.\n- Default embedding model runs **in-process** via [transformers.js](https://github.com/huggingface/transformers.js). No data leaves your machine.\n- No telemetry. No phone-home. No automatic updates.\n\n## CLI reference\n\n```\nrecall index [--reset]            # build / refresh the index\nrecall search \u003cquery\u003e [-n LIMIT]  # search hybrid semantic + keyword\n  [-k session|memory]             #   filter by source kind\nrecall mcp                        # run the MCP stdio server (for Claude Code)\n```\n\n## How it works (architecture)\n\n```\n~/.claude/projects/*/*.jsonl  ─┐\n~/.claude/projects/*/memory/*.md ─┤   parse → chunk → redact → embed\n                                  ▼\n              ~/.recall/index.db (SQLite + sqlite-vec + FTS5)\n                                  ▼\n                ┌────────────────┴─────────────────┐\n                ▼                                  ▼\n       MCP server (stdio)                   CLI / TUI\n       Claude calls recall_*                 you call recall search\n```\n\nHybrid retrieval = vector ANN (sqlite-vec) ∪ BM25 (FTS5) fused via [Reciprocal Rank Fusion](https://plg.uwaterloo.ca/~gvcormac/cormacksigir09-rrf.pdf). Hands down the most robust setup for code-ish content.\n\n## Scope (v1 → v2)\n\n**v1 (now):** indexing, hybrid search, MCP server, CLI search.\n**v2 (next):** file watcher / incremental tail, `CLAUDE.md` indexing, `file-history` joins, Ink-based TUI with clipboard yank, `.recallignore`, `recall doctor`, `recall purge`.\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixzl%2Frecall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixzl%2Frecall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixzl%2Frecall/lists"}