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(auto-mode): Enhance revision prompt customization and task format validation
- Updated the revision prompt generation to utilize a customizable template, allowing for dynamic insertion of plan version, previous plan content, user feedback, and task format examples.
- Added validation to ensure the presence of a tasks block in the revised specification, with clear instructions on the required format to prevent execution issues.
- Introduced logging for scenarios where no tasks are found in the revised plan, warning about potential fallback to single-agent execution.
Copy file name to clipboardExpand all lines: libs/prompts/src/defaults.ts
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -965,8 +965,20 @@ export const DEFAULT_PLAN_REVISION_TEMPLATE = `The user has requested revisions
965
965
966
966
## Instructions
967
967
Please regenerate the specification incorporating the user's feedback.
968
-
Keep the same format with the \`\`\`tasks block for task definitions.
969
-
After generating the revised spec, output:
968
+
**Current planning mode: {{planningMode}}**
969
+
970
+
**CRITICAL REQUIREMENT**: Your revised specification MUST include a \`\`\`tasks code block containing task definitions in the EXACT format shown below. This is MANDATORY - without the tasks block, the system cannot track or execute tasks properly.
971
+
972
+
### Required Task Format
973
+
{{taskFormatExample}}
974
+
975
+
**IMPORTANT**:
976
+
1. The \`\`\`tasks block must appear in your response
977
+
2. Each task MUST start with "- [ ] T###:" where ### is a sequential number (T001, T002, T003, etc.)
978
+
3. Each task MUST include "| File:" followed by the primary file path
979
+
4. Tasks should be ordered by dependencies (foundational tasks first)
980
+
981
+
After generating the revised spec with the tasks block, output:
970
982
"[SPEC_GENERATED] Please review the revised specification above."`;
971
983
972
984
exportconstDEFAULT_CONTINUATION_AFTER_APPROVAL_TEMPLATE=`The plan/specification has been approved. Now implement it.
0 commit comments