v0.1.0 · MIT
Memory Vault CLI
Like Obsidian CLI, but without Obsidian.
mem searches your Markdown notes, follows links between them, and tells you which file and line to read. The files are the record. There’s no index, database, or service to run.
Go CLI · tested on Linux x86-64
mem search --vault ./demo-vault -e 'release checklist'
2 example matches
decisions/deploy.md:6Run the release checklist before merging.notes/release.md:2The release checklist also covers the changelog.
Browser demo with made-up Markdown notes. Searches stay on this page.
01 · search
Find the line you remember
If you remember the words, use search. It looks for literal phrases in Markdown, ignoring case. Each JSON hit gives you the note path, line number, and original text. Pass more than one -e to try several phrasings in the same scan.
mem search --vault ./demo-vault -e "release checklist"
# hits include decisions/deploy.md:6 and notes/release.md:2The default engine runs ripgrep in the vault. To run the scan in Go without ripgrep, pass --engine native. The browser demo above searches only its small built-in fixture.
Find or pick a note by name
If you remember part of a filename, use find. It ranks note paths with fzf and returns JSON that a script can read. Use pick at a terminal to choose one interactively and print its path.
mem find --vault ./demo-vault --query "dpl"
mem pick --vault ./demo-vault --query "deploy"02 · graph
See which notes link here
graph resolves wiki links such as [[decisions/deploy.md]] and relative Markdown links such as [deploy decision](../decisions/deploy.md). Ask for backlinks and the JSON shows where each link was written, down to the line and column.
mem graph --vault ./demo-vault --note decisions/deploy.md --direction backlinks
# One resolved backlink: guides/on-call.md:6If a short wiki link like [[Deploy]] fits several notes, graph lists its candidate paths. When you ask about a particular note, possible matches are returned separately under ambiguous_backlinks.
03 · query
Ask for notes with a property
Put a property like status: current in a note’s YAML frontmatter, then filter by exact value. --select returns the keys you need. --sort orders by the property’s text, with missing values last.
mem query --vault ./demo-vault --where status=current --select status --sort status
# decisions/deploy.md has status: currentQueries handle text and lists of scalars. Unsupported values, such as nested mappings, are reported through skipped when requested. This is a JSON query over Markdown frontmatter. Obsidian Bases files, views and formulas are outside its scope.
04 · move
Review link edits before a move
Run mv to see the move plan, including which links would change. The first run writes nothing. For example, renaming this note would update the wiki link in the on-call guide and the relative Markdown link in the recovery guide.
mem mv --vault ./demo-vault --from decisions/deploy.md --to decisions/shipping.md
# Review edits, refusals and the input_digest.Applying a plan requires --apply, the reviewed digest with --expect, and a new recovery directory outside the vault. Close editors and pause sync before applying. The move writes several files and should have exclusive access to the vault.
05 · scope
Scope
mem works directly on regular Markdown files. The core commands return JSON, and the Markdown stays the source of truth. You can use it from a shell or give the JSON to an agent.
The commands are specific to mem. The project is independent of Obsidian and Hermes. The graph follows supported local wiki and inline Markdown links and ignores external URLs. See the format limits before moving notes.
- Release
- v0.1.0 on GitHub, MIT. Download the source and build locally.
- Platforms
- Tested on Linux x86-64. macOS is untested and Windows is unsupported.
06 · setup
Run it yourself
You need Go 1.26 or later to build, rg for default search and fzf for find and pick. Try it on the made-up notes the repository ships in testdata/vault before pointing it at your own.
Ask your agent
Set up mem v0.1.0, the Memory Vault CLI, for me. Source of truth: https://github.com/dmmeteo/mem-cli/blob/v0.1.0/README.md Read the README first and follow its documented install and quickstart. Build from the pinned v0.1.0 source if go install fails. Check that Go 1.26+, rg and fzf are available; ask before installing anything. Run the quickstart on the repository's testdata/vault only. Don't point it at my real notes until I say so, and never run mv --apply without showing me the plan first. Never ask for tokens or secrets in chat. Report what worked and what did not.
Install manually
Build from the pinned source:
git clone --branch v0.1.0 https://github.com/dmmeteo/mem-cli
cd mem-cli
go build -o mem ./cmd/memOr, when the Go module proxy has it:
go install github.com/dmmeteo/mem-cli/cmd/mem@v0.1.0Then run a search on the bundled sample notes from the repository root:
./mem search --vault testdata/vault -e risks -e "pilot finished" --compact