Skip to content

fix: stop pointing agents at CLAUDE.md; AGENTS.md is the source of truth - #338

Closed
Patel230 wants to merge 0 commit into
mainfrom
chore/agents-md-single-source
Closed

Patel230 wants to merge 0 commit into
mainfrom
chore/agents-md-single-source

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Makes AGENTS.md the single source of truth in rho's own guidance.

Changes

Site Before After
internal/engine/adaptive_system_prompt.go "conventions documented in AGENTS.md and CLAUDE.md" AGENTS.md only
internal/autoinit/autoinit.go gate list included CLAUDE.md AGENTS.md, RHO.md, CONTEXT.md
cmd/autoinit.go, autoinit doc comments mentioned CLAUDE.md updated
cmd/context_export.go {"AGENTS.md", "AGENTS.md", "CLAUDE.md", ".rho.md"} {"AGENTS.md", ".rho.md"}

Drive-by bug fix

cmd/context_export.go listed AGENTS.md twice, so the exporter read the same file and emitted a duplicate ## Project Instructions (AGENTS.md) section. Fixed as part of trimming that list.

Deliberately NOT changed

internal/rules/ (FormatClaudeCode, readClaudeCode/writeClaudeCode) and config.loadCrossAgentInstructions stay as they are. That is interop, not rho's own config — it lets people migrating in from Claude Code, Cursor, Copilot and Gemini keep their existing rules. Removing it would delete a migration feature.

Verification

go build ./... clean, gofumpt -l clean, tests pass across internal/autoinit, internal/config, internal/rules, internal/engine/..., cmd/....

🤖 Generated with Claude Code

@Patel230 Patel230 closed this Sep 21, 2026
@Patel230
Patel230 force-pushed the chore/agents-md-single-source branch from b6a1132 to 13e05ce Compare September 21, 2026 00:51
@Patel230
Patel230 deleted the chore/agents-md-single-source branch September 21, 2026 00:52
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