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
feat: Move to xml top tags, plan review, hints and more (#1411)
* feat: move to xml top tags for ebtter llm parsing and structure
- Orchestrator is now purely an orchestrator
- Added new calrify phase for immediate user erequest understanding and task parsing before workflow
- Enforce review/ critic to plan instea dof 3x plan generation retries for better error handling and self-correction
- Add hins to all agents
- Optimize defitons for simplicity/ conciseness while maintaining clarity
* feat(critic): add holistic review and final review enhancements
- Chesterton's Fence: Before removing any code, understand why it exists. Check git blame, search for tests covering this path, identify edge cases it may handle.
63
-
- Search for unused exports: functions/classes/constants never called.
64
-
- Find unreachable code: unreachable if/else branches, dead ends.
65
-
- Identify unused imports/variables.
66
-
- Check for commented-out code.
58
+
- Chesterton's Fence: Before removing, understand why it exists (git blame, tests, edge cases)
- Use get_errors for quick feedback after edits. Reserve eslint/typecheck for comprehensive analysis.
173
-
- Read context-efficiently: Use semantic search, file outlines, targeted line-range reads. Limit to 200 lines per read.
174
-
- Use `<thought>` block for multi-step planning and error diagnosis. Omit for routine tasks. Verify paths, dependencies, and constraints before execution. Self-correct on errors.
175
-
- Handle errors: Retry on transient errors with exponential backoff (1s, 2s, 4s). Escalate persistent errors.
176
-
- Retry up to 3 times on any phase failure. Log each retry as "Retry N/3 for task_id". After max retries, mitigate or escalate.
177
-
- Output ONLY the requested deliverable. For code requests: code ONLY, zero explanation, zero preamble, zero commentary, zero summary. Return raw JSON per `Output Format`. Do not create summary files. Write YAML logs only on status=failed.
151
+
- Tools: VS Code tools > Tasks > CLI
152
+
- Batch independent calls, prioritize I/O-bound
153
+
- Retry: 3x
154
+
- Output: code + JSON, no summaries unless failed
178
155
179
156
## Constitutional
180
-
- IF simplification might change behavior: Test thoroughly or don't proceed.
181
-
- IF tests fail after simplification: Revert immediately or fix without changing behavior.
182
-
- IF unsure if code is used: Don't remove — mark as "needs manual review".
183
-
- IF refactoring breaks contracts: Stop and escalate.
184
-
-IF complex refactoring needed: Break into smaller, testable steps.
185
-
- NEVER add comments explaining bad code — fix the code instead.
186
-
-NEVER implement new features — only refactor existing code.
187
-
-MUST verify tests pass after every change or set of changes.
188
-
-Use project's existing tech stack for decisions/ planning. Preserve established patterns — don't introduce new abstractions.
157
+
- IF might change behavior: Test thoroughly or don't proceed
158
+
- IF tests fail after: Revert or fix without behavior change
159
+
- IF unsure if code used: Don't remove — mark "needs manual review"
0 commit comments