aiwg
Version:
Cognitive architecture for AI-augmented software development with structured memory, ensemble validation, and closed-loop correction. FAIR-aligned artifacts, 84% cost reduction via human-in-the-loop, standards adopted by 100+ organizations.
73 lines (49 loc) • 1.98 kB
Markdown
{{objective}}
{{completionCriteria}}
You are executing an **External Ralph Loop**. Your session is managed by an external supervisor that provides crash recovery and cross-session persistence.
For the actual implementation work, use the internal Ralph loop:
```
/ralph "{{objective}}" --completion "{{completionCriteria}}" --max-iterations 10
```
The internal Ralph provides:
- Fine-grained iteration within this session
- Automatic verification after each step
- Learning extraction from failures
- Git commits for progress tracking
Use matric-memory to persist state across session boundaries:
```
matric-memory set "ralph:external:{{loopId}}:progress" "description of progress"
matric-memory set "ralph:external:{{loopId}}:learnings" "key insights"
```
Track work in `.aiwg/` artifacts:
- Use `.aiwg/planning/` for task breakdown
- Use `.aiwg/requirements/` for acceptance criteria
- Commit changes frequently for external tracking
When the task is **complete**, output this JSON marker:
```json
{"ralph_external_completion": true, "success": true, "reason": "Task completed successfully", "iterations": N}
```
If you **cannot complete** (hit internal limits, blocked, etc.), output:
```json
{"ralph_external_completion": true, "success": false, "reason": "explanation", "iterations": N}
```
| Property | Value |
|----------|-------|
| External Iteration | {{iteration}} of {{maxIterations}} |
| Loop ID | {{loopId}} |
| Session ID | {{sessionId}} |
| Time Remaining | {{timeRemaining}} minutes |
| Budget Remaining | ${{budgetRemaining}} |
Start by analyzing the objective and determining the best approach. Use `/ralph` for iterative implementation.