-
Notifications
You must be signed in to change notification settings - Fork 371
Expand file tree
/
Copy pathfeedback-templates.ts
More file actions
22 lines (19 loc) · 963 Bytes
/
feedback-templates.ts
File metadata and controls
22 lines (19 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
* Shared feedback templates for all agent integrations.
*
* The plan deny template was tuned in #224 / commit 3dca977 to use strong
* directive framing — Claude was ignoring softer phrasing.
*/
export interface PlanDenyFeedbackOptions {
planFilePath?: string;
}
export const planDenyFeedback = (
feedback: string,
toolName: string = "ExitPlanMode",
options?: PlanDenyFeedbackOptions,
): string => {
const planFileRule = options?.planFilePath
? `- Read ${options.planFilePath} to see the current plan before editing it.\n`
: "";
return `YOUR PLAN WAS NOT APPROVED.\n\nYou MUST revise the plan to address ALL of the feedback below before calling ${toolName} again.\n\nRules:\n${planFileRule}- Use the Edit tool to make targeted changes to the plan — do not resubmit the same plan unchanged.\n- Do NOT change the plan title (first # heading) unless the user explicitly asks you to.\n\n${feedback || "Plan changes requested"}`;
};