roadkeep
A Claude Code plugin that keeps your ROADMAP.md, CHANGELOG.md and IMPROVEMENTS.md to one format, by refusing the hand-edit and handing the agent the command that writes it properly.
claude plugin marketplace add alegauss/roadkeep --scope project
claude plugin install roadkeep@alegauss --scope project
Python 3.11+ · zero runtime dependencies · nothing to add to PATH · your files stay plain Markdown
alegauss.github.io/roadkeep: the site, and the docs.
- Refused before the prose exists. A task line is fields with limits:
symptomandwhyhave amaxLength, markers are anenum, ids have a pattern. A line that does not fit is refused when it is written, not reported by a linter after the tokens are spent. - A hand-edit is denied, with the command to call instead. The hook names the exact
add,statusorshipthat does the job, so the right path is also the cheapest one. - Ask instead of read.
pick,brief,listanddepsanswer what is next, what blocks what and why a task exists, so an agent never reads a whole backlog to find one line. - It governs the file you already have. One line per task in your existing
ROADMAP.md, not a new store to migrate into, and a write that would not round-trip byte for byte is refused. - The same gate everywhere.
roadkeep lintruns as the hook at the end of a turn, as a pre-commit hook and as a GitHub Action, and every finding names the command that fixes it.
Unofficial / community project. Not affiliated with, endorsed by, or sponsored by Anthropic. "Claude" and "Claude Code" are trademarks of Anthropic.
Install
Run the two commands above in the repository you want governed. You need a Python 3.11+
interpreter as python; the plugin carries the package itself, so there is nothing to
pip install.
--scope project writes both declarations into that repository's .claude/settings.json:
"extraKnownMarketplaces": { "alegauss": { "source": { "source": "github", "repo": "alegauss/roadkeep" } } },
"enabledPlugins": { "roadkeep@alegauss": true }
Commit that file and every clone is wired, with no step per machine. What arrives:
- the hook that denies a hand-edit of a governed file and names the command, and runs
lintbefore the turn ends; - the MCP tools (
mcp__roadkeep__*), whose input schema is your project's: its limits, its markers, its id shape; - four slash commands,
/roadkeep:add,/roadkeep:ship,/roadkeep:pickand/roadkeep:lint; - the skill, loaded only when a governed file is in play.
Inside an interactive session, /plugin marketplace add alegauss/roadkeep and
/plugin install roadkeep@alegauss do the same for your user alone.
First session
The format is declared once per repository, in roadkeep.toml. Ask for it:
Adopt docs/ROADMAP.md under roadkeep, with the prefix SH.
For a backlog you already have, that runs adopt first, which measures your file and reports
what a limit would refuse before anything changes. Then it runs init --existing, which
declares your roadmap untouched: the prefix comes off the ids it already carries and the
blocks off its own headings. On a new project, a bare init writes the config and the empty
files. Years of lines written before the rules can be forgiven by name with --baseline, so
the gate goes into CI on the first day. The whole run, with every refusal it printed, is in
Adopting a backlog you already have.
From then on, ask in plain words:
Add a task to block B: the export drops the last line when the file has no trailing newline.
What should I work on next?
Ship RK12: export keeps the last line.
Claude calls add, pick and ship. If the symptom is too long, the refusal says by how
much, and ship moves the line to the changelog and drops its rationale section in one write.
If Claude reaches for Edit on the roadmap out of habit, the hook stops it and names the call.
In a session covers everything the agent
receives.
Run it as a gate
roadkeep lint exits 1 on a file that drifted and 0 on one that did not. That exit
code is the whole contract, so every surface calls the same command:
# .github/workflows/gate.yml — the action this repository ships
steps:
- uses: actions/checkout@v4
- uses: alegauss/roadkeep@v0.2.0 # with: {directory: .}
# .pre-commit-config.yaml — the same command, one step earlier
repos:
- repo: https://github.com/alegauss/roadkeep
rev: v0.2.0 # a release tag; `main` tracks unreleased
hooks:
- id: roadkeep-lint # or roadkeep-lint-fix, which normalizes first
--fix repairs only what the format derives — the dep annotation, the pointer, dep order,
an invisible codepoint, whitespace around a field, a queue entry whose task has left, a
criteria heading addressed to nothing — and
leaves every editorial finding to a human, which is what keeps a first run on a real backlog
down to a report somebody reads.
Every finding names the command that closes it. roadkeep repair runs the ones that need no
decision, repair --dry-run prints them without running, and roadkeep explain <code> says
what a finding code means.
Without Claude Code
uvx roadkeep lint # no install, no checkout
pip install roadkeep # or into an environment you keep
# A fix that is on main and not yet released: the same run, resolved by URL
uvx --from git+https://github.com/alegauss/roadkeep roadkeep lint
Every command takes --json, which also says which file and line the answer came from.
On Claude Code on the web
Claude Code on the web never
installs a marketplace plugin. It reads only what the repository commits, so the plugin
commands above wire nothing there, and an agent with no guard falls back to hand-editing the
governed files. The fix is a small launcher committed to the repository, which the hook and
the MCP server point at instead of the plugin root. It finds an engine at run time, and its
guard stands down where the plugin is installed. Viglet Shio carries
the reference copy at
.claude/hooks/roadkeep-launch.py,
and In a session explains the wiring.
From a checkout beside it
A project adopting an unreleased version runs a sibling checkout, and install writes the
hook, the MCP server and the skill into that project itself:
python ../roadkeep/plugin/scripts/roadkeep.py -C . install
python ../roadkeep/plugin/scripts/roadkeep.py -C . install --check # in CI: still in step?
Why it exists
It started as three readings from a real production repository, where all three files declared a format and none enforced it:
| Artefact | Declared rule | Actual reading |
|---|---|---|
docs/ROADMAP.md |
one sentence per task | 92 lines, 142 words average, worst 1406 characters |
agents.md |
index only, loaded every turn | grew to 186 KB (~46k tokens) |
docs/IMPROVEMENTS.md |
rationale for unshipped work | a sibling project's reached 539 KB |
Six of the eight worst lines were written in the session that then diagnosed the problem. An
author, human or model, who has the whole design in mind writes it where the reader is, and an
instruction to be terse does not survive that. A linter reports after the prose exists, when
the author is asked to delete work just done. A field with maxLength: 200 refuses before the
sentence is composed.
Six laws bind the design, and a change that breaks one is wrong even if requested (§0.3):
| # | Law |
|---|---|
| L1 | The format is a schema, enforced where the text is created; lint is the backstop. |
| L2 | The store is the repository: Markdown, greppable, diffable. No database, no service. |
| L3 | Round-trip or don't write: parse → render → byte-identical. |
| L4 | The tool never writes prose: it validates and renders. |
| L5 | Query instead of read: every question is a command. |
| L6 | Configuration, not convention: prefix, paths, markers and limits are per project. |
The non-goals: no web UI and no server, no issue-tracker sync, no model and no prompts inside the tool, and no dates, quarters or estimates.
Status
The table below is not written by hand: roadkeep export --readme derives it from
docs/, so it cannot restate a backlog it no longer matches.
| Block | Open | Shipped | Retired |
|---|---|---|---|
| A — The model (a task is data before it is a line) | 1 | 43 | 2 |
| B — Authoring (insert, never hand-edit) | 2 | 237 | 2 |
| C — Query (consult without reading the file) | 0 | 204 | 7 |
| D — The gate | 0 | 319 | 7 |
| E — Adoption | 1 | 123 | 1 |
| F — The Claude Code plugin (the guardrail at the agent boundary) | 1 | 167 | 4 |
| G — The editor surface (the backlog where the file is open) | 0 | 15 | 0 |
| H — The tool's own shape (what one verb costs to change) | 0 | 45 | 1 |
| I — The documentation area (what an adopter reads before there is a session to ask) | 1 | 21 | 0 |
| J — Validation (whether a person ever tried it) | 0 | 5 | 0 |
| K — The desktop app (one installer for the reader and the plugin) | 0 | 9 | 0 |
| L — Product sites on the package | 1 | 0 | 0 |
| Total | 7 | 1188 | 24 |
Next ready:
- 📋 RK1715 (deps: —) block add opens a label the ledger already declares under another title — It writes the new heading where the label is missing and exits 0, so one label carries two titles across the governed files. → §RK1715
Open work is in
docs/ROADMAP.md. Every
repository of its author is governed by it, and these have a public roadmap to read:
Turing,
Shio,
Dumont,
polyweave,
winwright and
commitclerk. No adopter
outside the author is known yet. This repository is its
own conformance fixture: roadkeep lint must pass on docs/ here, and the suite asserts it.
More tools by alegauss
For Claude Code:
- Claude Code Tray: your rate-limit usage as a Windows tray icon that turns red before you run out.
- commitclerk: Conventional Commits messages from your staged diff, in a single-file Python CLI.
- polyweave: a Claude Code plugin that makes a game's 3D assets, sounds and names by declaring what each has to satisfy.
For Windows developers:
- winwright: drives a Windows desktop app from a test and reports what was actually observed.
- FreeWilly: Docker on Windows without Docker Desktop, with no admin prompt and no telemetry.
- Quickshell: an SSH client for Windows with sessions, keys, SFTP and tunnels, and without the rest of the suite.
All of them: alegauss.github.io
Metadata
Release files for roadkeep 0.2.535
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 |
|---|---|---|---|---|
| roadkeep-0.2.535.tar.gz | 2.5 MB | With provenance | Details for roadkeep-0.2.535.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| roadkeep-0.2.535-py3-none-any.whl | Python 3 | none | any | Details for roadkeep-0.2.535-py3-none-any.whl |
Total release size: 3.8 MB
Release files / roadkeep-0.2.535.tar.gz
| Download URL | roadkeep-0.2.535.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80e57a80012bb34610f4e685f6583678a604ad0cee5c60e4723ecba18e6a782e
|
|
BLAKE2b-256 checksum How to use checksums |
3f7dc67bb1d409d576eed1f61c3902ad1ea9f029fc9b375f0fce2decf2a41f38
|
| 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 Oct 30, 2026.
Transparency logRelease files / roadkeep-0.2.535-py3-none-any.whl
| Download URL | roadkeep-0.2.535-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3b83dbeba25d6e3d6dd9ae5c028fe063bede43aaa3a6c7bc5b58b0e18ee2334
|
|
BLAKE2b-256 checksum How to use checksums |
8096dac802c34e9b666c262aa0d0269f086436afb5f3540d120c9d9feb3d9240
|
| 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 Oct 30, 2026.
Transparency logSecurity for roadkeep 0.2.535
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 roadkeep-0.2.535.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 Oct 30, 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.