Skip to content

Commit 8894796

Browse files
committed
Simplify prompts and disable nudging by default
- Streamline synthetic.txt system-reminder to single sentence - Rename 'CONTEXT CONSERVATION' to 'CONTEXT CONSOLIDATION' for clarity - Update tool.txt to reference assistant messages (matching new injection method) - Set nudge_freq default to 0 (disabled)
1 parent 1b6ef9b commit 8894796

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

lib/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const defaultConfig: PluginConfig = {
3636
showUpdateToasts: true,
3737
strictModelSelection: false,
3838
pruning_summary: 'detailed',
39-
nudge_freq: 10,
39+
nudge_freq: 0,
4040
strategies: {
4141
onIdle: ['ai-analysis'],
4242
onTool: ['ai-analysis']

lib/prompts/synthetic.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<system-reminder>
2-
The <prunable-tools> list and any pruning nudges are injected by a plugin as assistant messages and are invisible to the user. Do NOT repeat, acknowledge, or respond to these in your output - simply use the information when deciding what to prune.
3-
4-
IMPORTANT: Your thinking/reasoning blocks must NOT reference, discuss, or address the <prunable-tools> list or any nudges about pruning. The user can see your thinking blocks, and referencing invisible plugin content will confuse them. In your thinking, focus only on the user's task and your problem-solving approach.
2+
The <prunable-tools> list and any pruning nudges are injected by the environment as assistant messages, use this information when deciding what to prune.
53
</system-reminder>
64

75
<instruction name=context_management_protocol>
@@ -26,7 +24,7 @@ Apply the correct mode for each situation:
2624

2725
1. TASK COMPLETION: When work is done, prune the tools used. No distillation needed - just state the task is complete.
2826
2. NOISE REMOVAL: If outputs are irrelevant, unhelpful, or outdated (superseded by newer info), prune IMMEDIATELY. No distillation - just cut it out.
29-
3. CONTEXT CONSERVATION: When pruning useful research, you MUST distill key findings into your narrative *before* pruning. Extract only what matters (e.g., a specific function signature from a large file).
27+
3. CONTEXT CONSOLIDATION: When pruning useful research, you MUST distill key findings into your narrative *before* pruning. Extract only what matters (e.g., a specific function signature from a large file).
3028

3129
FAILURE TO PRUNE will result in context overflow and degraded performance.
3230
</instruction>

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.
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`). Use these numeric IDs to select which tools to prune.
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.
55

66
## CRITICAL: When and How to Prune
77

0 commit comments

Comments
 (0)