- This repo uses Rhizome to load local docs, note context, and typed-note contracts before you change code or markdown.
rzm initinjects this guidance as a managed block insideAGENTS.mdandCLAUDE.md. Do not edit the managed block directly. Put repo-specific instructions outside managed fences in those files.
- Use
rzm agent startas the default bootstrap for real work. It already returnssessionId,surface, andvaultContext. - Prefer:
rzm agent start --profile code --ontology --file <dir-or-file> --submodule-depth 1
- Reuse the returned
sessionIdacross laterrzm agentcalls in the same conversation. - You usually do not need a separate
rzm agent surfacecall at session start. If you want to refresh the exact command/flag contract later in the session, callrzm agent surfacethen. - Run
rzm agent validatebefore handoff.
- Run
rzm agent startonce. - Run
rzm agent file-contexton the key files or directories you will edit or call into. - Run
rzm agent semantic-queryfor missing "how/why/where" context, design docs, runbooks, and prior art. - Run
rzm agent fileswhen you need exact note lookup by path, tag, property, or backlinks. - Run
rzm agent query-recipewhen a skill or repo guide names a saved typed-note query. - Run
rzm agent validate --check broken-links --check link-hygiene --check ontology --check query-recipes --check companion-docs --check code-frontmatter --check code-anchors --max-issues 40before handoff.
rzm agent file-context: entry points, orchestration, complex files, and dependencies you are about to change or depend on.rzm agent semantic-query: discovery, design/rationale lookup, runbooks, and broad "what explains this?" questions.rzm agent files: exact note discovery, frontmatter/property lookup, backlinks, and small graph expansion.rzm agent vault-context: only when you intentionally skipstartand just need vault text context.rzm agent report/rzm agent vault-health: audits, coverage checks, and note hygiene.rzm agent find-connections/rzm agent graph-path: relationship tracing between notes and code.rzm note move: rename or move markdown files and attachments. Do not move them directly on disk.rzm note rename-heading: rename a heading that may have inboundnote#Heading Textreferences.
- Prefer repo skills over ad hoc command sequences when a markdown task matches one:
rhizome-note-authoring: create or edit typed markdown notes.rhizome-ontology: change.rhizome/ontology/*.graphql.- Template-specific skills such as
code-docs,specify,plan, orimplementwhen they are installed for this repo.
- If a typed markdown task is not already covered by a skill:
- Run
rzm agent ontology-inspect --input <note-or-finder>to confirm the resolved type. - Run
rzm agent ontology-query-schemabefore writing typed queries. - Run
rzm agent ontology-queryto pull the typed neighborhood the note must align with. - Run
rzm agent ontology-authoring-guide --type <TypeName>before drafting or restructuring the note.
- Run
- Never guess typed roots, field names, or relation names from memory. Use the live SDL from
rzm agent ontology-query-schema. - Typed roots require one of
path,find,property, orsemantic.
- Link to the smallest durable graph node that explains the reference. Prefer top-level identifier aliases such as
SPEC-0001for whole notes, and identifier-backed block targets such assome-spec#^SPEC-0007-US1for embedded nodes. - Do not hand-author new durable links to embedded nodes as
note#Heading Textwhen a block target or node link target is available. Userzm agent node-link --target <path#fragment> --ensure planto get the target and proposed fix, or usenode_linkfrom read-write MCP withensure=applywhen you are authorized to make the target linkable. - Use
rzm note movefor note/file moves so vault links are rewritten with the move. - Use
rzm note rename-heading <path> "<old>" "<new>"for heading text changes that may have inbound heading-fragment links. Plain text heading edits can strand existing links. - After link-target moves, heading renames, or manual markdown surgery, run
rzm validate --check fragile-externalorrzm agent validate --check fragile-externalto find surviving heading-only links that should be upgraded or repaired. - Keep structured data keyed by canonical node refs. Treat wikilinks and Markdown links as author-facing renderings, not the durable internal identity.
- Do not rerun
rzm agent startif you already have asessionIdfrom earlier in the conversation. - Do not run blanket
rzm agent file-contextover trivial helpers or areas you already contextualized. - Pass precise
intentstrings torzm agent start,rzm agent file-context, andrzm agent files. - For
rzm agent semantic-query, use--mode; do not treat freeformintentas a search mode. --mode overviewis the default no-seed discovery mode.--mode subsystem_overviewprefers explicit--path, but query-only module/symbol-shaped prompts now attempt local target resolution before downgrading tooverview.- Targeted fetch modes still work best with
--path; when query-only resolution is ambiguous or unresolved, Rhizome returns structured warnings rather than broad false-confidence matches. - Treat docs surfaced by
file-context,vault-context, andsemantic-queryas operational constraints. Adjust code, plan, and validation accordingly. - If you change behavior, update the nearest doc surface and rerun
file-contextwhen you need to confirm the docs still surface correctly. - Notes surfaced automatically through coderefs or code anchors are context-window real estate. Keep them short, concrete, and operational.
- Rhizome config:
.rhizome/config.yml - Ignore rules:
.rhizome/ignore(preferred) - Notes: includes
docs/**/*.md - Links mode:
both - Code scanning globs:
**/*.cs,**/*.js,**/*.jsx,**/*.ts,**/*.tsx - Code anchors: enabled
- Use note-backed
Personnodes for accountable humans. - Configure the local user with
rzm agent current-user set "<Person title>"; validate withrzm agent current-user validate. - Use
rzm agent current-user showwhen you need to inspect the configured identity. - Do not infer the current user from chat context, OS usernames, Git authors, or vault names.
- README.md
- docs/specs/README.md
- docs/specs/process/agent-workflow.md
- docs/specs/process/specs-organization.md
- docs/efforts/README.md
- docs/specs/process/agent-workflow.md
- docs/specs/process/development-loop.md
- docs/specs/process/effort-lifecycle.md
- docs/specs/process/story-lifecycle.md
- docs/specs/process/agent-skills.md
- docs/specs/process/audits.md
- docs/specs/process/debugging-workflow.md
- docs/specs/process/review-handling.md
- docs/specs/process/compounding-work.md
- docs/specs/process/repo-layout.md
- docs/specs/process/quality-gates.md
- docs/specs/process/transcript-ingestion.md
- docs/specs/process/testing-policy.md
/AGENTS.mdis the canonical instruction source for AI coding agents in this repository.- Tool-specific config files are redirect adapters only. Keep normative project guidance in
AGENTS.mdand linked process specs. - Start with
/docs/specs/process/agent-workflow.md; normative workflow rules live in the linked process specs.
- Treat behavior-changing, high-risk, or ambiguous work as loop-driven.
- For loop-driven work, create or update the relevant spec and effort before planning implementation.
- For loop-driven work, run
planbefore implementation edits. - Request explicit in-chat approval before implementation edits on loop-driven work, and record that approval in the effort when an effort exists.
- Check off each checklist item immediately after implementation satisfies it.
- When planning implementation, identify critical schema changes, types, modules to reuse/adapt/create, contracts, API changes, and other design decisions that shape later work or have long-term implications.
- Make Phase 1 establish these formative patterns, then pause for review after Phase 1 completes before continuing into the larger build.
- If later logical stages introduce different architectural changes, add another foundation phase before that implementation work begins.
- When the user is ready to proceed with the plan, build Phase 1, then use
.codex/skills/foundation-reviewto work with the user and confirm the key decisions are correct.
Agent Partnershipfits ambiguous, judgment-heavy synthesis. Keep it conversational: short turns, one tension at a time, targeted questions, compact synthesis, and no long memo-style dumps early.Agent Delegationfits bounded drafting and production. Once the brief is clear, produce the artifact directly and let the human review it.- Start in Partnership when ambiguity or tradeoffs materially affect the artifact. Switch to Delegation once the brief is stable enough to execute without inventing hidden decisions.
alignment-audit:.agents/skills/alignment-audit/SKILL.mdbackport:.agents/skills/backport/SKILL.mdcode-docs:.agents/skills/code-docs/SKILL.mdcompound:.agents/skills/compound/SKILL.mddebugging:.agents/skills/debugging/SKILL.mddevelopment-loop:.agents/skills/development-loop/SKILL.mdeffort-new:.agents/skills/effort-new/SKILL.mdfoundation-review:.agents/skills/foundation-review/SKILL.mdimplement:.agents/skills/implement/SKILL.mdingest-transcript:.agents/skills/ingest-transcript/SKILL.mdplan:.agents/skills/plan/SKILL.mdquality-gates-check:.agents/skills/quality-gates-check/SKILL.mdrefactor-planning:.agents/skills/refactor-planning/SKILL.mdrhizome-review-feedback:.agents/skills/rhizome-review-feedback/SKILL.mdspecify:.agents/skills/specify/SKILL.md
- Use
.agents/skills/action-items/SKILL.mdwhenever creating, finding, updating, completing, assigning, or summarizing action items. - Query action items through direct
ActionItemrecipes/roots, not through a conversation or meeting type. - Use
rzm agent current-user validatebefore answering "my action items"; configure withrzm agent current-user set "<Person title>"when missing. - Add action items to the note where the commitment belongs, using
#action-item,assignee::, and optional ISOdue:: YYYY-MM-DD.