A curated, self-contained preview of a method for writing documentation that AI coding agents read well — one slice of a larger substrate called Myceli.
When an AI agent (Claude Code and the like) works in your repo, your docs are not a reference it occasionally opens — they are loaded into its context and read first, on every session. That changes what "good documentation" means: it has to be fast to orient in, unambiguous to pattern-match, cheap to load, and honest about what is decided versus open. This repo is a working example of one such method.
It is content-named (docs-for-agents) on purpose — brand-neutral, so you can
judge the method, not the marketing.
Myceli is a coordination substrate for humans and AI agents to do real work together — governance, not orchestration: there is no central command; participants coordinate through a shared, version-controlled field (git / jj) that everyone reads and writes symmetrically. It is AI-native (work breaks into units small enough for one agent action), version-controlled end-to-end, and domain-agnostic (code, text, research, video, campaigns). A guiding bet: design the environment so the transparent, cooperative path is also the cheapest one.
This repo is one slice of Myceli — its documentation method (how Myceli writes the docs agents read first), shown together with a glimpse of the foundations and culture that method grows out of. The craft only makes sense in that context, so a little of the "why" travels with the "how".
The files here are real, working artifacts. A few referenced files are shipped as stubs (a one-paragraph gloss + "not in this preview") so that internal cross-links still resolve and you can see where the boundary is — stubs are marked at the top of the file. On-brand, since in the source substrate many files are themselves deliberate placeholders.
Two mechanisms do the work; both are Claude Code features, not custom tooling:
- Directory walk-up. Claude Code loads
CLAUDE.mdand.claude/rules/files from the working directory up the tree. A session anywhere in the repo inherits the rules above it. Artifacts opt into always-on loading by being symlinked into.claude/rules/. - Progressive disclosure. Always-on content is kept tiny. Each heavy
convention is split into a thin trigger (a short, always-loaded
imperative: "before you do X, go read the reference") and an inert
reference (the full detail, pulled in only when the trigger fires). You pay
for depth only when you need it. See
conventions/documentation-discipline/for the canonical trigger ↔ reference split.
A second half of orientation happens before a file is even opened: filename
suffixes and frontmatter encode a file's identity at ls-time — see
_NAMING.md.
The showcase — a documentation method. The working craft this preview demonstrates:
- Orient-read — glance-time identity via frontmatter + filename
(
_NAMING.md); the Orientation read heuristic and load tiering inconventions/documentation-discipline/. - Cross-reference discipline — notation conventions, plus a portable auditing
tool that finds links/anchors whose labels no longer match their targets:
skills/fix-cross-refs/SKILL.md(provider- and project-agnostic). - Marker discipline — a two-symbol convention (
TODO!blocking vsTODO:backlog) that gives review feedback a durable, greppable home:conventions/todos-convention.myceli-wide.mandatory.md. - The loading model — above: walk-up + progressive disclosure.
The context — a glimpse of Myceli. Why the method is shaped this way; read these as a slice of Myceli's manifesto, not as part of the doc-tooling:
- Foundations —
constitution/coordination-substrate.myceli-wide.mandatory.md: the substrate model — the two axes (planning vs execution), the units of work (task / stage / step and piece / shard / wisp), forward/backward signals, and the implementer/reviewer pattern that recurs at every scale. - Culture — the partnership values the work runs on:
ai-native-partnership(humans and agents as partners; "what makes this readable for an agent?" is a first-class design criterion),honest-disagreement-over-deference(surface bad assumptions instead of smoothing them over), andflag-inconsistency-on-read(the same honesty applied to reading — surface a contradiction you notice in the docs instead of quietly working around it; its durable form is theTODO!marker from the method above).
The source substrate leans on a few coined terms. Most of the words below are
plain IT already — they are listed only so the local sense is unambiguous; a —
in the middle column means "already a standard term, no translation needed". The
genuine coinages get a quick familiar-name.
| Term in these docs | ≈ Familiar name | What it means here |
|---|---|---|
| substrate | foundation / base layer | the foundational layer a system is built on. Concretely here: a project's reusable essence (its core/*) that can be "germinated" into another project to give it the same properties. Also used relatively — "a substrate for X" = the layer X rests on |
| Myceli | the substrate (this project) | the coordination substrate this repo is a preview of — see About Myceli |
| town | module / workspace | a bounded workspace inside a Myceli (its own area of work); one Myceli has many towns (in the mycelium metaphor, a Myceli sprouts towns) |
constitution (constitution/) |
fundamental principles | project-wide, MUST-level founding principles (think RFC-2119 "MUST") |
convention (conventions/) |
— | operational how-to — the repeatable procedures |
| agent-loaded artifact | — | a doc auto-loaded into an AI agent's context (vs one a human opens on demand) |
| walk-up | — | a Claude Code behavior: it loads CLAUDE.md / .claude/rules/ from the working dir upward through parent dirs |
| pheromone (forward / backward) | signal | a coordination signal left in shared history: forward = intent for future work (a plan/goal); backward = state already achieved (commit history / status). The metaphor is stigmergy — coordinating via traces in a shared environment, not direct messaging |
| task / stage / step | epic→story / phase / sub-task | planning units of decreasing scale. Note the overlap with Jira: a task here is a goal-oriented unit anywhere in the epic→story range; a step here ≈ a Jira sub-task |
| piece / shard / wisp | commit / review-cycle / edit | execution units: one reviewable commit / one implement→review cycle / one agent action |
| fractal self-similarity | human–agent equality | the same collaboration patterns apply at every scale, and any role or action can be done by a human or an agent interchangeably (implementer/reviewer is just one illustrative example) |
| tight-collab | mandatory human review | a collaboration mode where every piece gets human review before it lands |
jj @ / @- |
working copy / its parent | Jujutsu VCS: @ = the working-copy commit, @- = its parent |
| myceli-wide | project-wide | a scope value meaning "applies to the whole project" (the filename suffix *.myceli-wide.mandatory.md) |
In your own repo you would keep the handles that earn their place and rename the rest — the ideas are what travel, not the words.
-
Start with the loading model. Put always-on guidance in
CLAUDE.md/.claude/rules/; keep it small. Split anything heavy into a thin trigger + an inert reference so cold-start context stays cheap. The always-on artifacts are symlinked into.claude/rules/— for the artifacts in this preview that would look like:.claude/rules/ ├── ai-native-partnership.md -> ../../constitution/ai-native-partnership.myceli-wide.mandatory.md ├── honest-disagreement.md -> ../../constitution/honest-disagreement-over-deference.myceli-wide.mandatory.md ├── coordination-substrate.md -> ../../constitution/coordination-substrate.myceli-wide.mandatory.md ├── todos-convention.md -> ../../conventions/todos-convention.myceli-wide.mandatory.md └── documentation-discipline-trigger.md -> ../../conventions/documentation-discipline/documentation-discipline-trigger.myceli-wide.mandatory.mdThe inert reference is deliberately not symlinked — the trigger pulls it on demand. That is the progressive-disclosure split in action.
-
Make files self-describing at
ls-time — adopt a frontmatter + filename convention so an agent (and a human) can orient before opening anything. -
Adopt the markers (
TODO!/TODO:) and runfix-cross-refsto keep links honest as the docs grow. -
Encode the culture as structure, not slogans — the constitution articles work because they're loaded and checked, not because they're aspirational.
The ideas here build on prior art — among them stigmergy (coordination via traces left in a shared environment, as in ant colonies), Elinor Ostrom's work on governing the commons, and the MEOW / Gas Town line of agentic-coordination thinking.
MIT — © 2026 Yakiv Kramarenko. Reuse freely, including commercially, under the MIT terms.