Compare commits

...
Author SHA1 Message Date
0xtoshii 2d6d1bf76a prompt changes 2025-08-27 22:52:44 -07:00
0xtoshii 94a9b6a490 swapping order of checkpoint and tool result 2025-08-27 22:32:09 -07:00
3 changed files with 10 additions and 6 deletions
+7 -3
View File
@@ -21,10 +21,14 @@ Your summary should include the following sections:
3. Files and Code Sections: Enumerate specific files and code sections examined, modified, or created. Pay special attention to the most recent messages and include full code snippets where applicable and include a summary of why this file read or edit is important.
4. Problem Solving: Document problems solved and any ongoing troubleshooting efforts.
5. Pending Tasks: Outline any pending tasks that you have explicitly been asked to work on.
6. Current Work: Describe in detail precisely what was being worked on immediately before this summary request, paying special attention to the most recent messages from both user and assistant. Include file names and code snippets where applicable.
7. Optional Next Step: List the next step that you will take that is related to the most recent work you were doing. IMPORTANT: ensure that this step is DIRECTLY in line with the user's explicit requests, and the task you were working on immediately before this summary request. If your last task was concluded, then only list next steps if they are explicitly in line with the users request. Do not start on tangential requests without confirming with the user first.
6. Task Evolution: If the user provided additional requests or modified the original task during the conversation, document this progression:
- Task Modifications: [Chronological list of how the user redirected or modified the work since the original task]
- Current Active Task: [What the user most recently asked to work on]
- Context for Changes: [Why the task evolved - user feedback, new requirements, etc. (Include direct quotes from user messages that caused task changes to prevent drift after context compacting)]
7. Current Work: Describe in detail precisely what was being worked on immediately before this summary request, paying special attention to the most recent messages from both user and assistant. Include file names and code snippets where applicable.
8. Optional Next Step: List the next step that you will take that is related to the most recent work you were doing. IMPORTANT: ensure that this step is DIRECTLY in line with the user's explicit requests, and the task you were working on immediately before this summary request. If your last task was concluded, then only list next steps if they are explicitly in line with the users request. Do not start on tangential requests without confirming with the user first.
If there is a next step, include direct quotes from the most recent conversation showing exactly what task you were working on and where you left off. This should be verbatim to ensure there's no drift in task interpretation.
8. You should pay special attention to the most recent user message, as it indicates the user's most recent intent, if applicable.
9. You should pay special attention to the most recent user message, as it indicates the user's most recent intent.
${
focusChainSettings?.enabled
+1 -1
View File
@@ -9,7 +9,7 @@ export const formatResponse = {
`[[NOTE] This file read has been removed to save space in the context window. Refer to the latest file read for the most up to date version of this file.]`,
contextTruncationNotice: () =>
`[NOTE] Some previous conversation history with the user has been removed to maintain optimal context window length. The initial user task has been retained for continuity, while intermediate conversation history has been removed. Please keep this in mind as you continue assisting the user.`,
`[NOTE] Some previous conversation history with the user has been removed to maintain optimal context window length. The initial user task has been retained for continuity, while intermediate conversation history has been removed. Keep this in mind as you continue assisting the user. Pay special attention to the user's latest messages.`,
processFirstUserMessageForTruncation: (originalContent: string) => {
const MAX_CHARS = 400_000
+2 -2
View File
@@ -353,13 +353,13 @@ export class ToolExecutor {
private async handleCompleteBlock(block: ToolUse, config: any): Promise<void> {
// All tools are now fully self-managed and implement IPartialBlockHandler
const result = await this.coordinator.execute(config, block)
await this.saveCheckpoint()
this.pushToolResult(result, block)
// Handle focus chain updates
if (!block.partial && this.focusChainSettings.enabled) {
await this.updateFCListFromToolResponse(block.params.task_progress)
}
await this.saveCheckpoint()
}
}