Skip to content
This repository was archived by the owner on Sep 22, 2026. It is now read-only.

docs: merge CLAUDE.md into AGENTS.md as the single instruction source - #43

Draft
robotlearning123 wants to merge 1 commit into
fix/read-agents-md-rulesfrom
docs/agents-md-single-source
Draft

robotlearning123 wants to merge 1 commit into
fix/read-agents-md-rulesfrom
docs/agents-md-single-source

Conversation

@robotlearning123

Copy link
Copy Markdown
Member

Stacked on the agent-runner fix: merge that PR first.

AGENTS.md becomes the single source of agent instructions and CLAUDE.md becomes a one-line import, @AGENTS.md.

  • Every line of the old CLAUDE.md is kept, 139 of 153 non-blank lines verbatim. Architecture and Test Files moved under the matching AGENTS.md sections. Tech Stack, Development Rules and the flywheel, API, lifecycle, harness, security and gotcha sections were added in their original order.
  • ## Development Rules stays an exact H2, so buildSystemPrompt() (with the fix below this PR) still injects it: the agent-runner tests pass on this branch.
  • Build command conflict: CLAUDE.md had npx tsc && cp src/web/index.html dist/web/index.html, which fails on a clean checkout (no dist/web), while npm run build (package.json) creates the directory first. The build bullet uses npm run build and keeps the paths.

Why: Codex and other agents read AGENTS.md directly. Claude Code 2.1.277 reads AGENTS.md on its own only behind a server-side rollout flag, and never on launchers that disable telemetry. The import loads the same file on every Claude Code version and launcher.

Draft until independent review passes.

Move all CLAUDE.md content into AGENTS.md: overview, architecture, tech stack, development rules and test files sit in or beside the matching sections.
Flywheel, API, lifecycle, quality, harness, self-evolution, vision, repository, security and gotchas sections follow verbatim (harness self-reference now names AGENTS.md).
Build/test/run commands merge into the npm script bullets (build per package.json); the duplicate .js-extension rule is stated once.
CLAUDE.md is now the single import line @AGENTS.md.

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants