weft
CLAUDE.md2 starsChanged 4 months agoMITView on GitHub
Weft is a version-control protocol for autonomous coding agents; this repo is its spec + reference implementation. You (the agent) are the primary user this project is built for. - cargo test --workspace — full suite (core regression + fuzz, weftd swarm e2e, approval e2e, MCP e2e). Everything must stay green. - cargo clippy --workspace --examples — CI enforces -D warnings. - cargo run --release -p weftd — hub + gate + governance console on :8747. - cargo run --release…
In this repository2 other files it gives its agents.
- llms.txtllms.txt
- site/llms.txtllms.txt
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 64
Commit style: what + why, findings referenced by number (finding W7), Co-Authored-By trailer per harness convention.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Weft — agent session guide
Weft is a version-control protocol for autonomous coding agents; this repo is its spec + reference implementation. You (the agent) are the primary user this project is built for.
Commands
cargo test --workspace— full suite (core regression + fuzz, weftd swarm e2e, approval e2e, MCP e2e). Everything must stay green.cargo clippy --workspace --examples— CI enforces-D warnings.cargo run --release -p weftd— hub + gate + governance console on :8747.cargo run --release -p weftd --example bench— benchmark suite.python prototype/weft_fuzz.py— the Python executable-spec fuzzer.cargo run --release -p weft-cli -- <init|clone|status|export>— the git bridge: import a git HEAD, export landed history as conventional commits.
Using Weft itself (dogfooding)
This repo ships .mcp.json wiring the weft MCP server to a hub at
http://127.0.0.1:8747. Start weftd, then use the MCP tools:
repo_status, intent_create/intent_lease, workspace (1-based line
numbers), change_submit (edits by line number; create:true for new
files; reports landed/pending_approval/rejected), approve, note_add/
notes, provenance, whoami. On first use your key has no capability —
the refusal message contains the public key a human must delegate to via the
console (Access tab).
Architecture map
docs/weft-whitepaper.md— the published paper (10.5281/zenodo.21882499). Design rationale and evaluation; cite it rather than re-deriving the argument. If a change invalidates a claim in it, say so.rfcs/0001-weft-protocol.md— source of truth. Any behavior change must update the spec; any discovered defect gets a numbered finding inrfcs/0001-review-log.mdwith a disposition.weft-core/src/cbor.rs— deterministic CBOR (no floats — ints only).weft-core/src/object.rs— envelopes: sign pre-sigfields (domain contextweft/0.1), then OID = BLAKE3 of the signed envelope.weft-core/src/engine.rs— patches + RGA materialization. Identities are(patch-oid, ordinal); SELF sentinel[null, ordinal]for intra-patch references; ordinals count mkfiles AND inserted lines in op order.weft-core/src/gate.rs— states (delta form, closure-digest summaries), capability chains (revocation-aware_rvariants), §7.3 certification.weftd/src/lib.rs— gate loop (batch disjoint footprints, serialize overlaps), approval gating (ts=0on state/manifest keeps manifest OIDs stable across re-attempts — do not "fix" this), HTTP + browser signing (/prepare→ client signs →/submit), governance endpoints.weftd/src/dashboard.html— single-file console. No client-side user/role state ever: roles are capability minting templates (RFC §11).
Invariants and conventions
- Determinism is load-bearing:
∀ permutations of a change set → identical manifest. Never introduce iteration-order dependence; sort explicitly or prove order-freedom. The fuzzers exist to catch you. - Never assert a specific sibling order at a shared RGA anchor in tests — order depends on patch-OID comparison and varies per run. Assert region placement instead (we shipped that flake once; CI caught it).
- Canonical bytes are the object: relays never re-serialize; decoders reject non-minimal ints and unsorted map keys.
- Authorization is checked at certification time and frozen forever after; revocation/expiry gate future landings only.
- Commit style: what + why, findings referenced by number (
finding W7),Co-Authored-Bytrailer per harness convention. Push only when the full suite and clippy are green; CI must stay green onmain. - New spec defects found while implementing → add a
W*n*row to Review C in the review log AND fix the RFC in the same commit.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

