Knowledge, kept kempt.
neurokeeper checks a Markdown notes vault and an agent’s memory: broken links, drifting tags, frontmatter that no longer fits its schema, and gates that quietly stopped running. Every engine runs offline, gives the same answer for the same input, and never edits a note unless you ask it to.
What it catches
| You notice | Engine |
|---|---|
| Links that point at notes which were renamed or never existed | ref-audit |
| Notes nothing links to, and notes that link nowhere | ref-audit |
#project, #projects and #Project all in use | tag-reconcile |
| Frontmatter with values your schema does not allow, or fields it has never heard of | frontmatter-lint |
| A note you just wrote that existing notes should already link to | semantic-gaps |
| An email or ticket that the vault already has a note about | correlate |
| An agent memory index that grew past what the agent actually loads | memory-consolidate |
| A pre-commit hook that looks installed but can never run | hooks-audit |
| A gate or pattern that reports “clean” because it no longer fires at all | gate-liveness, pattern-liveness |
| A skill that tells an agent to use a script that is not there | skill-refs-lint |
neurokeeper doctor runs every engine that applies and reports one of three results: ok, fail or
skipped. Skipped is never shown as passed. The full list is in the engine reference.
Try it
- Install it (Python 3.9 or newer):
pipx install neurokeeper, or run it once withuvx neurokeeper --list. - Look before anything is written:
neurokeeper init --collection /path/to/notes --dry-runreports how many notes it can see, because a wrong root would otherwise report clean forever. - Write the config (never your notes) and check:
neurokeeper init --collection /path/to/notes, thenneurokeeper doctor.
Inheriting a messy vault? neurokeeper ref-audit --write-baseline accepts today’s findings once; later
runs show only what changed. The getting-started tutorial walks through all of it.
Where to go next
| You want to | Go to |
|---|---|
| Learn by doing: install it and run a first engine | Tutorials |
| Get one job done, such as gating a vault in CI or adding your own engine | How-to guides |
| Look something up: engines, contracts, environment variables | Reference |
| Understand why it is shaped the way it is | Explanation |
The sections follow Diataxis: each page does one of those four jobs.
Why it is built this way
The one idea
A capability is not a plugin feature. It is a portable core (an engine, a prompt and a contract) that a thin, swappable adapter binds to a runtime. The core is the reusable part; the adapter is glue.
The logic lives in deterministic engines (each with a --json contract) and harness-neutral
prompt templates. The Claude Code plugin is one adapter; the plain command line and CI are others. So
one codebase serves all three, nothing is locked to a single agent runtime, and the same engine can run
beside a self-hosted model to save tokens.
portable core (this repo) adapters (bind the core to a runtime)
scripts/<engine>.py deterministic, --json plugin + skills -> Claude Code
prompts/<engine>.md harness-neutral judgment mcp server -> any MCP client
(contract = the engine's --json / CLI) run directly -> CLI / CI / any LLM
Each engine carries a metadata header (@capability, @effect, @portability, …). A generator builds
the capability registry from those headers, so the catalogue cannot drift away from the
code. The explanation covers the model and the doctrine behind it.