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
refactor: use user role injection for reasoning models, assistant role for non-reasoning
Restore user-role injections for thinking/reasoning models while keeping
assistant-role injections for non-reasoning models. This improves prompt
effectiveness by matching the injection style to the model's capabilities.
Changes:
- Organize prompts into user/ and assistant/ subdirectories
- User prompts use second-person language (for reasoning models)
- Assistant prompts use first-person language (for non-reasoning models)
- Update prune.ts to select injection role based on isReasoningModel
- Remove synthetic user message workaround (no longer needed)
Reverts behavior changed in 16b86c7 for reasoning models only.
The following tools have been invoked and are available for pruning. This list does not mandate immediate action. Consider your current goals and the resources you need before discarding valuable tool inputs or outputs. Consolidate your prunes for efficiency; it is rarely worth pruning a single tiny tool output. Keep the context free of noise.
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.
**CRITICAL CONTEXT WARNING:** Your context window is filling with tool outputs. Strict adherence to context hygiene is required.
3
+
4
+
**Immediate Actions Required:**
5
+
1. **Task Completion:** If a sub-task is complete, decide: use `discard` if no valuable context to preserve (default), or use `extract` if insights are worth keeping.
6
+
2. **Noise Removal:** If you read files or ran commands that yielded no value, use `discard` to remove them.
7
+
3. **Knowledge Preservation:** If you are holding valuable raw data you'll need to reference later, use `extract` to distill the insights and remove the raw entry.
8
+
9
+
**Protocol:** You should prioritize this cleanup, but do not interrupt a critical atomic operation if one is in progress. Once the immediate step is done, you must perform context management.
0 commit comments