feat(context): adopt two-tier agent context and 4-store documentation layout - #36
Merged
nilbot merged 2 commits intoAug 29, 2026
Merged
Conversation
… layout - Establish Two-Tier Context: root AGENTS.md is canonical router, CLAUDE.md -> AGENTS.md symlink, .agents/AGENTS.md holds domain engineering guidelines and CLI docs invariant - Establish 4-Store Documentation Architecture: create docs/plans/, move active implementation plans from docs/journal/ and docs/archive/ to docs/plans/, update index READMEs - Bundle recording-what-you-learn in .agents/skills/ - Update DefaultAgentsMD in agents/internal/scaffold/scaffold.go to include docs/plans/ and 2-bullet doctor instruction; update tests - Author design spec in docs/design/2026-08-29-two-tier-context-and-llm-migration-architecture.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR establishes the Two-Tier Agent Context Architecture and 4-Store Documentation Layout in
dotfilesand defines the LLM-in-the-Loop Migration Architecture for fleet repositories.Key Changes
Two-Tier Agent Context:
AGENTS.mdis now the canonical router regular file, andCLAUDE.mdis a relative symlink (CLAUDE.md -> AGENTS.md), satisfyingsafeio.ReadRegularO_NOFOLLOWsemantics..agents/AGENTS.mdholding repository-specific engineering guidelines, testing requirements, workflow restrictions, and the CLI Interface Documentation Invariant.AGENTS.md.4-Store Documentation Architecture:
docs/plans/for step-by-step implementation plans.docs/journal/anddocs/archive/plans/intodocs/plans/with the standard-plan.mdnaming convention.docs/archive/.docs/design/README.md,docs/journal/README.md,docs/plans/README.md).Bundled Skills Delivery:
recording-what-you-learninto.agents/skills/recording-what-you-learn/SKILL.md, exposed to harnesses via existing.claude/skillsand.codex/skillssymlinks.Scaffold Package & Tests:
DefaultAgentsMDandDoctorInstructioninagents/internal/scaffold/scaffold.goto includedocs/plans/and 2-bullet doctor instruction.scaffold_test.go.Design Specification:
docs/design/2026-08-29-two-tier-context-and-llm-migration-architecture.md.Verification
go test -count=1 ./...inagents/: PASS (all test suites passing)agents doctor: PASS (all wiring and scaffold checks reportok)