Browse the source · v0.5.4
Read every line before you run it.
This is exactly what git clone gives you: 42 files and 12,318 lines
(not counting Cargo.lock). The default build downloads nothing but its Rust crates; only the
optional local-embeddings feature also fetches ONNX Runtime and a model. Start with the map below, or
press / to jump to any file or function.
- 11,267lines of Rust
- 17modules
- 94unit tests
- 42files
- Rust 11,267
- Markdown 962
- TOML 49
- Text 25
- Shell 15
How it fits together
One binary, a folder of markdown, an index you can delete.
The modules
17 modules of Rust, each with one job.
-
main.rs
Entry point: parses the command line, runs agent hooks, hands off to commands.
-
cli.rs
Every command and flag, declared with clap.
-
commands/
What each command does: find (search, get, list), write (record, update, ack), upkeep, projects, proposals.
-
store/
Entries on disk: format, kinds, config, folders, the secret scan, refs and staleness, git commits.
-
index.rs
SQLite search index: FTS5 keywords + section embeddings, fused by reciprocal rank.
-
ai.rs
OpenAI-compatible / Azure client: embeddings and chat, keyless Azure sign-in, safe destinations.
-
librarian.rs
Optional model that reviews stale entries against git diffs and widens --deep searches.
-
hooks.rs
Agent hooks: session start, every message, end of turn. Milliseconds, no model calls.
-
setup.rs
The five-step setup wizard: identity, providers, agent tools, projects.
-
report.rs
doctor, stats and digest: the human-facing reports.
-
ui.rs
Terminal styling: colours only on a TTY, wrapping, the shared listing pieces.
-
tests.rs
Unit tests, each in a throwaway mind.
usesaiclicommandshooksindexlibrarianlinksprivacyreportsetupstoreuiupgrade
-
lib.rs
Mega Mind: shared, searchable memory for AI coding agents.
-
links.rs
Links between entries: `related` (both directions, shown as backlinks), `supersedes` / `replaced_by` (a newer entry takes over), and `status: retired`.
usesstore
-
maintain.rs
`mind maintain`: the nightly upkeep, safe to run unattended.
-
privacy.rs
Masking before text leaves the machine.
usesstore
-
upgrade.rs
mind upgrade: fetch the source clone, show what's new, fast-forward, rebuild.
What's new
0.5.4 (2026-11-04)
mind search --brief: one line per result (match, kind, project, id, title), the same in a terminal and piped. Agents were cutting the full output withheadand missing the result that mattered most (in one case, a cross-project decision their task reversed, in fifth place).- The skill and the always-on rule say to scan with
--brief, read every result, never cut search output withhead, and tell the user when a task changes something an entry records. They also say to read entries withmind get, not--raw(editing only): agents reading the raw markdown missed whether its code changed, "may contradict" warnings and the related entries.
Start reading