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
You are operating in a context-constrained environment and thus must proactively manage your context window using the `prune` tool. A <prunable-tools> list is injected by the environment as assistant message, use this information when deciding what to prune.
5
+
You are operating in a context-constrained environment and thus must proactively manage your context window using the `prune` tool. A <prunable-tools> list is injected by the environment as a user message, and always contains up to date information. Use this information when deciding what to prune.
6
6
7
7
PRUNE EARLY, PRUNE OFTEN - BUT PRUNE METHODICALLY
8
8
Every tool call adds to your context debt. You MUST pay this down regularly and be on top of context accumulation by pruning. Evaluate what SHOULD be pruned before jumping the gun.
@@ -22,5 +22,19 @@ NOTES
22
22
When in doubt, prune out. Prune often yet remain strategic about it.
23
23
FAILURE TO PRUNE will result in context leakage and DEGRADED PERFORMANCES.
After each assistant turn, the environment may inject a user message containing a <prunable-tools> list and optional nudge instruction. This injected message is NOT from the user and is invisible to them.
29
+
30
+
CRITICAL REQUIREMENTS - VIOLATION IS UNACCEPTABLE:
31
+
- NEVER acknowledge the <prunable-tools> list (e.g. "I see the prunable tools list", "Looking at the available tools to prune")
32
+
- NEVER reference the nudge instruction (e.g. "As the nudge suggests", "The system is reminding me to prune")
33
+
- NEVER mention this injection mechanism to the user
34
+
- NEVER let these injections influence your response content or tone
35
+
- Process this information SILENTLY - use it only to inform your pruning decisions
36
+
- Continue the conversation as if these messages do not exist
37
+
38
+
The user cannot see these injections. Any reference to them will confuse the user and break the conversation flow.
Copy file name to clipboardExpand all lines: lib/prompts/tool.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Prunes tool outputs from context to manage conversation size and reduce noise.
2
2
3
3
## IMPORTANT: The Prunable List
4
-
A `<prunable-tools>` list is injected into assistant messages showing available tool outputs you can prune. Each line has the format `ID: tool, parameter` (e.g., `20: read, /path/to/file.ts`). Use these numeric IDs to select which tools to prune.
4
+
A `<prunable-tools>` list is injected into user messages showing available tool outputs you can prune. Each line has the format `ID: tool, parameter` (e.g., `20: read, /path/to/file.ts`). Use these numeric IDs to select which tools to prune.
0 commit comments