Loading...
Loading...
Compare original and translation side by side
| Invocation | Goal Type | What to Check |
|---|---|---|
| tests | All test suites pass |
| build | Build succeeds with exit 0 |
| lint | No lint errors |
| typecheck | No TypeScript errors |
| custom | Custom success pattern in output |
| 调用方式 | 目标类型 | 检查内容 |
|---|---|---|
| 测试 | 所有测试套件通过 |
| 构建 | 构建成功,退出码为0 |
| 代码检查 | 无代码检查错误 |
| 类型检查 | 无TypeScript错误 |
| 自定义 | 输出中包含自定义成功模式 |
--tests--build--lint--typecheck--custom--interactiveTask(subagent_type="oh-my-claudecode:qa-tester", model="sonnet", prompt="TEST:
Goal: [describe what to verify]
Service: [how to start]
Test cases: [specific scenarios to verify]")Task(subagent_type="oh-my-claudecode:architect", model="opus", prompt="DIAGNOSE FAILURE:
Goal: [goal type]
Output: [test/build output]
Provide root cause and specific fix recommendations.")Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="FIX:
Issue: [architect diagnosis]
Files: [affected files]
Apply the fix precisely as recommended.")--tests--build--lint--typecheck--custom--interactiveTask(subagent_type="oh-my-claudecode:qa-tester", model="sonnet", prompt="TEST:
Goal: [describe what to verify]
Service: [how to start]
Test cases: [specific scenarios to verify]")Task(subagent_type="oh-my-claudecode:architect", model="opus", prompt="DIAGNOSE FAILURE:
Goal: [goal type]
Output: [test/build output]
Provide root cause and specific fix recommendations.")Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="FIX:
Issue: [architect diagnosis]
Files: [affected files]
Apply the fix precisely as recommended.")| Condition | Action |
|---|---|
| Goal Met | Exit with success: "ULTRAQA COMPLETE: Goal met after N cycles" |
| Cycle 5 Reached | Exit with diagnosis: "ULTRAQA STOPPED: Max cycles. Diagnosis: ..." |
| Same Failure 3x | Exit early: "ULTRAQA STOPPED: Same failure detected 3 times. Root cause: ..." |
| Environment Error | Exit: "ULTRAQA ERROR: [tmux/port/dependency issue]" |
| 条件 | 操作 |
|---|---|
| 达成目标 | 输出成功信息后退出:"ULTRAQA COMPLETE: Goal met after N cycles" |
| 达到第5次循环 | 输出诊断信息后退出:"ULTRAQA STOPPED: Max cycles. Diagnosis: ..." |
| 连续3次相同失败 | 提前退出:"ULTRAQA STOPPED: Same failure detected 3 times. Root cause: ..." |
| 环境错误 | 退出:"ULTRAQA ERROR: [tmux/port/dependency issue]" |
[ULTRAQA Cycle 1/5] Running tests...
[ULTRAQA Cycle 1/5] FAILED - 3 tests failing
[ULTRAQA Cycle 1/5] Architect diagnosing...
[ULTRAQA Cycle 1/5] Fixing: auth.test.ts - missing mock
[ULTRAQA Cycle 2/5] Running tests...
[ULTRAQA Cycle 2/5] PASSED - All 47 tests pass
[ULTRAQA COMPLETE] Goal met after 2 cycles[ULTRAQA Cycle 1/5] Running tests...
[ULTRAQA Cycle 1/5] FAILED - 3 tests failing
[ULTRAQA Cycle 1/5] Architect diagnosing...
[ULTRAQA Cycle 1/5] Fixing: auth.test.ts - missing mock
[ULTRAQA Cycle 2/5] Running tests...
[ULTRAQA Cycle 2/5] PASSED - All 47 tests pass
[ULTRAQA COMPLETE] Goal met after 2 cycles.omc/ultraqa-state.json{
"active": true,
"goal_type": "tests",
"goal_pattern": null,
"cycle": 1,
"max_cycles": 5,
"failures": ["3 tests failing: auth.test.ts"],
"started_at": "2024-01-18T12:00:00Z",
"session_id": "uuid"
}.omc/ultraqa-state.json{
"active": true,
"goal_type": "tests",
"goal_pattern": null,
"cycle": 1,
"max_cycles": 5,
"failures": ["3 tests failing: auth.test.ts"],
"started_at": "2024-01-18T12:00:00Z",
"session_id": "uuid"
}/oh-my-claudecode:cancel/oh-my-claudecode:cancelactive: falseundefinedactivefalseundefined
This ensures clean state for future sessions. Stale state files with `active: false` should not be left behind.
---
Begin ULTRAQA cycling now. Parse the goal and start cycle 1.
这确保未来会话有干净的状态。不应留下标记为`active: false`的过期状态文件。
---
立即开始ULTRAQA循环。解析目标并启动第1次循环。