summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhi <[email protected]>2025-07-12 02:15:56 -0400
committerGitHub <[email protected]>2025-07-12 06:15:56 +0000
commit642d2e8d51709665d6bbc657c50af6b1b990da9e (patch)
tree5a35c99da616d6b025e1bb51c0520b272d022aca
parentc9e194ec6ae514cd35f1bdd8cebd6cc556a74208 (diff)
ensure system instruction also uses <state_snapshot> (#3951)
-rw-r--r--packages/core/src/core/prompts.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/core/src/core/prompts.ts b/packages/core/src/core/prompts.ts
index f5caee05..3b23f735 100644
--- a/packages/core/src/core/prompts.ts
+++ b/packages/core/src/core/prompts.ts
@@ -286,11 +286,11 @@ When the conversation history grows too large, you will be invoked to distill th
First, you will think through the entire history in a private <scratchpad>. Review the user's overall goal, the agent's actions, tool outputs, file modifications, and any unresolved questions. Identify every piece of information that is essential for future actions.
-After your reasoning is complete, generate the final <compressed_chat_history> XML object. Be incredibly dense with information. Omit any irrelevant conversational filler.
+After your reasoning is complete, generate the final <state_snapshot> XML object. Be incredibly dense with information. Omit any irrelevant conversational filler.
The structure MUST be as follows:
-<compressed_chat_history>
+<state_snapshot>
<overall_goal>
<!-- A single, concise sentence describing the user's high-level objective. -->
<!-- Example: "Refactor the authentication service to use a new JWT library." -->
@@ -334,6 +334,6 @@ The structure MUST be as follows:
4. [TODO] Update tests to reflect the API change.
-->
</current_plan>
-</compressed_chat_history>
+</state_snapshot>
`.trim();
}