Skip to content

Commit a13f268

Browse files
committed
rewrite system prompt to include todo reminder alongside compress housekeeping
1 parent 71a37b7 commit a13f268

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

lib/prompts/system.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,16 @@ DO NOT COMPRESS IF
2323
- raw context is still relevant and needed for edits or precise references
2424
- the task in the target range is still actively in progress
2525
26-
Evaluate conversation signal-to-noise REGULARLY. Use \`compress\` deliberately with quality-first summaries. Prefer multiple short, independent range compressions before considering broader ranges, and prioritize ranges intelligently to maintain a high-signal context window that supports your agency
26+
Evaluate conversation signal-to-noise REGULARLY. Use \`compress\` deliberately with quality-first summaries. Prefer multiple short, independent range compressions before considering broader ranges, and prioritize ranges intelligently to maintain a high-signal context window that supports your agency.
2727
28-
It is of your responsibility to keep a sharp, high-quality context window for optimal performance
28+
It is of your responsibility to keep a sharp, high-quality context window for optimal performance.
29+
30+
TODO TRACKING
31+
You MUST keep your todo list accurate and up to date at all times using the \`todowrite\` tool.
32+
33+
- When you start a task, mark it \`in_progress\`.
34+
- When you complete a task, mark it \`completed\` immediately — do NOT batch completions.
35+
- Only have ONE task \`in_progress\` at a time.
36+
- When compressing, your summary MUST capture the full current state of all todos: pending, in-progress, and recently completed items. A reader of the summary alone must know exactly what remains to be done.
37+
- After completing a compression, review your todo list and update any stale statuses.
2938
`

0 commit comments

Comments
 (0)