Skip to content

docs: AGENTS.md agent-maintenance docs system - #33

Merged
winlp4ever merged 2 commits into
mainfrom
docs/agents-md-system
Aug 3, 2026
Merged

docs: AGENTS.md agent-maintenance docs system#33
winlp4ever merged 2 commits into
mainfrom
docs/agents-md-system

Conversation

@winlp4ever

Copy link
Copy Markdown
Owner

Adds the "core set" of the agent-docs system described in ai-agent-docs-guide.md, so coding agents get enough repo context without bloating every session.

What's included

  • AGENTS.md (root, ~100 lines) — single source of truth: commands, biome/TS conventions that differ from defaults, repo map, cross-cutting behavioral gotchas, PR/commit rules.
  • CLAUDE.md (thin) — just @AGENTS.md + a couple of Claude-only notes. No duplicated facts, so nothing can drift.
  • packages/core/AGENTS.md (additive) — engine subsystem map + the load-bearing render//store/ invariants, each with file:line (sorted-(z,id) paint cache, save/restore elision, integer edge versions, font epoch, undefined→null, z watermarks, removeNode cascade).

Principles followed

  • Every fact in one place — architecture is linked to docs/ARCHITECTURE.md / IMPLEMENTATION.md / IMPROVEMENTS.md, never restated.
  • Grounded — gotchas verified in code, not invented.
  • Root file kept well under the 200-line budget; deep internals pushed to the package tier.

Not included (deliberate, follow-up if wanted)

Per-package files for react/sync-broadcast, docs/adr/, path-scoped rules, and enforcement hooks. The reference ai-agent-docs-guide.md is intentionally left uncommitted.

Root AGENTS.md as single source of truth (commands, conventions, repo
map, cross-cutting gotchas, PR/commit rules), a thin CLAUDE.md that
@-imports it (no duplicated facts), and an additive packages/core/AGENTS.md
mapping the engine subsystems and its load-bearing render/store invariants
with file:line references.

Grounded in the real code and existing docs; links to docs/ARCHITECTURE.md
et al. rather than restating them.
AGENTS.md is tool-agnostic; the no-AI-attribution trailer rule is a
Claude-only preference already held in global memory, so it doesn't
belong in the repo doc.
@winlp4ever
winlp4ever merged commit 9bfdb35 into main Aug 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant