Knowledge, kept kempt.
Checks for 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. Deterministic, local, and
honest about what it did not check.
Try it · What it catches · Engines · CI gate · Docs · Contributing
An inherited vault never starts clean. neurokeeper reports what is wrong today, lets you accept that as a baseline, and from then on tells you only what changed. 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 |
| A missing optional library that turns a check into a silent empty result | env-doctor |
neurokeeper doctor runs every engine that applies and gives one report with an honest three-state
result: ok, fail, or skipped. Skipped is never shown as passed.
Try it
- Install the command-line tool (Python 3.9 or newer):
Or run it once without installing:pipx install neurokeeperuvx neurokeeper --list. To track a tag straight from GitHub:pipx install git+https://github.com/Wombat164/neurokeeper@v0.12.1. - Look before anything is written.
initreports how many notes it can see; a wrong root would otherwise report clean forever:neurokeeper init --collection /path/to/notes --dry-run - Write the config (never your notes) and run the full check:
neurokeeper init --collection /path/to/notes neurokeeper doctor
Inheriting a messy vault? Run neurokeeper ref-audit --write-baseline once; later runs show only new
findings, as in the terminal above.
Three ways to run it
The same engines back all three; there is one codebase and no fork.
Claude Code plugin (engines, skills and hooks):
/plugin marketplace add https://github.com/Wombat164/neurokeeper
/plugin install neurokeeper
Command line, anywhere Python runs: neurokeeper <engine> [args], for example
neurokeeper taxonomy-inventory --json; neurokeeper --list shows every engine.
CI gate, as a pre-commit hook or a GitHub Action:
# .pre-commit-config.yaml in your vault repository
repos:
- repo: https://github.com/Wombat164/neurokeeper
rev: v0.12.1
hooks: [{ id: neurokeeper-doctor }]
# a step in a GitHub workflow
- uses: Wombat164/neurokeeper@v0.12.1
with: { vault-path: ".", engine: "doctor", strict: "false" }
A run fails on broken .canvas or .base references and on engine errors; advisory and skipped engines
never fail it (ADR-0002). Guide and a worked example vault:
docs/ci-adapters.md, examples/vault/.
The engines
Everything is read-only and reports by default. Engines that change files do so only with --apply, refuse
while Obsidian has the vault open, and leave git as the audit trail.
Links and structure
ref-audit: broken links, orphans, dead ends, broken.canvasand.basereferences, orphan media, notes whose names collide.graph: the link graph as data, with relatedness derived from the links people actually wrote.semantic-gaps: which existing notes should link to the one you just wrote.correlate: does the vault already know about this mail, ticket or transcript? Scored, with the evidence shown.
Names, tags and frontmatter
taxonomy-inventory: what names, tags and frontmatter values are in use.tag-reconcile: tag families that should be one tag (you apply the merge, for example with Tag Wrangler).frontmatter-lintandfrontmatter-fix: check notes against your schema; apply reviewed fixes.set-note-type: add anote_typederived from the folder.name-reconcile: kebab-case file names with every link updated.register-lint: identifiers used in the wrong category, as an alias, or unknown to your register.
Agent memory
memory-consolidate: health of a file-based memory store: a score, orphans, broken links, the index size the agent really loads, and--verify-linksto prove a compaction lost nothing.
Checks that check themselves
doctor: runs everything applicable; one report, one honest roll-up.selftest: each engine must find every defect planted in its own bad fixture, and nothing in the clean one.gate-livenessandpattern-liveness: every gate must refuse a planted fault and every pattern must match a planted token; one that never fires is reported dead, not clean.hooks-audit: hooks that look installed and cannot run.skill-refs-lint: paths in skills and commands that no longer exist.env-doctorandobsidian-preflight: missing optional libraries; whether Obsidian is running, and what to run instead of a CLI call that would stall.
Keeping things where they belong
egress-gateanddenylist-audit: block listed terms at the moment content would leave the machine, and audit the list itself.custody-audit,path-audit,vendor-audit: is each declared file tracked and on a remote; what still points at a location you left; when an upstream file moves under a copy you keep on purpose.
Schema as code lives in your own config; config.example/ has a worked example.
Bring your own engine
The core refuses domain-specific content, so a check that encodes your vocabulary or your team's policy
belongs in your repository, not here. Point NEUROKEEPER_ENGINE_PATH at it and your engine becomes a
first-class command, with the same dispatcher, the stable helpers in neurokeeper.lib (frontmatter
parsing and writing, atomic writes), the same exit contract, and an optional place in the doctor roll-up.
export NEUROKEEPER_ENGINE_PATH="/path/to/your-repo/engines"
neurokeeper acme-owner-audit --check # your engine, your repository, your release cycle
A name that collides with a built-in is refused, and a configured directory that does not exist is an error: reporting your engines as absent when they are only misconfigured is the failure this tool exists to avoid. Contract and worked example: Extend with your own engine.
How it is built
The logic lives in deterministic engines (scripts/, each with a --json contract) and
harness-neutral prompt templates (prompts/). A thin adapter binds them to a runtime: the Claude
Code plugin is one adapter; the plain CLI and CI are others. That is why one codebase serves all three, and
why the same engine can run beside a self-hosted model to save tokens. The keystone:
docs/pattern-portable-core-and-adapters.md.
Repository layout
scripts/: the engines;_vault_lib.pyis the shared core,_vault_guard.pythe Obsidian-running guard.prompts/: judgment templates.skills/: Claude Code adapter skills (thin, they defer to engines).hooks/hooks.json: Claude Code hooks..claude-plugin/plugin.json: the plugin manifest.config.example/: example consumer config. This repository ships schemas and examples only, never real config or content.docs/: the pattern, decisions (ADRs), roadmap.tools.lock: runtime tool dependencies.
Each engine carries a metadata header (@capability, @effect, @portability, ...);
scripts/registry-generate.py builds the capability registry from them, so it is never hand-maintained.
Rebuild a whole machine (Linux, macOS, Windows)
bootstrap/ rebuilds a multi-environment setup on a clean box: tools-manifest.md (per-OS install
sources), bootstrap.sh and bootstrap.ps1 (idempotent installers; on Windows, the Everything file index is
opt-in with -WithEverything), RUNBOOK.md (auth, memory restore, Obsidian, a from-zero test) and
repos.example.txt (your private repo list stays gitignored).
Linux or macOS: bash bootstrap/bootstrap.sh bootstrap/repos.txt ~/Projects. Windows:
pwsh -File bootstrap/bootstrap.ps1 -Root ~/Projects. Then follow RUNBOOK.md.
Route cheap work to a self-hosted model (optional)
The claude-cheap wrapper sends mechanical, high-volume work (commit messages, summaries, extraction) to
your own /v1/messages-compatible endpoint for that one invocation; your default claude is untouched.
The billing trap to avoid, the task whitelist, serving recipes and the data-egress warning are in
docs/two-lane-model-handoff.md.
Related projects
If neurokeeper does not fit, one of these might:
- claude-mnemo: Obsidian-vault memory for Claude Code with a lean index and a health audit; the closest neighbour on the memory side.
- claude-memory-health and claude-memory-compiler: Markdown memory audit and consolidation.
- obsidian-mcp-server: MCP tools for Obsidian.
- Tag Wrangler, Linter and Smart Rename: the in-app layer neurokeeper defers to. The engines detect and propose; these apply.
What is different here is the deterministic engine suite behind one portable core. A source-checked survey
of the field: docs/competitive-landscape.md. Where it is heading, and
what is deliberately not planned: docs/roadmap.md.
Security and license
MIT, see LICENSE. CI runs gitleaks on every push. Maintainers also run a private keyword scan
before publishing; its config lists the terms it looks for, so it stays out of the public tree and is not
needed to build, test or use the project. Optional extras and their licences, including two copyleft ones,
are listed in THIRD-PARTY-LICENSES.md. Report issues as described in
SECURITY.md.
Metadata
Release files for neurokeeper 0.12.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| neurokeeper-0.12.1.tar.gz | 625.1 kB | With provenance | Details for neurokeeper-0.12.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neurokeeper-0.12.1-py3-none-any.whl | Python 3 | none | any | Details for neurokeeper-0.12.1-py3-none-any.whl |
Total release size: 882.8 kB
Release files / neurokeeper-0.12.1.tar.gz
| Download URL | neurokeeper-0.12.1.tar.gz |
|---|---|
| Size | 625.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0271bb7992c4c883d709e8a62f4a3e2ac15011826b4582502de4e9b0d5346d8
|
|
BLAKE2b-256 checksum How to use checksums |
e98d02de1485ebe70a2e7683ede6f168ff02f510bf0a408e8d8b1406c34658d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / neurokeeper-0.12.1-py3-none-any.whl
| Download URL | neurokeeper-0.12.1-py3-none-any.whl |
|---|---|
| Size | 257.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d540509f361c1388f1fe6eb2fc727bbbb0a3208c34c84def363a21448e18080
|
|
BLAKE2b-256 checksum How to use checksums |
1354b60b1ff54fee8e019b5eb24a63076ae1ea4efb0bc897b0ce1e686a7e14ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for neurokeeper 0.12.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for neurokeeper-0.12.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.