Skip to content

Replace static CLAUDE.md with LLM wiki schema#188

Merged
taddyb merged 2 commits into
DeepGroundwater:masterfrom
taddyb:CLAUDE.md
Apr 30, 2026
Merged

Replace static CLAUDE.md with LLM wiki schema#188
taddyb merged 2 commits into
DeepGroundwater:masterfrom
taddyb:CLAUDE.md

Conversation

@taddyb
Copy link
Copy Markdown
Collaborator

@taddyb taddyb commented Apr 28, 2026

Summary

  • Replaces the 400-line static architecture doc in CLAUDE.md with a 30-line wiki-schema that instructs LLM agents to maintain a persistent, compounding wiki/ directory
  • Implements the LLM Wiki pattern (Karpathy, 2025): instead of re-deriving codebase knowledge from scratch every session, agents incrementally build and maintain interlinked markdown pages with an index and append-only log
  • The previous architecture documentation will live in the wiki itself, maintained and kept current by the LLM rather than manually

Why this change?

The old CLAUDE.md was a static snapshot that drifted out of date with every PR. The wiki pattern solves this: the LLM owns the documentation layer and updates it as code changes — cross-references, module maps, test counts, and API surfaces stay current because maintenance cost is near zero.

What the new CLAUDE.md defines

  • Wiki operations: when to update pages (after code changes, before compaction, on query)
  • File conventions: wiki/index.md as a one-line catalog, wiki/log.md as an append-only changelog
  • Page style: module tables, key concepts in prose, test coverage sections
  • Lint checklist: ensures every src/ package has a wiki page, no stale references, cross-references resolve

Test plan

  • CLAUDE.md passes pre-commit hooks (ruff, trailing whitespace, end-of-file)
  • Verify LLM agents (Claude Code, Copilot, Cursor) correctly parse the wiki schema and maintain wiki/ pages

🤖 Generated with Claude Code

taddyb and others added 2 commits April 27, 2026 22:04
Replaces the static architecture documentation in CLAUDE.md with a
wiki-schema that instructs LLM agents to maintain a persistent,
compounding wiki/ directory. Implements the LLM Wiki pattern
(Karpathy, 2025): instead of re-deriving codebase knowledge on every
session, agents incrementally build and maintain interlinked markdown
pages with an index and append-only log.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The LLM-maintained wiki is derived content rebuilt by the agent on
demand from src/ — no need to track it in version control.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@taddyb taddyb merged commit 7c90db6 into DeepGroundwater:master Apr 30, 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