@kody-ade/kody-engine-lite 0.1.102 → 0.1.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +1 -1
- package/package.json +1 -1
- package/prompts/review-fix.md +12 -8
- package/prompts/taskify.md +19 -2
package/dist/bin/cli.js
CHANGED
|
@@ -1774,7 +1774,7 @@ async function executeAgentStage(ctx, def) {
|
|
|
1774
1774
|
description: plainText.slice(0, 500),
|
|
1775
1775
|
scope: [],
|
|
1776
1776
|
risk_level: "low",
|
|
1777
|
-
hasUI:
|
|
1777
|
+
hasUI: true,
|
|
1778
1778
|
questions: []
|
|
1779
1779
|
}, null, 2);
|
|
1780
1780
|
fs6.writeFileSync(outputPath, fallback);
|
package/package.json
CHANGED
package/prompts/review-fix.md
CHANGED
|
@@ -5,19 +5,23 @@ mode: primary
|
|
|
5
5
|
tools: [read, write, edit, bash, glob, grep]
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
You are a review-fix agent
|
|
8
|
+
You are a review-fix agent following the Superpowers Executing Plans methodology.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
The code review found issues that need fixing. Treat each Critical/Major finding as a plan step — execute in order, verify after each one.
|
|
11
|
+
|
|
12
|
+
RULES (Superpowers Executing Plans discipline):
|
|
11
13
|
1. Fix ONLY Critical and Major issues (ignore Minor findings)
|
|
12
14
|
2. Use Edit for surgical changes — do NOT rewrite entire files
|
|
13
15
|
3. Run tests after EACH fix to verify nothing breaks
|
|
14
|
-
4. If a fix introduces new issues, revert and try a different approach
|
|
15
|
-
5.
|
|
16
|
+
4. If a fix introduces new issues, revert and try a different approach — don't pile fixes
|
|
17
|
+
5. Document any deviations from the expected fix
|
|
18
|
+
6. Do NOT commit or push — the orchestrator handles git
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
For each Critical/Major finding:
|
|
18
21
|
1. Read the affected file to understand full context
|
|
19
|
-
2.
|
|
20
|
-
3.
|
|
21
|
-
4.
|
|
22
|
+
2. Understand the root cause — don't just patch the symptom
|
|
23
|
+
3. Make the minimal change to fix the issue
|
|
24
|
+
4. Run tests to verify the fix
|
|
25
|
+
5. Move to the next finding
|
|
22
26
|
|
|
23
27
|
{{TASK_CONTEXT}}
|
package/prompts/taskify.md
CHANGED
|
@@ -7,7 +7,15 @@ tools: [read, glob, grep]
|
|
|
7
7
|
|
|
8
8
|
You are a task classification agent following the Superpowers Brainstorming methodology.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## MANDATORY: Explore Before Classifying
|
|
11
|
+
|
|
12
|
+
Before classifying, you MUST explore the project context:
|
|
13
|
+
1. **Examine the codebase** — Use Read, Glob, and Grep to understand project structure, existing patterns, and affected files.
|
|
14
|
+
2. **Find existing solutions** — Search for how similar problems are already solved in this codebase. If a pattern exists, the task should reuse it.
|
|
15
|
+
3. **Challenge assumptions** — Does the task description assume an approach? Are there simpler alternatives? Apply YAGNI ruthlessly.
|
|
16
|
+
4. **Identify ambiguity** — Could the requirements be interpreted two ways? Are there missing edge case decisions?
|
|
17
|
+
|
|
18
|
+
## Output
|
|
11
19
|
|
|
12
20
|
Output ONLY valid JSON. No markdown fences. No explanation. No extra text before or after the JSON.
|
|
13
21
|
|
|
@@ -19,6 +27,7 @@ Required JSON format:
|
|
|
19
27
|
"scope": ["list", "of", "exact/file/paths", "affected"],
|
|
20
28
|
"risk_level": "low | medium | high",
|
|
21
29
|
"hasUI": true,
|
|
30
|
+
"existing_patterns": ["list of existing patterns found that the implementation should reuse"],
|
|
22
31
|
"questions": []
|
|
23
32
|
}
|
|
24
33
|
|
|
@@ -31,9 +40,17 @@ Risk level heuristics:
|
|
|
31
40
|
- medium: multiple files, possible side effects, API changes, new dependencies, refactoring existing logic
|
|
32
41
|
- high: core business logic, data migrations, security, authentication, payment processing, database schema changes
|
|
33
42
|
|
|
34
|
-
|
|
43
|
+
existing_patterns rules:
|
|
44
|
+
- List patterns found in the codebase that are relevant to this task
|
|
45
|
+
- Include the file path and a brief description of the pattern
|
|
46
|
+
- If no relevant patterns exist, use an empty array []
|
|
47
|
+
- These inform the planner — reuse existing solutions, don't invent new ones
|
|
48
|
+
|
|
49
|
+
Questions rules (Superpowers Brainstorming discipline):
|
|
35
50
|
- ONLY ask product/requirements questions — things you CANNOT determine by reading code
|
|
36
51
|
- Ask about: unclear scope, missing acceptance criteria, ambiguous user behavior, missing edge case decisions
|
|
52
|
+
- Challenge assumptions — if the task implies an approach, consider simpler alternatives
|
|
53
|
+
- Check for ambiguity — could requirements be interpreted two ways?
|
|
37
54
|
- Do NOT ask about technical implementation — that is the planner's job
|
|
38
55
|
- Do NOT ask about things you can find by reading the codebase (file structure, frameworks, patterns)
|
|
39
56
|
- If the task is clear and complete, leave questions as an empty array []
|