mem is a deterministic, CLI-first memory sidecar for dev workflows.
It records interactions (commits, agent runs, decisions) as append-only JSONL events and maintains compacted artifacts (state.json + MEMORY.md) so humans and agents can recover context quickly and deterministically.
- A local, append-only event log
- Deterministic compaction into a small state summary
- A set of POSIX
/bin/shtools with machine-legible outputs
- Not a database
- Not a background daemon
- Not an AI service or RAG system
- Not a remote sync tool
- Clone with submodules:
git clone --recurse-submodules https://github.com/amcbstudio/mem.git
- Install hooks in a target repo:
/path/to/mem/hooks/install.sh
- Initialize and use:
mem init
mem add note k=v
mem sync
mem show
.amcb/memory/events.jsonlis append-only..amcb/memory/state.jsonand.amcb/memory/MEMORY.mdare derived and deterministic.- Schema drift is tracked in
.amcb/memory/schema.fields.jsonland.amcb/memory/drift.jsonl.
By default, mem writes to:
.amcb/memory/
events.jsonl
schema.fields.jsonl
drift.jsonl
state.json
MEMORY.md
tmp/
- POSIX
/bin/sh jqkv,jsonl, andjd(included as git submodules)
- No AI calls
- No network access at runtime
- No background daemons
- No remote sync