Stack
Written before the first commit. Each line is a decision the rest of the repo builds on, and each budget that must keep holding is a test.
- Runs on: the command line (Node) on every computer whose AI memory gets shared, plus one long-running server process on one of them.
- The user already has: Node, for most people who use AI coding hosts. The embedding model (Ollama) and the secret scanner (gitleaks) are companions: setup prints each vendor's own install command and never installs them.
- Install path:
npx shared-agent-memoryfor setup; the same package runscollectfrom the system scheduler (launchd, systemd or cron) andservefor the server. - Budgets: 1 runtime dependency (
sqlite-vec, which ships a prebuilt extension per platform); 1 install command and 1 confirm; packed tarball at most 300 KB; installed dependencies at most 2 MB;--helpcold start at most 300 ms on the CI Ubuntu runner; acollectrun over 1,000 unchanged files in under 2 s; server idle memory at most 150 MB, not counting the embedding model; uninstall leaves 0 files it wrote. - Pick: JavaScript ESM, type-checked by
tsc --noEmit --checkJs, with TypeScript as the only devDependency. No build step, so the published files are the reviewed files. Storage is Node's built-innode:sqlitewith thesqlite-vecextension: on 2026-12-03 Node 22.23.4 loaded sqlite-vec 0.1.9 withallowExtensionand answered a nearest-neighbour query, and the dependency installed at 192 KB.engines.node >=22; CI runs Node 22, 24 and 26 and repeats that extension check on each. - Budget tests:
test/budgets.test.mjschecks the dependency count, the packed size fromnpm pack --dry-run --json, the installed dependency size, the--helptiming and the unchanged-run timing;test/sqlite-vec.test.mjsrepeats the extension check;test/uninstall.test.mjschecks that uninstall leaves nothing it wrote.