Repository navigation
refactor(templates): generate AGENTS.md for claude code instead of CLAUDE.md - #495
Conversation
|
@claude please drop all different from AGENTS.md files - all orchestrators should be using AGENTS.md at this point and time. |
|
Claude finished @edenreich's task in 4m 2s —— View job GEMINI.md dropped - every orchestrator now reads AGENTS.md
One thing I added on purposeGemini CLI does not read {
"context": {
"fileName": "AGENTS.md"
}
}to Left as-is
I did not run |
Co-authored-by: Eden Reich <16985712+edenreich@users.noreply.github.com>
Co-authored-by: Eden Reich <16985712+edenreich@users.noreply.github.com>
|
@infer can you address these? why was claude leaving these as-is use /ponytail:ponytail |
|
Model: Todos
Pull Request✅ Infer Result: SuccessAll four leftovers are addressed now, pushed as Why the previous run left them as-is: it judged each one "harmless either way" and documented the reasoning instead of touching code - a judgment call rather than an explicit user request. Fair enough, but the dockerignore entries and the missing linguist tag were fixable at near-zero cost, so they are fixed now, with tests.
PR body updated to reflect all of this. Skipped: rewriting the two historical comments referencing the original CLAUDE.md-era bug report (they describe what happened, not what generates today), and any prune pass for stale files. Risk: a project that already regenerated while the PR was in flight, then updates dockerignore by rerunning generate, loses the image exclusion for a stale hand-written CLAUDE.md until they delete it. Model: Tokens: 1,902,428 in · 18,287 out · 1,920,715 total (23 requests) Tool calls: 41 total · 100% success rate TracesStatsTriggered by edenreich · Infer Action · OSS |
Drop retired CLAUDE.md and GEMINI.md entries from the generated .dockerignore, tag .gemini/settings.json as linguist-generated in .gitattributes, and point the pre-v0.8.0 AI migration hint plus a builtin-tools doc comment at AGENTS.md. Kept on purpose: the generator still does not delete stale CLAUDE.md/GEMINI.md files (it can lose user edits), and .adl-ignore keeps covering only TODO placeholders, so .gemini/settings.json has no ignore entry.
|
🎉 This PR is included in version 0.68.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
Claude Code reads
AGENTS.mdnatively, so the separateCLAUDE.mdtemplate is removed. Enablingspec.development.ai.orchestrators.claudecodenow generates the sharedAGENTS.md(same as codex, opencode and infer).internal/templates/common/ai/claude.md.tmpland its registry mappingAIAgentToggles.AnyAgentsMD()now includesClaudeCode.gitattributestemplate no longer listsCLAUDE.mdadl initprompt/flag text, README and testsCLAUDE.md/GEMINI.mdentries from the generated.dockerignoreso its list matches what the generator actually writes, tagged.gemini/settings.jsonaslinguist-generatedin the generated.gitattributes, and pointed the pre-v0.8.0 AI migration hint and a builtin-tools doc comment atAGENTS.mdNotes
CLAUDE.md/GEMINI.mdon regenerate - the generator just stops writing it. Deliberately not deleting stale files since they may contain user edits..adl-ignoreintentionally still lists only TODO placeholders users must implement, so.gemini/settings.jsonhas no entry; it is a fully generated file likeTaskfile.yml.CLAUDE.md. They come from upstreaminference-gateway/adland are tracked there: [DOCS] Schema descriptions still reference CLAUDE.md and GEMINI.md adl#217. Once upstream fixes and releases, sync here withtask fetch-schemaandtask generate-types.AGENTS.mdby default, so enabling gemini also generates.gemini/settings.jsonwithcontext.fileName: AGENTS.md.Testing
go test ./...passesgolangci-lint run- 0 issuestask lint:mdcleantask cipasses after the cleanup commit (fmt, lint, test, build, verify-schema), including new assertions that the generated.dockerignoreno longer listsCLAUDE.md/GEMINI.mdand that.gitattributestags.gemini/settings.jsonno docs ticket: internal-only refactor