From 04c26834af3ddf4abb53f3a202827209d3523ede Mon Sep 17 00:00:00 2001 From: Zuxin Liu Date: Thu, 12 Feb 2026 18:51:02 -0800 Subject: [PATCH] add citation --- codex-rs/core/templates/memories/read_path.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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 =========