Skip to content
r0h1tbPublic

About

Evidence-first workflows for Claude Code. Name the one observable that proves you're done, work until it's true, cite what settled it. MIT, zero dependencies, never touches your permission mode.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Plumb

Evidence-first workflows for Claude Code.

Name the one observable that proves you're done. Work until it's true. Cite what settled it.

CI Python License: MIT Runtime deps Typed

Install · Why · Safety · Architecture · Contributing


Install

git clone https://github.com/r0h1tb/plumb && cd plumb
./install.sh --dry-run    # see every change first — writes nothing
./install.sh

Takes about a second. No account, no licence key, no binary, no network access, no npm packages, no MCP servers. Python 3.10+ and nothing else.

Restart any running Claude Code session afterwards so the hooks load.

Optional: put plumb on your PATH

./install.sh installs the assets and is all you need to use the workflows. The plumb command adds status, doctor, build and uninstall:

pipx install .        # from the checkout — or: pip install --user -e .

plumb status          # what's installed, and what's drifted
plumb doctor          # environment and posture check
plumb uninstall       # removes exactly what it added, keeps what you edited

Without it, ./install.sh --uninstall still works from the checkout.

Install without cloning
pipx install "git+https://github.com/r0h1tb/plumb.git@v0.1.0"
plumb install

Or take the wheel attached to any release — the same artefact that would be published, built and verified by the same CI job.

plumb-cli is not on PyPI yet, so pip install plumb-cli will not work until the first upload.


What you get

Command For
/land An end state you want reached, route discovered while building
/plan Work that must be agreed step-by-step before any code exists
/fix Something that used to work and now doesn't
/groundwork Teaching Plumb your project's conventions (run once per repo)
/distill Turning what this session figured out into a reusable skill

Plus six rules that load on demand, four hooks that inform rather than block, and a diff-review subagent.

cd your-project
claude
> /groundwork                                      # once per repo
> /land "search results under 200ms at p95"
> /fix  "uploads drop the filename over 8MB"

The idea

Agents are good at producing work and bad at knowing whether it's finished. Ask one if the feature is done and it will say yes, sincerely, having verified nothing. Not because it's lying — because "done" was never defined, so the only available answer is a feeling.

Plumb makes "done" a thing you can check.

1. Every run names an oracle

The oracle is the one observable that, if true, means the goal is really met — and if false, means it isn't, no matter what else passed.

Goal Oracle
"Search feels instant" p95 on the real index, measured, under 200ms
"Onboarding isn't confusing" a first-time user completes signup without backtracking
"Stop the nightly job failing" three consecutive green runs, no retry

git diff is never an oracle. Neither is "tests pass" or "I implemented it" — those are inputs to a verdict, not the verdict.

No oracle, no run. /land refuses to start without one, and says so. A goal where "finished" means "the agent got tired" is not a goal.

2. Every claim cites evidence

Each run keeps a ledger. Verdicts reference it by ID.

| ID | What | Result |
|----|------|--------|
| E1 | `pytest -q tests/search/` | 214 passed, 0 failed (12.4s) |
| E2 | `hey -n 500 -c 20 /search` → p95 | 186ms cold, 41ms warm |
| E3 | Read `api/routes.py:88` | endpoint already normalises the payload |

"The tests pass" is a claim. E1 is a result. A verdict with no citation isn't a verdict — the criterion is marked FAIL and you go get the evidence.

Insufficient evidence is a fail, not an "unknown". Conditions are part of the evidence: p95 = 41ms is not a measurement; p95 = 41ms, warm cache, 500 requests, 20 concurrent is.

3. Every run names its misfire

How could this pass every criterion and still be wrong?

"Latency passes because I measured against a warm cache and an empty index."

Written down before work starts, checked explicitly before hand-back. Naming the trap up front is what stops you walking into it.

4. Before passing, try to break it

The falsification pass: one honest attempt to make each criterion fail — the cold path, the empty case, the input you didn't design for. Can't break it? It passes, and you say what you tried. Broke it? You just found the bug the pass would have shipped.

5. Reports say what wasn't checked

Not verified: layer 6 (E2E) — no browser in this environment.

The line people omit, and the one that matters most. A report listing only successes is not a report, it's a pitch.


What Plumb will not do to your machine

This is the part most agent toolkits get wrong, so it's worth being specific. Each row is enforced by a test and by a CI job.

❌ Never sets bypassPermissions Your permission mode is yours. plumb doctor warns if anything else set it.
❌ Never overwrites a setting you chose The merge is additive. A key you already set is reported, not "corrected".
❌ Never deletes a file you edited Every installed file is hashed. Uninstall removes hash-matching files and keeps the rest.
❌ Never touches your CLAUDE.md prose Plumb's index lives inside <!-- plumb:begin --> markers. Everything outside is preserved byte-for-byte.
❌ No network, no telemetry, no account Install is a local file copy. Nothing phones home because there's nowhere to phone.
❌ No runtime dependencies Standard library only. Nothing to audit, nothing to update, no supply chain.

