ColdMemory v0.3
ColdMemory gives any MCP client short answers from your notes and repos. Each answer quotes live files, with the exact path and lines.
- It works today without a GPU. Disk search is the default.
- This public build has no training code. It searches and serves notes from disk; it can load a cartridge you already have.
- It needs Linux, Python 3.11 or newer (tested on 3.14.4),
git, andopensslfor signing. The package uses only the Python standard library (dependencies = []).
Quickstart
Install coldmemory from PyPI (Apache-2.0, Python 3.11+, zero runtime dependencies) and initialize your notes in one command:
pip install coldmemory # or: uv tool install coldmemory
coldmemory init /path/to/notes # creates 0700 store, verifies 1 live file:line quote, previews client wiring
coldmemory init /path/to/notes --apply # backs up & wires detected clients automatically (idempotent)
coldmemory doctor # verifies Python, git, 0700 store, bundles, and a live memory_ask query
Client Setup (--tools memory_ask: 234 o200k_base schema tokens)
All examples below use STORE="${XDG_DATA_HOME:-$HOME/.local/share}/coldmemory" (the default store created by coldmemory init).
| Client | Setup or Config Command |
|---|---|
| Claude Code | claude mcp add coldmemory -- uvx coldmemory mcp --local-unsigned --tools memory_ask --store "$STORE" |
| Cursor / Cline | coldmemory snippet cline --store "$STORE" --local-unsigned --tools memory_ask (cursor also supported) |
| Goose | coldmemory snippet goose --store "$STORE" --local-unsigned --tools memory_ask |
| OpenBot | coldmemory snippet openbot --store "$STORE" --local-unsigned --tools memory_ask |
| Hermes | Install into Hermes's Python environment (pip install coldmemory) so hermes_agent.memory_providers auto-registers; run hermes memory setup and set COLDMEMORY_LOCAL_UNSIGNED=1 for unsigned private-store archive recall |
| Codex / Grok CLI | coldmemory snippet codex ... or coldmemory snippet grok ... (or coldmemory init /path/to/notes --apply) |
server.json provides Official MCP Registry metadata (io.github.coldstack-dev/coldmemory). For step-by-step agent installation (for example in Cline), see llms-install.md.
python3 -m venv .venv
.venv/bin/python -m pip install --no-deps -e .
.venv/bin/coldmemory init /path/to/notes
For offline installs where setuptools>=70.1 (which includes bdist_wheel) is already on the host, create the venv with python3 -m venv --system-site-packages .venv and pass --no-build-isolation to pip install (or install a prebuilt wheel with --no-deps).
coldmemory init auto-detects Claude Code, Codex, OpenBot, Hermes and Grok CLI (override with --clients claude,codex,openbot,hermes,grok, --clients none, or --dry-run). It never overwrites an existing bundle ID for different sources unless you pass --force (with --apply, --force also replaces existing signed or remote ColdMemory entries in selected clients), reuses unchanged revisions on re-run, creates timestamped backups before editing any client config (close running clients before --apply so they cannot race config saves), wires --tools memory_ask (234 schema tokens) plus coldmemory.push hooks for Claude Code and Codex (in Codex, run /hooks once to review and trust the generated hooks), copies the Hermes plugin files (printing its remaining env/config step), prints OpenBot Desktop's MCP form fields, and adds the same memory_ask server to ${GROK_HOME:-~/.grok}/config.toml for Grok CLI (no hooks: Grok's session, prompt and compact hooks cannot inject model context, and Grok loads ColdMemory's MCP instructions natively).
Try it on the synthetic company
Run these from this folder:
STORE=$(mktemp -d)
python3 -m coldmemory compile --store "$STORE" --id demo --source obsidian:"$PWD/tests/fixtures/synthetic_company/engineering-vault"
python3 -m coldmemory ask --local-unsigned --store "$STORE" "Do we run RabbitMQ for the Harbor event queue?"
python3 -m coldmemory status --local-unsigned --store "$STORE"
The answer quotes the current NATS decision and says the RabbitMQ note is out of date.
Serve a signed scope
Provision keys once on the signer. Keep the public-key copies used by the server outside the bundle store. The policy file contains a mosaics array. Each rule has an entity string and at least two distinct facts strings. Use the review and custody guidance in THREAT_MODEL.md.
mkdir -p -m 700 ~/.local/share/coldmemory-keys
chmod 700 ~/.local/share/coldmemory-keys
python3 -m coldmemory.scope_keys ~/.local/share/coldmemory-keys public private support
python3 -m coldmemory compile --store "$STORE" --scope public --id handbook \
--source "notion:$REVIEWED_EXPORT" --sign-key ~/.local/share/coldmemory-keys/public/sign.pem --policy "$RELEASE_POLICY"
python3 -m coldmemory.mcp_server --store "$STORE" --scope public --trust-key "public=$PUBLIC_TRUST_PEM"
Recompile legacy bundles from reviewed sources to migrate. Restart each client with its scope and independently provisioned trust key. The signed server withholds new and changed files until the next signed revision.
Scope stacks
One server can mount an ordered stack of scopes, each with its own trust key. A spec is name[:rw|ro][,auto|fallback|explicit]; a bare name means rw,auto, so --scope private works as before. Repeat --scope or separate specs with commas:
python3 -m coldmemory.mcp_server --store "$STORE" --scope coldvoice:rw,auto --scope orch:ro,auto \
--scope personal:ro,explicit --trust-key "coldvoice=$CV_PEM" --trust-key "orch=$ORCH_PEM" --trust-key "personal=$P_PEM"
autoscopes are searched by default, earlier scopes first on close matches, and feed the L0 brief (earlier scopes get the larger share).fallbackscopes are searched only when everyautoscope finds nothing, and never feed the brief.explicitscopes are searched only when the caller passesscope="<name>", and never feed the brief. A scope that is not mounted is refused.roscopes refusememory_record_note. A locked decision in anro(shared) scope beats a locked one in anrwscope.- When two scopes hold the same decision key, the earlier scope's decision is in force, unless one is
decide --locked: a locked decision always wins, is listed first, and is shown in the brief. Later versions of a key keep its lock;forgetthe key to drop it. - With more than one scope,
memory_askandmemory_locatetake ascopeargument, aNO_MATCHnames the scopes it searched and those it did not, andmemory_statusprints the stack.
Use your own notes
Keep the store outside every source folder and off shared drives. It must be a local folder you own with mode 0700; on a shared mount owned by another user, compile refuses it. A repo: source must be a git checkout; plain paths default to obsidian: in coldmemory init.
coldmemory init /path/to/vault notion:/path/to/export repo:/path/to/repo --id work
To print one client's raw MCP config without editing settings, run python3 -m coldmemory.hooks_snippet <client> --local-unsigned --tools memory_ask --store "${XDG_DATA_HOME:-$HOME/.local/share}/coldmemory".
Claude Code and Codex sessions
Use a separate bundle --id (such as sessions) so compiling transcripts does not replace your work bundle, or pass both --source flags together:
python3 -m coldmemory sessions
python3 -m coldmemory compile --store "${XDG_DATA_HOME:-$HOME/.local/share}/coldmemory" --id sessions \
--source "obsidian:${XDG_DATA_HOME:-$HOME/.local/share}/coldmemory-sessions"
sessions copies the user and assistant text from ~/.claude/projects and ~/.codex/sessions into Markdown notes in ${XDG_DATA_HOME:-~/.local/share}/coldmemory-sessions (change with --out, or pass other folders). Tool output, injected context and secrets are left out. It keeps how far it has read in each file, so later runs read only new lines, even when a sync tool replaces the file with a longer copy. A file is rebuilt when it shrinks or when the first or last 4 KiB it already read have changed; an edit only in the middle of an old transcript, or one that keeps both its size and modification time, is not noticed. It reads one line at a time, so memory stays flat however many gigabytes of transcripts you have. Only one run writes to an output folder at a time. Each note part stays under 512 KiB so compile can read it. New folders and notes are private to you (0700/0600); folders and notes that already exist keep their permissions.
| Client | Name to use | Where the output goes | Checked so far |
|---|---|---|---|
| Claude Code | claude-code |
Run the printed command | Matches claude mcp add-json --help; same server settings tried live through --mcp-config |
| T3 Code | t3-code |
Pass the JSON to t3_mcp_server_update |
Matches the tool's schema |
| Codex | codex |
~/.codex/config.toml |
Valid TOML; same server settings tried live through -c overrides |
| Cursor | cursor |
~/.cursor/mcp.json |
Valid JSON; location unconfirmed |
| Antigravity | antigravity |
Its MCP config, under mcpServers |
Valid JSON; location unconfirmed |
| OpenBot | openbot |
Desktop app: Settings → MCP servers → Connect to a custom MCP; copy each printed field into the matching box | Same server settings tried live in OpenBot 0.84.0 with a Claude agent |
| Grok CLI | grok |
~/.grok/config.toml (or ./.grok/config.toml) |
Valid TOML; same server settings tried live in Grok CLI 1.0.100; grok mcp list (1.0.104) reads the init output |
Tests start the server with the settings from all seven snippets. T3 Code, Cursor and Antigravity have not been tried inside their clients.
Share one vault between Claude Code and Codex
Point both clients at the same store. In a local unsigned store (--local-unsigned), a note one agent writes is returned by the other agent's next memory_ask call with its file:line. Once a note is edited, superseded or deleted, memory_ask stops returning the old text for both. A server started with COLDMEMORY_WALK_SECONDS rescans the sources at most that often, so it may find a new file only at its next scan. The demo starts a fresh server for every step. A signed store holds new and changed notes back until you compile the next signed revision.
To watch it happen without changing either client's settings, run:
tools/cross_tool_demo.sh "$(mktemp -d)"
The script runs Claude Code (claude -p) and Codex (codex exec) headless and passes the server settings as one-off flags. It makes model calls on both accounts. It runs six steps:
- Claude Code writes a note.
- Codex quotes it.
- Codex writes a note that supersedes it.
- Claude Code quotes only the new note.
- Claude Code deletes both notes.
- Codex finds no match.
It checks that each memory_ask call asked the same Kestrel question, checks the notes on disk after the supersede and delete steps, checks that Claude Code ran only the one rm command, and prints PASS. Tried on 2026-12-04 with Claude Code 2.1.332 and Codex CLI 0.172.0.
Session brief for Claude Code
coldmemory brief prints at most 250 tokens: a header, then the newest rule and decision lines, each as file:line "quote". It reads the files from disk every time it runs, so a deleted, edited, superseded or revoked note drops out of the next brief. In a signed store, a new or edited note, including a new note that supersedes an older one, enters the brief only once a new signed revision is compiled. A --local-unsigned store is your own single scope and needs no setup. For a signed store it checks --scope against COLD_ALLOWED_SCOPES (default public) before it opens any store, and prints nothing when the scope is denied or the trust key fails.
python3 -m coldmemory.hooks_snippet claude-code --hooks --store "$STORE" --scope public --trust-key "public=$PUBLIC_TRUST_PEM"
Merge the printed hooks into .claude/settings.json. SessionStart (startup, resume, clear and compact) gives the brief to the model, and PostCompact shows it to you after compaction. For a signed store the hook does not set COLD_ALLOWED_SCOPES: it inherits the allowlist from the environment that starts Claude Code, so a signed private hook prints nothing unless that environment allows private.
Decision ledger and push (NOW)
Two layers, both on by default. The full archive (notes, repos, session transcripts and every owner message) answers any question with file:line quotes. The decision ledger answers "what is in force now". Each scope except public has its own, in <store>/_ledger/<scope>/, with one file per decision key (<key>.md) holding the owner's words with secrets redacted, whitespace collapsed to one line and anything past 1,500 characters cut. Writing the same key again moves the old file to history/ with superseded_by: and links the new one with supersedes:, so a replaced rule is never served as current. rm _ledger/<scope>/<key>.md forgets it.
python3 -m coldmemory decide --store "$STORE" model-routing "New builders use Opus 5.5; Sol and Astra review."
python3 -m coldmemory decide --store "$STORE" memory-store "Keep memory in SQLite files on disk." \
--why-not "Redis (extra daemon)" --why-not "Mem0 (LLM ingest tax)"
python3 -m coldmemory decisions --store "$STORE"
python3 -m coldmemory.hooks_snippet claude-code --push --local-unsigned --store "$STORE"
decide, decisions and forget take --scope (default private). Merge the printed hooks into .claude/settings.json (or the Codex hooks file) instead of --hooks, not alongside it. Like brief, a --local-unsigned store needs no setup, and for a signed store the hook does nothing unless its scope is listed in COLD_ALLOWED_SCOPES in the client's environment. The ledger is your own local data and is not signed; a trust key covers only the archive quotes. The hooks work as follows:
- Session start and after every compaction.
SessionStartsends NOW: the decisions in force, newest first, capped at an estimated 550 tokens including a count of what did not fit. A compaction starts a newcompact_epoch, resets the seen set, and sends NOW again: at once onSessionStartwith sourcecompact, or on the next prompt afterPostCompact. Both events with no prompt between them count as one compaction. NOW comes with aRETRACTEDline for every decision this session saw that has since been deleted. A retraction that does not fit is sent on a later turn. - Every prompt.
UserPromptSubmitsends an estimated 350 tokens at most: changed decisions, retractions, and up to five newfile:linequotes for the prompt from the ledger and the archive. A quote longer than 400 characters is cut, and itsfile:lineholds the rest. After it has recorded the prompt, the hook gives up after 100 ms and prints nothing rather than slow the turn. Token counts are estimates (the larger of words plus punctuation and characters / 3), not a client's tokenizer. - Capture. The same hook first appends each owner prompt, secrets redacted, to
_ledger/<scope>/turns.jsonl, so the query tool finds it at once. The same prompt from the same session within two minutes is stored and applied once, and a turn older than the decision in force never replaces it. Lines startingremember:,rule:ordecided: <key>: <words>become decisions, and awhy not:orrejected:line under one is kept as an option the owner ruled out (decide --why-not, repeatable). Ruled-out options (up to 8, 300 characters each) are written one per line in the decision file.memory_askcites each byfile:line, and NOW lists them after the decision with thefile:lineof the first. A new version of a decision carries only its own. A short "yes, do it" keeps the end of the proposal it answered. A message relayed from another agent is not captured. - Before a compaction (opt-in).
--push --pre-compactadds aPreCompacthook. It reads the last 256 KiB of the transcript, writes every recent owner turn holding a marked line to the ledger at that turn's own time (no model calls; a turn already kept is not applied again), and shows the user a one-linesystemMessagecounting the decisions and ruled-out options on disk. A turn this session already kept inturns.jsonlis never applied again, so a decision forgotten since stays forgotten. Without the flag the printed hooks are unchanged. - Clients without a hook. For these,
python3 -m coldmemory.ledger tail --store "$STORE" --every 5copies new owner lines from Claude Code and Codex transcripts, oldest first, keeping the assistant text before a confirmation. - Query tool.
memory_asklists the decisions in force that match the question first, including those matched only by the words of a version they replaced. Then come matching owner messages, then the archive answer. An archive excerpt that shares words with a matched decision is labelledarchiveinstead ofcurrent. A server for thepublicscope never reads a ledger. The query tool still needs a compiled archive bundle; a store with only a ledger answers throughdecisionsand the hook, notmemory_ask. - Hermes.
pip install coldmemoryinto Hermes's Python environment registers a native Hermes memory provider through thehermes_agent.memory_providersentry point; Runcoldmemory initfirst;hermes memory setupthen asks for that store folder and a scope. Archive quotes and thecoldmemory_asktool also needCOLDMEMORY_LOCAL_UNSIGNED=1in Hermes's.envfor a local unsigned store such as the onecoldmemory initmakes, orCOLDMEMORY_TRUST_KEY(a public key file) for a signed store; without either, Hermes gets only the decisions. integrations/hermes/coldmemory is the same provider for a plugin-folder install. It sends NOW in the system prompt, which Hermes rebuilds after compression, and the per-turn delta and quotes throughprefetch.on_pre_compressasks the summarizer not to restate decisions. For a plugin-folder install, never put$HERMES_HOME/pluginsonPYTHONPATHahead of thecoldmemorypackage (if$HERMES_HOME/pluginsis onPYTHONPATH, keep the ColdMemory package root ahead of it so the plugin folder never shadowscoldmemory).
MCP tools
| Tool | What it does |
|---|---|
memory_ask(query, cartridge="auto", max_words=180) |
Returns a short brief with exact sources |
memory_locate(topic, top_k=5) |
Returns paths and line numbers only |
memory_list_cartridges() |
Lists the bundles this server can read |
memory_status() |
Shows files added, changed or deleted since compile |
memory_record_note(title, decision, source_paths) |
Saves a note to a private queue for your approval |
Pass --tools memory_ask (a comma-separated list) to serve only some tools. The tools/list schema for all five tools is 669 tokens and for memory_ask alone 234 (o200k_base); clients that load tools eagerly send it with their requests. skills/coldmemory/SKILL.md lets a coding agent install ColdMemory for its user.
coldmemory mcp takes the same arguments as python3 -m coldmemory.mcp_server. The server uses stdio, so it opens no port. It connects to nothing unless you choose --backend llama-server, which accepts only http://127.0.0.1:PORT.
Optional CPU hybrid retrieval
Search is pure Python by default and needs no extra packages. To add a local dense index, install the optional extra (pip install ".[hybrid]" for numpy, onnxruntime and tokenizers), download an ONNX embedding model with its tokenizer.json, and set these variables in the server environment:
| Variable | Effect |
|---|---|
COLDMEMORY_HYBRID_MODEL=/path/to/model |
Stage 1: fuse dense and BM25 ranks |
COLDMEMORY_RERANK_MODEL=/path/to/model |
Stage 2: rerank the stage 1 passages (needs stage 1) |
COLDMEMORY_VECTOR_CACHE=/path/to/dir |
Keep vectors (no note text) in owner-only files |
COLDMEMORY_HYBRID=off |
Turn the dense index off even when a model is set |
It runs on the CPU only. If the packages are missing, search falls back to pure Python. The dense index embeds every section, so check memory use on a large vault before you turn it on.
Limits to know about:
- Stage 2 reranks one passage per note, so it runs only when search returns one section per note.
- A dense match is cited by its section. In a long section, the quote comes from the lines that best match the question's words, which may not be the window that matched.
- On a linked-note answer, an explicit
top_kcan shorten the list of linked notes but never lengthen it.
How an answer is checked
- Every question searches the files as they are now. Cited files are read again before the answer is returned.
- Verified Sources are exact quotes with a path and line numbers. Out-of-date notes are replaced by the notes that supersede them.
- With a model backend, recall runs even when the question shares no words with your notes. The files it names are suggestions: only indexed files are used, each is read from disk, and it is labelled
proposed by recall. - Synthesized Context is the model's wording, kept separate from the sources. It is withheld if any of these is true:
- The disk match is weak.
- It cites nothing, or a cited file is missing, changed since compile or out of date without its replacement.
- It contains a quotation or number that isn't in its cited files or related note titles.
- Secrets are removed on the way in and again on the way out.
Limitations
Answers
- These checks don't prove that the model's wording is right. A real number can still be attached to the wrong thing.
- "Weak match" means the quoted lines are real but may not answer the question. Expect it on some questions that do have an answer.
- Contradictions marked in a note (
superseded_by:,supersedes:, "Replaced by", a stalestatus:) are always followed. - Unmarked contradictions are caught only between strong matches whose titles share at least half their words, whose differing title words aren't in the question, and whose quoted lines name different numbers, number words or names. The note with the later date (
effective,decided,date,created,updatedor Notion's "Last edited time" property, else a year in the title) wins. Without two different dates, a note whose quote says the rule changed ("now", "changed", "no longer", "instead") wins. The older note's quote is left out and named as possibly out of date. If neither rule decides, both are quoted and flagged as a possible conflict. A later edit date is a heuristic, not proof of authority. cartridge="auto"picks the bundle with the best word match and tries the next only after "no match". Name the bundle if you know it.memory_locatedoesn't use recall.
Privacy
- If your agent runs in the cloud, its provider receives the returned brief, including its quotes and paths.
- Redaction uses patterns. It can miss secrets written as ordinary words and unlabelled hex strings.
--scopelimits what one server process can read. It doesn't protect against other programs running as the same OS user. Use separate OS accounts for a real boundary.- Deleting a note removes it from live answers, but not from trained weights or kept revisions. Compile a clean bundle, then remove the old revisions.
- Folders are
0700and files are0600on Linux. Windows doesn't enforce those modes.
Serve a cartridge you already have
Copy the revision's
obsidian.coldfolder to the server machine. Keep<revision>/obsidian.cold/adapter.ggufat the end of its path, because ColdMemory uses that to identify the revision.Start llama-server with that adapter:
llama-server -m <base.gguf> -ngl 99 --host 127.0.0.1 --port 8090 --cache-ram 0 --lora-init-without-apply --lora <path>/<revision>/obsidian.cold/adapter.ggufIf the server is on another machine, open a tunnel:
ssh -N -L 127.0.0.1:8090:127.0.0.1:8090 <YOUR_GPU_HOST>.On sealed questions, compare three setups with the same brief length: the cartridge, the same model with the adapter off, and tuned hybrid search. The adapter-off and hybrid setups aren't built yet. Use copies of the store to keep the test away from your live bundle.
If the cartridge wins, make it live, then add
--backend llama-server --url http://127.0.0.1:8090to the client's server arguments:python3 -m coldmemory activate --store ~/.local/share/coldmemory --id obsidian --revision <revision>
Run activate without --revision to go back to the previous live revision.
Nightly updates
Run compile each night from your own scheduler. ColdMemory doesn't install a schedule.
- Live answers use edited files straight away, before the next compile.
- If the live revision is disk only, a new compile replaces it in one step.
- If the live revision has weights, the new one waits for
activate. The text and weights always switch together.
Notes saved by agents go into the bundle only after you approve them, and only while their sources stay unchanged. They are never Verified Sources, and disk search doesn't search them.
python3 -m coldmemory queue --store ~/.local/share/coldmemory --id work
python3 -m coldmemory approve --store ~/.local/share/coldmemory --id work <entry>
Files and compatibility
<store>/_ledger/<scope>/ Keyed Decision Ledger notes (live authoritative rules + --why-not)
<store>/.coldmemory-index/idx-*.{sqlite,bin} SQLite metadata/trigrams + mmap binary postings (COLDMEMORY_INDEX_CACHE)
<store>/<id>/current.json live and previous revisions
<store>/<id>/queue.jsonl notes waiting for approval
<store>/<id>/<revision>/memory.json base model, source hashes, build time, scope and file hashes
<store>/<id>/<revision>/graph.json links, backlinks and compile-time file hashes
<store>/<id>/<revision>/{train,val}.jsonl redacted question rows
<store>/<id>/<revision>/SHA256SUMS
<store>/<id>/<revision>/<id>.cold/ signed five-file v2 cartridge, only when one is attached
Private cartridges say "kind": "memory" and "license": {"adapter": "private-local", "commercial_safe": false}, and LICENSE.txt says not to share them. The v2 format doesn't know either value yet, so a v2 host refuses a private cartridge. A cartridge built with an open --license uses expert and passes the v2 check.
Test and benchmark
Run these from a source checkout (the test suite and coldmemory.benchmark read tests/fixtures/):
PYTHONDONTWRITEBYTECODE=1 python3 -m pytest -q -rs -p no:cacheprovider tests
PYTHONDONTWRITEBYTECODE=1 python3 -m coldmemory.benchmark
PYTHONDONTWRITEBYTECODE=1 python3 -m coldmemory.bench_v1 [--out <DIR>]
sha256sum -c SHA256SUMS
- The tests need
pytest. To run the optional v2 spec compatibility check, setCOLDMEMORY_V2_SPEC=<V2_SPEC_PATH>(requirescryptography).-rsshows a skipped check. - The benchmark measures which evidence reaches the agent. It doesn't grade LLM answers. Mock recall replays training rows, so it says nothing about how well trained weights work.
- All notes, repos and planted secrets in the tests are synthetic.
coldmemory.bench_v1generates a 291-file synthetic company (about 44,700 tokens across two Obsidian vaults, a Notion export and two git repos) from a fixed seed. It scores Full context, naive BM25 RAG, a tuned hybrid and ColdMemory on 100 questions in four families (paraphrase multi-hop, marked and unmarked supersession, disk grounding after edits, and 20 planted canary secrets with 20 permitted controls), plus token cost measured across all 100.--outalso writes the corpus, questions, results andSHA256SUMS. Results: docs/bench-v1.md. Answers quote absolute paths and the brief limit counts them, so the bench builds its corpus under/tmpwhen it is writable, ignoringTMPDIR. A fixed short prefix keeps the committed report reproducible on hosts with writable/tmp. Other temporary directory paths can change which evidence fits.- When a long path would push evidence past the brief limit, citations become relative to a
Paths are relative to <dir>line at the top of the answer. - The disk backend scores 20/20 on paraphrase multi-hop. When a question names one note by its title, alias or metadata and that note only links to the facts, it follows wikilinks, backlinks and shared aliases, tags and entities for up to two hops, then quotes the best-matching live lines.
- When the matching line sits deep inside a long block, such as one key in a YAML map, the quote starts at that line instead of at the top of the block.
- Direct search checks strong matches for unmarked contradictions. For linked notes, the disk backend checks pairs whose shorter title contains only terms found in the longer title. On Bench v1, 1 of 4 ties and 1 of 4 wording-based changes go unflagged.
Verify a checkout
python -m coldmemory --help
python -m pip install --no-compile -r requirements-test.txt
python -m pytest -q