Skip to content

Conversation

@Tarquinen
Copy link
Collaborator

use user role for thinking models
use assistant role for non thinking models

…e 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.
@Tarquinen Tarquinen merged commit 5ca9007 into dev Dec 24, 2025
1 check passed
@Tarquinen Tarquinen deleted the refactor/role-based-prompt-injection branch December 24, 2025 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants