Constitution vs AGENTS.md, copilot-instructions.md, CLAUDE.md, etc #2476
Replies: 3 comments 7 replies
-
|
The constitution file is loaded on-demand by the commands for establishing context and it does not mean it will always need the entire file. Whereas AGENTS.md, copilot-instructions.md, CLAUDE.md get sent with every request to the LLM irrespective of the context at hand |
Beta Was this translation helpful? Give feedback.
-
|
In my understanding, "constitution" is meant to be applied to the set of specs/plans/tasks. It is NOT taken into LLM context. |
Beta Was this translation helpful? Give feedback.
-
|
Helpful framings above. In practice as a daily Claude Code / Codex user, I find a clean separation:
In that frame the constitution doesn't compete with AGENTS.md — it sits one level above and constrains how specs are written, not how the LLM is conditioned each call. They DRY only if you collapse two distinct concerns. Practical pain point not yet mentioned: the agent-written memory files ( Tangentially relevant since this thread is about the file ecosystem: I open-sourced AI Memory Reader, a free native macOS viewer for the whole constellation (AGENTS.md, CLAUDE.md, .codex/, .cursor/, .continue/, .aider/, etc.) — auto-discovers the agent directories, watches for live writes, renders in GitHub-style markdown. Built it because I got tired of opening these in TextEdit one at a time. Feel free to ignore if not your jam. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've seen this discussed a couple times before but the answers never really addressed my main concern. I don't really see a difference between the constitution in spec-kit and any of the other "context" files that are supported by the leading agent frameworks (AGENTS.md, copilot-instructions.md, CLAUDE.md, etc)
Are these files serving the same purpose? If so why do we need to constitution at all, it seems to me that including it just means that now we all need to keep our agent specific context files and the constitution in sync, which violates DRY principles outright.
So what exactly is the purpose of the constitution, and what are the best practices for using it in combination with the other context files? And tbh if the answer is "Just have the constitution point to your AGENTS.md" or vice versa, that seems completely unnecessary. Context engineering is becoming more and more important and a lot of care is placed in curating the right AGENTS.md/copilot instructions, so how does the constitution file fit into that process?
Beta Was this translation helpful? Give feedback.
All reactions