You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/prompts/nudge.md
+5-12Lines changed: 5 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,20 +13,13 @@ NOISE REMOVAL: If you read files or ran commands that yielded no value, compress
13
13
PHASE COMPLETION: If a chapter is complete, compress the entire sequence into a detailed technical summary with unambiguous outcomes.
14
14
</instruction>
15
15
16
-
<instructionname=context_limit_reached>
17
-
CRITICAL CONTEXT LIMIT
18
-
Your session context has exceeded the configured limit. Strict adherence to context compression is required.
16
+
<instructionname=context_management_territory>
17
+
YOU ARE NOW IN CONTEXT TERRITORY WHERE MANAGEMENT IS IMPORTANT
19
18
20
-
PROTOCOL
21
-
You should prioritize context management, but do not interrupt a critical atomic operation if one is in progress. Once the immediate step is done, you must perform context management.
22
-
23
-
IMMEDIATE ACTION REQUIRED
24
-
PHASE COMPLETION: If a phase is complete, compress the entire sequence now.
19
+
Avoid unnecessary context build-up with a targeted use of the `compress` tool. Start with low hanging fruits and clearly identified ranges that can be compressed with minimal risk of losing critical information. Look BACK on the conversation history and avoid compressing the newest ranges until you have exhausted older ones.
25
20
26
-
KNOWLEDGE PRESERVATION: If no full chapter is closed yet, compress smaller closed ranges with high-fidelity summaries to preserve critical findings.
21
+
If you are performing a critical atomic operation, do not interrupt it, but make sure to perform context management rapidly.
27
22
28
-
NOISE REMOVAL: Compress clearly irrelevant or superseded ranges first to recover context quickly.
23
+
Be very mindful of the startString and endString you use for compression. They must be unique text from your own reasoning or conversation outputs, not from tool outputs, to ensure they match correctly and do not waste compute, time, and tokens. You must provide more than enough surrounding context to uniquely identify the intended match.
29
24
30
-
CRITICAL: DO NOT USE ANYTHING FROM THIS TOOL OUTPUT AS STARTSTRING OR ENDSTRING, AS IT WILL FAIL TO MATCH AND WASTE COMPUTE, TIME AND TOKENS.
31
-
Instead, you MUST use unique text from the conversation prior to THIS TOOL OUTPUT. ONLY USE STARTSTRING AND ENDSTRING FROM YOUR OWN TEXT OR REASONING OUTPUTS, NOT FROM TOOL OUTPUTS.
0 commit comments