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 noticeEngine
Links that point at notes which were renamed or never existedref-audit
Notes nothing links to, and notes that link nowhereref-audit
#project, #projects and #Project all in usetag-reconcile
Frontmatter with values your schema does not allow, or fields it has never heard offrontmatter-lint
A note you just wrote that existing notes should already link tosemantic-gaps
An email or ticket that the vault already has a note aboutcorrelate
An agent memory index that grew past what the agent actually loadsmemory-consolidate
A pre-commit hook that looks installed but can never runhooks-audit
A gate or pattern that reports “clean” because it no longer fires at allgate-liveness, pattern-liveness
A skill that tells an agent to use a script that is not thereskill-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

  1. Install it (Python 3.9 or newer): pipx install neurokeeper, or run it once with uvx neurokeeper --list.
  2. Look before anything is written: neurokeeper init --collection /path/to/notes --dry-run reports how many notes it can see, because a wrong root would otherwise report clean forever.
  3. Write the config (never your notes) and check: neurokeeper init --collection /path/to/notes, then neurokeeper 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 toGo to
Learn by doing: install it and run a first engineTutorials
Get one job done, such as gating a vault in CI or adding your own engineHow-to guides
Look something up: engines, contracts, environment variablesReference
Understand why it is shaped the way it isExplanation

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.