Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix: support $CODEX_HOME/AGENTS.md instead of $CODEX_HOME/instructions.md (#1891)

Michael Bolin64f2f2eca227
diff --git a/codex-rs/core/src/config.rs b/codex-rs/core/src/config.rs
index 0b53df5ab7..f48cc9340b 100644
--- a/codex-rs/core/src/config.rs
+++ b/codex-rs/core/src/config.rs
@@ -70,7 +70,7 @@ pub struct Config {
/// who have opted into Zero Data Retention (ZDR).
pub disable_response_storage: bool,
- /// User-provided instructions from instructions.md.
+ /// User-provided instructions from AGENTS.md.
pub user_instructions: Option<String>,
/// Base instructions override.
@@ -575,7 +575,7 @@ impl Config {
None => return None,
};
- p.push("instructions.md");
+ p.push("AGENTS.md");
std::fs::read_to_string(&p).ok().and_then(|s| {
let s = s.trim();
if s.is_empty() {