Workspace local
The default store lives at `.metabrain/store.leveldb`, so tools can discover it without setup ceremony.
Open source. Local first. Agent ready.
Local document memory for AI tools, coding agents, and the humans who work with them.
Give every agent one durable, searchable place for notes, source snippets, task context, metadata, tags, links, and version history.
Start small
metaBrain ships as the `mb` CLI, the optional `mbd` local daemon, and the embeddable `MetaBrainCore` Swift library.
brew tap OpenCow42/tap && brew install mb
Made for AI and agents alike
Agents do not need a private file convention for every task. metaBrain gives them a stable local store with predictable paths, searchable content, tags, metadata, references, and retained versions.
01
Store summaries, decisions, and task state where the next agent can find them.
mb put /tasks/release-checklist \
"Prepare first public release." \
--tag release --meta status=active
02
Retrieve context by words, paths, tags, or metadata instead of hunting through scratch files.
mb search "public release" --tag release
03
Apply focused unified diffs to stored documents and keep the old versions available.
mb patch /tasks/release-checklist --patch-file change.diff
Why try it
metaBrain keeps the interface plain enough for shell scripts and rich enough for long-running agent workflows.
The default store lives at `.metabrain/store.leveldb`, so tools can discover it without setup ceremony.
Current document chunks are indexed for lexical search with tag, metadata, and path filters.
Documents carry metadata, tags, references, retained versions, and filesystem-like paths.
Updates keep snapshots, and `patch` can apply unified diffs to stored document bodies.
`mbd` can serve multiple local metaBrain databases through one daemon, so agents can work with separate stores concurrently.
`MetaBrainCore` keeps shared behavior in a Swift library for future tools and interfaces.
Five-command tour
Create a store, write a note, browse the tree, search it, and read the body back. That is enough to feel the shape of the tool.
mb init
mb put /notes/today "Remember the lexical store." --tag planning --meta source=agent
mb list /notes --recursive --dates
mb tree --max-depth 2
mb search "lexical store" --tag planning
mb get /notes/today
Open source
The project is BSD 3-Clause licensed, hosted on GitHub, and currently supports macOS, Linux, and Windows.