cribsheet
persistent memory for your AI — plain markdown on disk, semantically indexed
Your AI assistant forgets everything between sessions. cribsheet gives it a
durable, searchable memory — as plain markdown files you own, not a black box —
that persists across sessions and is shared across every agent and tool you run.
It remembers three kinds of things:
- Notes — conventions, gotchas, hard-won facts. Written as markdown, found by
meaning (semantic + keyword search), not just exact words.
- Code — a symbol index of your repos: every function/class/method with an LLM
"what it does" description, a real call graph (who calls what), and any durable
learnings you pin to a symbol. It answers the questions
grep can't — find
this by concept, what calls this, what does this do — across files.
- Decisions and plans — settled design choices and work items as a graph, not
prose: each records what it rests on, so an edit anywhere names what it just put
out of date, and a plan outlives the session that wrote it.
Disk is the source of truth; the vector index is a derived, rebuildable cache. One
warm process serves your editor (over MCP) and your terminal (crib <noun> <verb>) alike.
crib = the command. cribsheet = the project. See DESIGN.md
for the full architecture.
Why
- Agents forget. Memory should be durable and shared. A decision you made last
week, in another repo, in another tool's session, is one
lookup away — because
it's the same markdown tree behind every agent.
grep can't answer "what does this do" or "what calls this." The code index
answers by intent and traces the real call graph, so an agent (or you) finds
code by concept and understands its neighbourhood in one call.
grep can't tell you what a change invalidates, either. Design decisions and
plan items carry dependency edges, so a decision knows what it rests on and what
rests on it: change one and you're told, with the chain, which decisions just went
stale — and finishing a plan item names what it just unblocked. Prose in a file
can't make that promise; the graph can.
- It's plain markdown you own. No proprietary store — edit notes in your own
editor, diff them in git, sync them across machines. The index rebuilds itself.
- Built to actually get used. The hard part of memory isn't storing — it's
recall at the right moment. cribsheet ships the delivery layer: a one-line
directive that keeps the habit in context, plugins that wire it into Claude Code,
and an always-warm daemon so a lookup is never the slow path.
Quickstart
1 — Install — cribsheet is on PyPI; uv (or pipx) puts crib on your PATH
with the heavy deps isolated:
uv pip install cribsheet # or: uv tool install cribsheet · pipx install cribsheet
crib needs Python 3.14 or newer (uv tool install and uvx fetch one for you).
That's the complete product — store, ONNX embedder (no torch), MCP server + warm
daemon, watcher, and generation (polyllmkit, pulled from PyPI). Two extras:
[st], the torch embedder (host-specific wheels), and [m2v], model2vec static
embeddings (numpy only). No submodule dance — vendor/llmkit is only for
hacking on llmkit itself.
On Python 3.15 the ONNX parts (fastembed: the reranker and fe: embedders)
aren't installed yet, because onnxruntime has no 3.15 wheels. crib still installs
and runs there; with [st] (torch) installed, it uses the same models through
sentence-transformers instead:
- the reranker runs the same model (identical scores);
- a
fe: embedder runs the same model name. For BAAI/bge-* models the
vectors are the same, so an existing store is kept as is; any other fe:
model is re-embedded once under st:<model>, since its vectors may differ.
Either way crib warns at startup: set [embed] model = "st:<model>" in
config.toml so the setting matches what runs (for a BAAI/bge-* model
that switch re-embeds once). A model sentence-transformers can't load
either falls back to the hash embedder on an empty store, or refuses to
start on a store with vectors, naming the fix.
[m2v] embeds with no runtime at all. Without [st], lookups skip the rerank,
and a fe: embedder takes that last path.
Dev install (editable venv / uv)
python -m venv .venv && . .venv/bin/activate
pip install -e . # deps (incl. polyllmkit) from PyPI
uv sync # or: uv pip install -e .
# the torch embedder + llmkit's native LLM adapters (polyllmkit from PyPI):
pip install -e '.[st]' 'polyllmkit[md,bridge,anthropic,google,claude]'