feat(prompt): focused custom prompt for improvement children so they stay narrow
This commit is contained in:
@@ -459,8 +459,13 @@ public sealed class TaskRunner
|
||||
|
||||
var systemFile = PromptFiles.ReadOrDefault(PromptKind.System);
|
||||
|
||||
// Improvement children (filed via SuggestImprovement; CreatedBy == ParentTaskId) get a
|
||||
// narrow follow-up prompt so they stay tightly scoped instead of doing "too much".
|
||||
var isImprovementChild = task.ParentTaskId is not null && task.CreatedBy == task.ParentTaskId;
|
||||
var improvementPrompt = isImprovementChild ? PromptFiles.ReadOrDefault(PromptKind.ImprovementChild) : null;
|
||||
|
||||
var instructions = MergeInstructions(
|
||||
systemFile, global.DefaultClaudeInstructions, listConfig?.SystemPrompt, task.SystemPrompt);
|
||||
systemFile, improvementPrompt, global.DefaultClaudeInstructions, listConfig?.SystemPrompt, task.SystemPrompt);
|
||||
|
||||
return new ClaudeRunConfig(
|
||||
Model: task.Model ?? listConfig?.Model ?? global.DefaultModel,
|
||||
|
||||
Reference in New Issue
Block a user