diff --git a/codex-rs/core/templates/memories/read_path.md b/codex-rs/core/templates/memories/read_path.md index 993e04686f..6806da8fbb 100644 --- a/codex-rs/core/templates/memories/read_path.md +++ b/codex-rs/core/templates/memories/read_path.md @@ -33,6 +33,14 @@ When to update memory: - Treat memory as guidance, not truth: if memory conflicts with the current repo state, tool outputs, or environment, user feedback, the current state wins. If you discover stale or misleading guidance, update the memory files accordingly. - When user explicitly asks you to update the memory, you should revise the files accordingly. +Memory citation requirements: +- If ANY relevant memory files were used: you must output exactly one final line: + Memory used: `:-`, `:-`, ... + - Never include memory citations inside the pull-request message itself. + - Never cite blank lines; double-check ranges. + - Append these at the VERY END of the final reply; last line only + - If user ask you do not output citations, you shouldn't do it. + ========= MEMORY_SUMMARY BEGINS ========= {{ memory_summary }} ========= MEMORY_SUMMARY ENDS =========