Skip to content

Commit 74257ab

Browse files
committed
fix: update tool specs and injected prompts for assistant-role injection
1 parent 2c80d03 commit 74257ab

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/messages/prune.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const getNudgeString = (config: PluginConfig): string => {
2424
}
2525

2626
const wrapPrunableTools = (content: string): string => `<prunable-tools>
27-
I have the following tool outputs available for pruning. I will consider my current goals and the resources I need before discarding valuable inputs or outputs. I will consolidate prunes for efficiency; it is rarely worth pruning a single tiny tool output.
27+
I have the following tool outputs available for pruning. I should consider my current goals and the resources I need before discarding valuable inputs or outputs. I should consolidate prunes for efficiency; it is rarely worth pruning a single tiny tool output.
2828
${content}
2929
</prunable-tools>`
3030

@@ -42,7 +42,7 @@ const getCooldownMessage = (config: PluginConfig): string => {
4242
}
4343

4444
return `<prunable-tools>
45-
I just performed context management. I should not use the ${toolName} again until after my next tool use, when a fresh list will be available.
45+
I just performed context management. I will not use the ${toolName} again until after my next tool use, when a fresh list will be available.
4646
</prunable-tools>`
4747
}
4848

lib/prompts/discard-tool-spec.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Discards tool outputs from context to manage conversation size and reduce noise.
22

33
## IMPORTANT: The Prunable List
4-
A `<prunable-tools>` list is injected into user messages showing available tool outputs you can discard 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 discard.
4+
A `<prunable-tools>` list is provided to you showing available tool outputs you can discard 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 discard.
55

66
**Note:** For `write` and `edit` tools, discarding 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

lib/prompts/extract-tool-spec.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Extracts key findings from tool outputs into distilled knowledge, then removes the raw outputs from context.
22

33
## IMPORTANT: The Prunable List
4-
A `<prunable-tools>` list is injected into user messages showing available tool outputs you can extract from 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 extract.
4+
A `<prunable-tools>` list is provided to you showing available tool outputs you can extract from 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 extract.
55

66
## When to Use This Tool
77

0 commit comments

Comments
 (0)