Skip to main content
roadkeep logo

roadkeep

Stop paying tokens to keep your docs. A Claude Code plugin that turns your ROADMAP.md and CHANGELOG.md into a format a command enforces, so the agent calls one command instead of reading, rewriting and re-checking the file.

claude plugin marketplace add alegauss/roadkeep --scope project
claude plugin install roadkeep@alegauss --scope project

Python 3.11+ · zero runtime dependencies · your files stay plain Markdown

alegauss.com/roadkeep · docs

  • Measured where it hurt. On a real project the roadmap averaged 142 words a line against a one-sentence rule, and agents.md reached 186 KB. Every one of those words is context the agent reads again on the next turn.
  • Refused before the prose exists. A line has fields with limits, so an over-long one 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, ship or status, so the right path is also the cheapest one.
  • Ask instead of read. pick, brief and list answer what is next and why, so an agent never reads a whole backlog to find one line.
  • Your existing files. One line per task in the ROADMAP.md you already have; nothing to migrate into.

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 lint before 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:pick and /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: the plugin's hook at the end of a turn, a pre-commit hook and a GitHub Action, and every finding names the command that fixes it:

# .github/workflows/gate.yml — the action this repository ships
steps:
  - uses: actions/checkout@v4
  - uses: alegauss/roadkeep@v0      # 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) 0 46 2
B — Authoring (insert, never hand-edit) 0 240 2
C — Query (consult without reading the file) 0 205 7
D — The gate 0 319 7
E — Adoption 0 129 1
F — The Claude Code plugin (the guardrail at the agent boundary) 0 170 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) 0 22 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 0 2 0
M — Codex integration (one engine, host-specific adapters) 2 8 0
N — Branches (one backlog across parallel branches) 0 7 0
Total 2 1222 24

Next ready:

  • ⏳ RK1737 (deps: RK1735 ✅, RK1736 ✅) No end-to-end evidence shows Roadkeep enforcement inside Codex — Desktop and IDE parity, two worktrees, missing Python, disabled hooks, plugin update and uninstall are not yet observed in a live Codex session. → §RK1737

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.
  • FreeHarbor: 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.com

Metadata

Release files for roadkeep 0.2.606

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for roadkeep 0.2.606
File Size Uploaded Provenance Actions
roadkeep-0.2.606.tar.gz 2.6 MB With provenance Details for roadkeep-0.2.606.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for roadkeep 0.2.606
File Interpreter ABI Platform Actions
roadkeep-0.2.606-py3-none-any.whl Python 3 none any Details for roadkeep-0.2.606-py3-none-any.whl

Total release size: 3.9 MB

Release files / roadkeep-0.2.606.tar.gz

Download URL roadkeep-0.2.606.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
914ff6a10fa053bf137384cd34fa1d8ff888117fcda2dcc2d20d4d423faf1b41
BLAKE2b-256 checksum
How to use checksums
7dbae9e0b637e88d1f547b35cb180923aeb712c6eb3e062b835f5b30c6cd30b3
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 16, 2026.

Transparency log

Release files / roadkeep-0.2.606-py3-none-any.whl

Download URL roadkeep-0.2.606-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d2a9b304938d33981dc97f950b8dcde9b501b3fe6c75d162ea164b2d73464fd7
BLAKE2b-256 checksum
How to use checksums
7325e98f1cc87ecda3c79a3080eadaeb94b5ca9d2a244d248ae058b0cf832639
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 16, 2026.

Transparency log

Security for roadkeep 0.2.606

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.

Select from 2 files

Attestation for roadkeep-0.2.606.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 16, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page