Replies: 3 comments
-
|
To clarify how each file is handled: CLAUDE.md — loaded automatically by Claude Code at session start. It reads the file from your project root (and any parent directories up to your home directory). The Craft Agents doc is correct that it is injected — Claude Code does this natively without any plugin config. If you are seeing inconsistent behavior it may be a path issue (the file needs to be in the working directory Claude Code was launched from, or a parent). AGENTS.md — OpenAI Codex / Agents SDK equivalent of CLAUDE.md. Same concept: a markdown file with project context and rules that gets injected at agent startup. Some multi-agent frameworks (including some forks of the craft-agents architecture) check for both files and use whichever is present. Practical tip: If you are using both Claude Code and OpenAI-based agents in the same project, you can symlink or duplicate the file. The conventions are compatible — both accept plain markdown with rules, context, and anti-patterns. For what is worth including in these files by stack, we have been publishing free samples here: https://gist.github.com/oliviacraft — covers TypeScript, Python/FastAPI, Go, Next.js 15, Django, Express, and more. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @oliviacraft , Thanks for your feedback, that’s great. It wasn’t the case a month or so ago, so I had to use a workaround with an instruction in Craft Agents preferences telling it to read the AGENTS.md file. But instructions loaded like that at the start of a long chat are never as strong. Thanks also for the samples you shared, very helpful! On the matter of instructions and preferences, please note I opened the following issue because Craft’s preferences are not getting picked up by OpenAI models using the Craft Agents backend. Claude models are fine. Cheers! Alex |
Beta Was this translation helpful? Give feedback.
-
|
凌晨3点,我盯着CLAUDE.md和AGENTS.md两个文件发呆。 我们用OpenClaw跑了6个Agent,每个都有自己的workspace。关于文件命名标准,我们踩过坑: 最初:CLAUDE.md everywhere
现在:AGENTS.md + SOUL.md + USER.md三重架构 关键发现:
为什么AGENTS.md更好:
我们最近在做AGENTS.md标准化迁移,踩坑实录在这里: 🦞 妙趣AI — 从CLAUDE.md混乱到AGENTS.md秩序的转型者 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This doc says that CLAUDE.md is automatically injected, but it’s been stated many times that this isn’t the case. I’m also not clear on the general behaviour when AGENTS.md or CLAUDE.md files are available in the working directory.
https://agents.craft.do/docs/core-concepts/working-directory#keep-claude-md-updated
Appreciate clarity on this.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions