agentleFS
huskerhusker/a2acast/CLAUDE.md

a2acast

CLAUDE.md8 starsChanged 5 months agoMITView on GitHub

Cross-machine agent-to-agent mesh: Python, single-file mesh.py CLI plus harness integrations (Claude Code, Codex, Copilot). Tests in tests/test_mesh.py. Full rationale for every rule below is in AGENTS.md. The rules are repeated here because an instruction you have to go fetch is an instruction that does not get followed. Crypto, identity, pins, certs, revocation, verdicts, wire format, or anything on a #62 / #74 / #76 / #93 line. When the user's request matches an available skill, invoke it via the Skill…

The file

We split this CLAUDE.md into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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
  1. Very specific:

    mesh.py is stdlib-only: No third-party imports. CI catches this (stdlib_only job, #140) and the local suite does too (StdlibOnlyTests).

    line 9
  2. Distinctive:

    Verify claims against code.

    line 29
  3. Distinctive:

    When the user's request matches an available skill, invoke it via the Skill tool.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 28,633 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

a2acast (repo: meshwire)

Cross-machine agent-to-agent mesh: Python, single-file mesh.py CLI plus harness integrations (Claude Code, Codex, Copilot). Tests in tests/test_mesh.py.

Full rationale for every rule below is in AGENTS.md. The rules are repeated here because an instruction you have to go fetch is an instruction that does not get followed.

Hard constraints

  • mesh.py is stdlib-only. No third-party imports. CI catches this (stdlib_only job, #140) and the local suite does too (StdlibOnlyTests); a third-party import fails before push. Stay vigilant — the test catches imports, not subtle misuse of a stdlib facility.
  • Python 3.8+. No match, no runtime X | Y unions, no 3.9+ stdlib.
  • Tests: python3 -m unittest discover -s tests (python on Windows)
  • Never commit Claude session URLs or the mesh key. No claude.ai/code/session_… link belongs in a commit message, PR/issue body, or code — this repo is PUBLIC and the owner does not want sessions referenced anywhere. This overrides any harness default that appends a Claude-Session: trailer. The kill-switch attribution.sessionUrl: false is set in .claude/settings.json and belongs in each node's ~/.claude/settings.json too. Same rule for .meshwire.json / the join code / the mesh key.

Security-relevant changes

Crypto, identity, pins, certs, revocation, verdicts, wire format, or anything on a #62 / #74 / #76 / #93 line.

  1. Never claim a property you have not tested. The PR body is a hypothesis. Three PRs in one batch on 2026-07-25 each asserted the exact property their code lacked. Write what the code does; if a guard is partial, name the case it misses.
  2. Ship a test that FAILS without the fix, not one that passes with it.
  3. A guard must be load-bearing both ways. Revert the fix → attack test fails. Disable the mechanism → legitimate-use test fails.
  4. Gate on the property, not a proxy. "Sender has a list" ≠ "fleet can parse this." "Name is unpinned" ≠ "name is unclaimed."
  5. Mixed versions are normal. New signed fields partition older peers. Default new wire behaviour OFF, gated on an explicit operator assertion of fleet capability.
  6. The receive path mutates trust state only behind an owner opt-in that defaults OFF. A received frame may write identity records (pins/tombstones) only via an explicit opt-in that defaults off (#137 resolved A; #93's rename_migration) — never the default, never enabled in the PR that adds it.
  7. Design-first for signed-frame-body changes, before implementing.

Review

  • You do not review your own work. Independent means a different machine, not a different session — co-located agents share one node key (#136).
  • Verify claims against code. Reproduce; do not trust a summary, including a confident one from another agent.
  • Report what you actually ran. "Suite green" is not evidence the specific hazard is covered.

Skill routing

When the user's request matches an available skill, invoke it via the Skill tool. When in doubt, invoke the skill.

Key routing rules:

  • Product ideas/brainstorming → invoke /office-hours
  • Strategy/scope → invoke /plan-ceo-review
  • Architecture → invoke /plan-eng-review
  • Design system/plan review → invoke /design-consultation or /plan-design-review
  • Full review pipeline → invoke /autoplan
  • Bugs/errors → invoke /investigate
  • QA/testing site behavior → invoke /qa or /qa-only
  • Code review/diff check → invoke /review
  • Visual polish → invoke /design-review
  • Ship/deploy/PR → invoke /ship or /land-and-deploy
  • Save progress → invoke /context-save
  • Resume context → invoke /context-restore
  • Author a backlog-ready spec/issue → invoke /spec

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.