ai-eng-system 0.2.1 → 0.2.2
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/README.md
CHANGED
|
@@ -65,6 +65,8 @@ See [docs/spec-driven-workflow.md](./docs/spec-driven-workflow.md) for complete
|
|
|
65
65
|
|
|
66
66
|
> **🔄 Ralph Wiggum**: Add `--ralph` flag to any phase command for persistent iteration. Perfect for complex tasks requiring multiple refinement cycles. [Learn more →](./docs/ralph-wiggum-integration-complete.md)
|
|
67
67
|
|
|
68
|
+
> **🛠️ Fixed (v0.2.2)**: Ralph Wiggum now runs continuously without stopping between phases. Full backward compatibility maintained. [Fix details →](./docs/ralph-wiggum-autonomous-looping-fix.md)
|
|
69
|
+
|
|
68
70
|
### Additional Commands (13 total)
|
|
69
71
|
- `/ai-eng/optimize` - Prompt enhancement (+45% quality)
|
|
70
72
|
- `/ai-eng/deploy` - Pre-deployment checklists
|
|
@@ -85,6 +85,7 @@ I bet you can't manage continuous iteration across all workflow phases without g
|
|
|
85
85
|
| `--dry-run` | boolean | false | Show plan without executing |
|
|
86
86
|
| `--resume` | boolean | false | Resume from last checkpoint |
|
|
87
87
|
| `--parallel` | boolean | false | Run phases in parallel where safe |
|
|
88
|
+
| `--refine-each-phase` | boolean | false | Re-invoke prompt-refinement at each phase (interactive mode) |
|
|
88
89
|
|
|
89
90
|
**Default Completion Promise:**
|
|
90
91
|
```
|
|
@@ -95,6 +96,18 @@ I bet you can't manage continuous iteration across all workflow phases without g
|
|
|
95
96
|
|
|
96
97
|
Load `skills/prompt-refinement/SKILL.md` and use phase: `plan` to transform your prompt into structured TCRO format (Task, Context, Requirements, Output). Ask clarifying questions if feature description, acceptance criteria, technical approach, or quality gates are unclear.
|
|
97
98
|
|
|
99
|
+
**Store the refined output as `$REFINED_CONTEXT`** - this will be used for ALL subsequent phases without re-invoking prompt-refinement.
|
|
100
|
+
|
|
101
|
+
### Autonomous Execution Model
|
|
102
|
+
|
|
103
|
+
After Phase 0 completes:
|
|
104
|
+
1. **Context is locked**: The refined TCRO applies to ALL subsequent phases
|
|
105
|
+
2. **No re-refinement**: Do NOT invoke prompt-refinement again (unless `--refine-each-phase` is set)
|
|
106
|
+
3. **Continuous execution**: Proceed through phases without pausing for user input
|
|
107
|
+
4. **Checkpoints are optional**: Only pause if `--checkpoint` flag is explicitly set
|
|
108
|
+
|
|
109
|
+
This enables overnight/unattended execution as intended by the Ralph Wiggum pattern.
|
|
110
|
+
|
|
98
111
|
## Phase 1: Git Setup
|
|
99
112
|
|
|
100
113
|
### 1.1 Create Feature Branch
|
|
@@ -137,7 +150,7 @@ This is the core Ralph Wiggum pattern - continuous iteration until completion.
|
|
|
137
150
|
|
|
138
151
|
**Goal**: Gather context, patterns, and technical guidance
|
|
139
152
|
|
|
140
|
-
**
|
|
153
|
+
**Context**: Use `$REFINED_CONTEXT` from Phase 0. Do NOT re-invoke prompt-refinement unless `--refine-each-phase` is set.
|
|
141
154
|
|
|
142
155
|
**Execute**:
|
|
143
156
|
```bash
|
|
@@ -157,11 +170,13 @@ This is the core Ralph Wiggum pattern - continuous iteration until completion.
|
|
|
157
170
|
|
|
158
171
|
**Checkpoint** (if `--checkpoint=all`): Pause and ask for approval before proceeding
|
|
159
172
|
|
|
173
|
+
**→ CONTINUE**: Immediately proceed to Phase 2.3 (Specify) without waiting for user input.
|
|
174
|
+
|
|
160
175
|
### 2.3 Specify Phase (if not skipped)
|
|
161
176
|
|
|
162
177
|
**Goal**: Create detailed specification with user stories and acceptance criteria
|
|
163
178
|
|
|
164
|
-
**
|
|
179
|
+
**Context**: Use `$REFINED_CONTEXT` from Phase 0. Do NOT re-invoke prompt-refinement unless `--refine-each-phase` is set.
|
|
165
180
|
|
|
166
181
|
**Execute**:
|
|
167
182
|
```bash
|
|
@@ -186,11 +201,13 @@ This is the core Ralph Wiggum pattern - continuous iteration until completion.
|
|
|
186
201
|
|
|
187
202
|
**Checkpoint** (if `--checkpoint=all`): Pause and ask for approval
|
|
188
203
|
|
|
204
|
+
**→ CONTINUE**: Immediately proceed to Phase 2.4 (Plan) without waiting for user input.
|
|
205
|
+
|
|
189
206
|
### 2.4 Plan Phase (if not skipped)
|
|
190
207
|
|
|
191
208
|
**Goal**: Create implementation plan with tasks and dependencies
|
|
192
209
|
|
|
193
|
-
**
|
|
210
|
+
**Context**: Use `$REFINED_CONTEXT` from Phase 0. Do NOT re-invoke prompt-refinement unless `--refine-each-phase` is set.
|
|
194
211
|
|
|
195
212
|
**Execute**:
|
|
196
213
|
```bash
|
|
@@ -215,11 +232,13 @@ This is the core Ralph Wiggum pattern - continuous iteration until completion.
|
|
|
215
232
|
|
|
216
233
|
**Checkpoint** (if `--checkpoint=all`): Pause and ask for approval
|
|
217
234
|
|
|
235
|
+
**→ CONTINUE**: Immediately proceed to Phase 2.5 (Work) without waiting for user input.
|
|
236
|
+
|
|
218
237
|
### 2.5 Work Phase
|
|
219
238
|
|
|
220
239
|
**Goal**: Implement feature with TDD, quality gates, and iterative refinement
|
|
221
240
|
|
|
222
|
-
**
|
|
241
|
+
**Context**: Use `$REFINED_CONTEXT` from Phase 0. Do NOT re-invoke prompt-refinement unless `--refine-each-phase` is set.
|
|
223
242
|
|
|
224
243
|
**Execute**:
|
|
225
244
|
```bash
|
|
@@ -248,11 +267,13 @@ npm test && npm run lint && npm run build
|
|
|
248
267
|
|
|
249
268
|
**Checkpoint** (if `--checkpoint=all` or `--checkpoint=review`): Pause and ask for approval
|
|
250
269
|
|
|
270
|
+
**→ CONTINUE**: Immediately proceed to Phase 2.6 (Review) without waiting for user input.
|
|
271
|
+
|
|
251
272
|
### 2.6 Review Phase
|
|
252
273
|
|
|
253
274
|
**Goal**: Comprehensive multi-perspective code review
|
|
254
275
|
|
|
255
|
-
**
|
|
276
|
+
**Context**: Use `$REFINED_CONTEXT` from Phase 0. Do NOT re-invoke prompt-refinement unless `--refine-each-phase` is set.
|
|
256
277
|
|
|
257
278
|
**Execute**:
|
|
258
279
|
```bash
|
|
@@ -271,6 +292,8 @@ npm test && npm run lint && npm run build
|
|
|
271
292
|
|
|
272
293
|
**Checkpoint** (if `--checkpoint=all` or `--checkpoint=review`): Pause and ask for approval
|
|
273
294
|
|
|
295
|
+
**→ CONTINUE**: Immediately proceed to Phase 3 (Gap Analysis) without waiting for user input.
|
|
296
|
+
|
|
274
297
|
## Phase 3: Gap Analysis
|
|
275
298
|
|
|
276
299
|
### 3.1 Analyze Review Findings
|
|
@@ -354,6 +377,12 @@ Based on gap analysis from 3.1:
|
|
|
354
377
|
"max_cycles": 5,
|
|
355
378
|
"current_phase": "WORK",
|
|
356
379
|
"completed_phases": ["RESEARCH", "SPECIFY", "PLAN"],
|
|
380
|
+
"refined_context": {
|
|
381
|
+
"task": "Specific, actionable task statement",
|
|
382
|
+
"context": "Broader system, goals, constraints from CLAUDE.md",
|
|
383
|
+
"requirements": ["Must-have requirement 1", "Must-have requirement 2"],
|
|
384
|
+
"output": "What should be delivered (working code, tests, docs, PR)"
|
|
385
|
+
},
|
|
357
386
|
"artifacts": {
|
|
358
387
|
"research": "docs/research/2026-01-05-user-authentication.md",
|
|
359
388
|
"spec": "specs/user-authentication/spec.md",
|
|
@@ -85,6 +85,7 @@ I bet you can't manage continuous iteration across all workflow phases without g
|
|
|
85
85
|
| `--dry-run` | boolean | false | Show plan without executing |
|
|
86
86
|
| `--resume` | boolean | false | Resume from last checkpoint |
|
|
87
87
|
| `--parallel` | boolean | false | Run phases in parallel where safe |
|
|
88
|
+
| `--refine-each-phase` | boolean | false | Re-invoke prompt-refinement at each phase (interactive mode) |
|
|
88
89
|
|
|
89
90
|
**Default Completion Promise:**
|
|
90
91
|
```
|
|
@@ -95,6 +96,18 @@ I bet you can't manage continuous iteration across all workflow phases without g
|
|
|
95
96
|
|
|
96
97
|
Load `skills/prompt-refinement/SKILL.md` and use phase: `plan` to transform your prompt into structured TCRO format (Task, Context, Requirements, Output). Ask clarifying questions if feature description, acceptance criteria, technical approach, or quality gates are unclear.
|
|
97
98
|
|
|
99
|
+
**Store the refined output as `$REFINED_CONTEXT`** - this will be used for ALL subsequent phases without re-invoking prompt-refinement.
|
|
100
|
+
|
|
101
|
+
### Autonomous Execution Model
|
|
102
|
+
|
|
103
|
+
After Phase 0 completes:
|
|
104
|
+
1. **Context is locked**: The refined TCRO applies to ALL subsequent phases
|
|
105
|
+
2. **No re-refinement**: Do NOT invoke prompt-refinement again (unless `--refine-each-phase` is set)
|
|
106
|
+
3. **Continuous execution**: Proceed through phases without pausing for user input
|
|
107
|
+
4. **Checkpoints are optional**: Only pause if `--checkpoint` flag is explicitly set
|
|
108
|
+
|
|
109
|
+
This enables overnight/unattended execution as intended by the Ralph Wiggum pattern.
|
|
110
|
+
|
|
98
111
|
## Phase 1: Git Setup
|
|
99
112
|
|
|
100
113
|
### 1.1 Create Feature Branch
|
|
@@ -137,7 +150,7 @@ This is the core Ralph Wiggum pattern - continuous iteration until completion.
|
|
|
137
150
|
|
|
138
151
|
**Goal**: Gather context, patterns, and technical guidance
|
|
139
152
|
|
|
140
|
-
**
|
|
153
|
+
**Context**: Use `$REFINED_CONTEXT` from Phase 0. Do NOT re-invoke prompt-refinement unless `--refine-each-phase` is set.
|
|
141
154
|
|
|
142
155
|
**Execute**:
|
|
143
156
|
```bash
|
|
@@ -157,11 +170,13 @@ This is the core Ralph Wiggum pattern - continuous iteration until completion.
|
|
|
157
170
|
|
|
158
171
|
**Checkpoint** (if `--checkpoint=all`): Pause and ask for approval before proceeding
|
|
159
172
|
|
|
173
|
+
**→ CONTINUE**: Immediately proceed to Phase 2.3 (Specify) without waiting for user input.
|
|
174
|
+
|
|
160
175
|
### 2.3 Specify Phase (if not skipped)
|
|
161
176
|
|
|
162
177
|
**Goal**: Create detailed specification with user stories and acceptance criteria
|
|
163
178
|
|
|
164
|
-
**
|
|
179
|
+
**Context**: Use `$REFINED_CONTEXT` from Phase 0. Do NOT re-invoke prompt-refinement unless `--refine-each-phase` is set.
|
|
165
180
|
|
|
166
181
|
**Execute**:
|
|
167
182
|
```bash
|
|
@@ -186,11 +201,13 @@ This is the core Ralph Wiggum pattern - continuous iteration until completion.
|
|
|
186
201
|
|
|
187
202
|
**Checkpoint** (if `--checkpoint=all`): Pause and ask for approval
|
|
188
203
|
|
|
204
|
+
**→ CONTINUE**: Immediately proceed to Phase 2.4 (Plan) without waiting for user input.
|
|
205
|
+
|
|
189
206
|
### 2.4 Plan Phase (if not skipped)
|
|
190
207
|
|
|
191
208
|
**Goal**: Create implementation plan with tasks and dependencies
|
|
192
209
|
|
|
193
|
-
**
|
|
210
|
+
**Context**: Use `$REFINED_CONTEXT` from Phase 0. Do NOT re-invoke prompt-refinement unless `--refine-each-phase` is set.
|
|
194
211
|
|
|
195
212
|
**Execute**:
|
|
196
213
|
```bash
|
|
@@ -215,11 +232,13 @@ This is the core Ralph Wiggum pattern - continuous iteration until completion.
|
|
|
215
232
|
|
|
216
233
|
**Checkpoint** (if `--checkpoint=all`): Pause and ask for approval
|
|
217
234
|
|
|
235
|
+
**→ CONTINUE**: Immediately proceed to Phase 2.5 (Work) without waiting for user input.
|
|
236
|
+
|
|
218
237
|
### 2.5 Work Phase
|
|
219
238
|
|
|
220
239
|
**Goal**: Implement feature with TDD, quality gates, and iterative refinement
|
|
221
240
|
|
|
222
|
-
**
|
|
241
|
+
**Context**: Use `$REFINED_CONTEXT` from Phase 0. Do NOT re-invoke prompt-refinement unless `--refine-each-phase` is set.
|
|
223
242
|
|
|
224
243
|
**Execute**:
|
|
225
244
|
```bash
|
|
@@ -248,11 +267,13 @@ npm test && npm run lint && npm run build
|
|
|
248
267
|
|
|
249
268
|
**Checkpoint** (if `--checkpoint=all` or `--checkpoint=review`): Pause and ask for approval
|
|
250
269
|
|
|
270
|
+
**→ CONTINUE**: Immediately proceed to Phase 2.6 (Review) without waiting for user input.
|
|
271
|
+
|
|
251
272
|
### 2.6 Review Phase
|
|
252
273
|
|
|
253
274
|
**Goal**: Comprehensive multi-perspective code review
|
|
254
275
|
|
|
255
|
-
**
|
|
276
|
+
**Context**: Use `$REFINED_CONTEXT` from Phase 0. Do NOT re-invoke prompt-refinement unless `--refine-each-phase` is set.
|
|
256
277
|
|
|
257
278
|
**Execute**:
|
|
258
279
|
```bash
|
|
@@ -271,6 +292,8 @@ npm test && npm run lint && npm run build
|
|
|
271
292
|
|
|
272
293
|
**Checkpoint** (if `--checkpoint=all` or `--checkpoint=review`): Pause and ask for approval
|
|
273
294
|
|
|
295
|
+
**→ CONTINUE**: Immediately proceed to Phase 3 (Gap Analysis) without waiting for user input.
|
|
296
|
+
|
|
274
297
|
## Phase 3: Gap Analysis
|
|
275
298
|
|
|
276
299
|
### 3.1 Analyze Review Findings
|
|
@@ -354,6 +377,12 @@ Based on gap analysis from 3.1:
|
|
|
354
377
|
"max_cycles": 5,
|
|
355
378
|
"current_phase": "WORK",
|
|
356
379
|
"completed_phases": ["RESEARCH", "SPECIFY", "PLAN"],
|
|
380
|
+
"refined_context": {
|
|
381
|
+
"task": "Specific, actionable task statement",
|
|
382
|
+
"context": "Broader system, goals, constraints from CLAUDE.md",
|
|
383
|
+
"requirements": ["Must-have requirement 1", "Must-have requirement 2"],
|
|
384
|
+
"output": "What should be delivered (working code, tests, docs, PR)"
|
|
385
|
+
},
|
|
357
386
|
"artifacts": {
|
|
358
387
|
"research": "docs/research/2026-01-05-user-authentication.md",
|
|
359
388
|
"spec": "specs/user-authentication/spec.md",
|
package/dist/index.js
CHANGED
|
@@ -68,8 +68,7 @@ var AiEngSystem = async ({
|
|
|
68
68
|
const targetDir = findInstallationTarget(directory);
|
|
69
69
|
if (!targetDir) {
|
|
70
70
|
return {
|
|
71
|
-
config: async (input) => {
|
|
72
|
-
}
|
|
71
|
+
config: async (input) => {}
|
|
73
72
|
};
|
|
74
73
|
}
|
|
75
74
|
const isFirstRun = !fs.existsSync(path.join(targetDir, "command", "ai-eng"));
|
|
@@ -82,8 +81,7 @@ var AiEngSystem = async ({
|
|
|
82
81
|
console.error(`[ai-eng-system] Installation warning: ${error instanceof Error ? error.message : String(error)}`);
|
|
83
82
|
}
|
|
84
83
|
return {
|
|
85
|
-
config: async (input) => {
|
|
86
|
-
}
|
|
84
|
+
config: async (input) => {}
|
|
87
85
|
};
|
|
88
86
|
};
|
|
89
87
|
var src_default = AiEngSystem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-eng-system",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Compounding engineering system for Claude Code and OpenCode. Shared agents, commands, skills, and plugin development tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -65,8 +65,6 @@
|
|
|
65
65
|
],
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@biomejs/biome": "^1.9.4",
|
|
68
|
-
"@types/commander": "^2.12.0",
|
|
69
|
-
"@types/glob": "^8.1.0",
|
|
70
68
|
"bun-types": "latest",
|
|
71
69
|
"husky": "^9.1.7",
|
|
72
70
|
"standard-version": "^9.5.0",
|