Skip to content

Commit 5419c04

Browse files
committed
Clarify prunable-tools list behavior in prompts
- Note that some tools in context may not appear in the list (expected) - Clarify that the list is only injected when tools are available
1 parent c317f38 commit 5419c04

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/prompts/synthetic.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Pruning that forces you to re-call the same tool later is a net loss. Only prune
2828
NOTES
2929
When in doubt, keep it. Prune often yet remain strategic about it.
3030
FAILURE TO PRUNE will result in context leakage and DEGRADED PERFORMANCES.
31+
There may be tools in session context that do not appear in the <prunable-tools> list, this is expected, you can ONLY prune what you see in <prunable-tools>.
3132

3233
</instruction>
3334

lib/prompts/tool.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Prunes tool outputs from context to manage conversation size and reduce noise. For `write` and `edit` tools, the input content is pruned instead of the output.
22

33
## IMPORTANT: The Prunable List
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`). You MUST only use numeric IDs that appear in this list to select which tools to prune.
4+
A `<prunable-tools>` list is injected into user messages showing available tool outputs you can prune when there are tools available for pruning. Each line has the format `ID: tool, parameter` (e.g., `20: read, /path/to/file.ts`). You MUST only use numeric IDs that appear in this list to select which tools to prune.
55

66
**Note:** For `write` and `edit` tools, pruning removes the input content (the code being written/edited) while preserving the output confirmation. This is useful after completing a file modification when you no longer need the raw content in context.
77

0 commit comments

Comments
 (0)