Skip to content

Getting started

This tour walks the main surfaces once. Each step links to a detailed guide.

Terminal window
git clone https://github.com/sanudatta11/statefulmemory && cd statefulmemory
make prereqs && make install
export PATH="$HOME/.local/bin:$PATH"
statefulmemory --version

Full notes: Install. Deployment modes (self-host vs StatefulMemory Cloud): Self-hosting and Cloud.

2. Wire your agent (and optional git hooks)

Section titled “2. Wire your agent (and optional git hooks)”
Terminal window
statefulmemory install # MCP + skills; verify hooks if cwd is a repo
statefulmemory install --no-git-hooks # skip hooks

Details: Wire into your agent.

Terminal window
statefulmemory obs save \
--type decision \
--title "use pgx not GORM" \
--content "Team prefers raw SQL via pgx" \
--session "$(uuidgen)"

Guide: Observations.

Terminal window
statefulmemory obs search "pgx"
statefulmemory obs context --query "deploy" --limit 20
statefulmemory obs context --query "deploy" --max-tokens 500

Guide: Search and context.

Terminal window
statefulmemory obs save \
--type decision \
--title "login uses JWT" \
--content "Accept only HS256 in production" \
--anchor src/auth.rs::login \
--session "$(uuidgen)"
statefulmemory verify

Guide: Anchors and verify.

Terminal window
statefulmemory decide "Should we keep SQLite or move to Postgres?"

Needs an agent CLI (STATEFULMEMORY_LLM_*). Guide: Decide.

Terminal window
statefulmemory mem export --out backup.mem

Guide: Mem archives.

Data lives under ~/.statefulmemory/. The daemon auto-starts on first use.