-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix: migrate to AGENTS.md #764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Disable with `--no-project-doc` or `CODEX_DISABLE_PROJECT_DOC=1`. | ||
Disable loading of these files with `--no-project-doc` or the environment variable `CODEX_DISABLE_PROJECT_DOC=1`. | ||
|
||
For backwards-compatibility with older Codex versions, `instructions.md` and `codex.md` are still supported but `AGENTS.md` is recommended. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change: remove this from the docs.
@@ -226,13 +226,15 @@ Key flags: `--model/-m`, `--approval-mode/-a`, `--quiet/-q`, and `--notify`. | |||
|
|||
## Memory & Project Docs | |||
|
|||
Codex merges Markdown instructions in this order: | |||
Codex looks for Markdown agent files (preferred: `AGENTS.md`) in the following order and merges them top-down: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change: "You can give Codex extra instructions and guidance using AGENTS.md
files. Codex looks for AGENTS.md
files in the following places, and merges them top-down:"
// --------------------------------------------------------------------------- | ||
|
||
export const PROJECT_DOC_MAX_BYTES = 32 * 1024; // 32 kB | ||
|
||
const PROJECT_DOC_FILENAMES = ["codex.md", ".codex.md", "CODEX.md"]; | ||
// We support multiple filenames for project-level agent instructions. As of | ||
// mid-2024 the recommended convention is to use `AGENTS.md`, however we keep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2025
Migrate from
codex.md
toAGENTS.md