Stormbuffer is a local-first memory store for sourced facts, decisions, procedures, and project checkpoints, keeping memories as human-readable Markdown.
To install Stormbuffer, clone the repo and build with cargo, then initialize the store and download the embedding model:
cargo install --path crates/cli --locked
sbuf initTo add and retrieve memories:
sbuf add --title "Release constraint" --kind fact
sbuf list
sbuf search release
sbuf context release --budget 400sbuf add opens an editor for the record body and source.
Use a project store when you feel that knowledge belongs to one repository:
cd path/to/project
sbuf --project init
sbuf --project add --title "Test command" --kind procedure
sbuf --project search test--project combines the nearest project store with applicable global memory.
Use --local for strict nearest-store retrieval that never opens the global
store. Project identity is stored in .sbuf/store.toml, so renaming the
repository does not change its memory scope.
Agents can use the versioned JSON protocol without prompts or formatted output:
printf '%s\n' \
'{"version":1,"query":"release process","budget":400}' \
| sbuf --project invoke contextStormbuffer is not released yet. The commands below install from the current source checkout.
Install the project-memory skill in an agent's project skill directory:
sbuf --project skill install --directory .agents/skillsOmit --project to install the global-memory variant. See the
agent skill guide for
scope and installation-directory choices.
Build the MCP server, then register its read-only project view with Codex:
cargo install --path crates/mcp --locked
codex mcp add stormbuffer -- stormbuffer-mcp --stdio --projectOther hosts can start the same stdio command. The MCP guide covers Pi, global and local scopes, write access, resources, and tools.
Prepare the workspace before installing either local plugin:
corepack enable
pnpm install --frozen-lockfileInstall the Codex plugin from the repository root:
codex plugin marketplace add "$PWD"
codex plugin add stormbuffer@stormbuffer-sourceInstall the Pi plugin from the same checkout:
pi install "$PWD/packages/pi-plugin-stormbuffer"Keep the checkout in place after installation. See the detailed Codex and Pi plugin guides for scope selection, verification, updates, and removal.
See the installation guide or quick start, and source build guide for complete setup instructions.
The CLI, JSON protocol, and MCP server call the stormbuffer-core crate, which owns
validation, storage, indexing, and retrieval.
Stormbuffer keeps Markdown with TOML frontmatter as canonical records, while SQLite metadata, & full-text search, and vector indexes are disposable projections that the engine can rebuild.
sequenceDiagram
participant H as Agent host
participant S as Stormbuffer
participant M as Memory store
H->>S: Recall
S->>M: Search
M-->>S: Relevant records
S-->>H: Sourced context
H->>S: Remember
S->>M: Propose candidate
To learn more, read about the memory loop, where we explain what belongs in Stormbuffer and what should remain temporary agent context. Architecture covers storage and retrieval design in more detail.