CI proves the round trip on every push: a config directory with real user content goes through install → reinstall → uninstall and comes back with CLAUDE.md byte-identical and every settings.json key, value and top-level order intact. (The JSON is re-serialised at indent 2, so its formatting is not preserved — rewriting a JSON file necessarily reformats it.)

plumb status    # what's installed, and what's drifted
plumb doctor    # environment and posture check

Rules load on demand, not on every turn

Most toolkits ship "standards" by pasting all of them into always-on context. Twelve languages you don't use, billed on every single turn.

Plumb writes them to disk and puts a table in CLAUDE.md:

| Read this | When |
| --- | --- |
| `~/.claude/plumb/rules/evidence.md`   | always |
| `~/.claude/plumb/rules/python.md`     | editing Python files (*.py) |
| `~/.claude/plumb/rules/typescript.md` | editing TypeScript or JavaScript |
| `~/.claude/plumb/rules/debugging.md`  | tracking down why something behaves unexpectedly |

The table costs a few hundred tokens. The rules cost nothing until they're relevant.

The rules themselves only say things that aren't guessable — no "write meaningful variable names". If a competent developer would get it right without being told, it isn't in there.


Hooks that inform rather than block

Hook When Does
quality_gate after Write/Edit Runs the linter your project configured — never one it didn't
test_first after Write/Edit Notes when a source file has no test at all. Once per file per session
stop_guard on Stop Holds the session open while a run is mid-contract. Once per artefact; stop twice in a minute to override
session_context on SessionStart After a compact, points at the in-flight run instead of restarting it

None of them blocks an edit. Blocking gates get routed around, and a gate that fires on the wrong thing teaches everyone to ignore gate output — including the finding that mattered. Detection before execution is what keeps the signal worth reading: no ruff config, no ruff.

Hooks also never raise. A crash would degrade the session it was meant to help, so _lib/io.run swallows everything and CI feeds every hook six kinds of junk input to prove it.


Skills are compiled from fragments

A 15k-word skill is unreviewable as one file. Plumb skills are directories:

land/
├── skill.json        # metadata + ordered steps — the contract
├── body.md           # orchestrator prose
└── steps/
    ├── 01-goal.md
    ├── 02-contract.md
    └── …
plumb build                      # compile and lint every skill
plumb build --out ~/.claude/skills
plumb new my-skill               # scaffold one that builds clean immediately

Frontmatter lives in skill.json, not in the markdown — so the compiler can actually validate it. A blown description budget is a build failure, not a skill that silently never loads:

  WARN land           3870 words  cc8ccc1e3375a80b
         warn: 07-extra.md exists but no step references it — dead fragment

Development

make setup     # venv + editable install with dev extras
make check     # lint, strict types, tests, skill build — exactly what CI runs
make cov       # tests with the coverage floor enforced
make roundtrip # prove install/uninstall leaves a config dir intact
make help      # everything else

230 tests, ~1s. Strict mypy over the package and the hook tree, so the py.typed the wheel ships is a checked promise rather than a decorative one.

See CONTRIBUTING.md for the rules that are stricter than usual, docs/ARCHITECTURE.md for how it fits together, and docs/RELEASING.md for how a version ships.

Security issues: SECURITY.md — please don't open a public issue.


Prior art, and what's different

pilot-shell is a well-engineered commercial product in this space ($14/mo, source-available under a proprietary licence, roughly half the repo encrypted). Reading it is what prompted this. Plumb shares some vocabulary with it — goal-and-loop, an oracle criterion, fragment-built skills — and no code or text: everything here is written from scratch, MIT, and diverges on the things that matter most.

pilot-shell Plumb
Licence Proprietary, $14/mo MIT, free
Source ~half git-crypt encrypted All of it
Permission mode Ships bypassPermissions Never touches yours
Runtime deps Homebrew, npm globals, Bun, 7 MCP servers, a compiled binary None
Evidence Prose reports A cited ledger; uncited verdicts fail
Uninstall Manifest-based Manifest + per-file hashes — won't delete your edits
Skill size ~85k words ~10k words

If you want the full commercial product — a web console, team sync, a bot, Codex support — buy theirs; it's good, and it does things this doesn't. If you want something small, free, auditable, and that doesn't disable your permission prompts, this is that.


MIT. Take it, fork it, sell it. No licence key will ever stop your session.

About

Evidence-first workflows for Claude Code. Name the one observable that proves you're done, work until it's true, cite what settled it. MIT, zero dependencies, never touches your permission mode.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages