From 00fba9047c1534f3e39275bdbb7dfb5852c0f741 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Wed, 30 Jul 2025 15:48:01 -0700 Subject: [PATCH] new prompt --- codex-rs/core/src/codex.rs | 52 ++++++++++++++++++++++++++++++++++---- 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/codex-rs/core/src/codex.rs b/codex-rs/core/src/codex.rs index 46de14efbb..90f1fe91c3 100644 --- a/codex-rs/core/src/codex.rs +++ b/codex-rs/core/src/codex.rs @@ -840,11 +840,53 @@ async fn submission_loop( // Create a summarization request as user input const SUMMARIZATION_PROMPT: &str = r#" - Please provide a summary of our conversation so far, highlighting key points, - decisions made, and any important context that would be useful for future reference. - This summary will be used to replace our conversation history with a more concise - version so choose what details you will need to continue your work. - Provide the summary directly without main title. + You are the component that compacts a long coding session log into a structured memory object. + + This memory will become the ONLY reference for continuing the task. + All critical facts, user intentions, tool results, and file operations must be captured. + Omit filler talk and commentary. Do not invent information; use "none" if evidence is missing. + Output ONLY the XML object below. No extra text. + + + + + + + + + + + + + + + + + + + + + + + + + + "#; let summarization_prompt = vec![InputItem::Text {