oh-my-claude-sisyphus 3.5.3 → 3.5.6
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/commands/doctor.md +1 -1
- package/commands/ecomode.md +1 -2
- package/commands/help.md +1 -1
- package/commands/learn-about-omc.md +5 -0
- package/commands/omc-setup.md +4 -4
- package/commands/ralplan.md +1 -1
- package/commands/research.md +2 -2
- package/commands/ultraqa.md +1 -1
- package/dist/__tests__/analytics/transcript-token-extractor.test.js +4 -2
- package/dist/__tests__/analytics/transcript-token-extractor.test.js.map +1 -1
- package/dist/__tests__/delegation-enforcer-integration.test.d.ts +4 -0
- package/dist/__tests__/delegation-enforcer-integration.test.d.ts.map +1 -1
- package/dist/__tests__/delegation-enforcer-integration.test.js +5 -1
- package/dist/__tests__/delegation-enforcer-integration.test.js.map +1 -1
- package/dist/__tests__/skills.test.js +17 -19
- package/dist/__tests__/skills.test.js.map +1 -1
- package/dist/hooks/auto-slash-command/constants.d.ts.map +1 -1
- package/dist/hooks/auto-slash-command/constants.js +1 -4
- package/dist/hooks/auto-slash-command/constants.js.map +1 -1
- package/dist/hooks/ralph/loop.js +1 -1
- package/dist/hooks/ralph/loop.js.map +1 -1
- package/dist/hooks/ultraqa/index.js +1 -1
- package/dist/hooks/ultraqa/index.js.map +1 -1
- package/docs/CLAUDE.md +9 -16
- package/docs/FULL-README.md +49 -56
- package/docs/MIGRATION.md +96 -1
- package/package.json +1 -1
- package/scripts/install.sh +8 -217
- package/scripts/uninstall.sh +0 -4
- package/skills/autopilot/SKILL.md +1 -1
- package/skills/cancel/SKILL.md +35 -0
- package/skills/doctor/SKILL.md +1 -1
- package/skills/help/SKILL.md +2 -2
- package/skills/learn-about-omc/SKILL.md +128 -0
- package/skills/mcp-setup/SKILL.md +63 -75
- package/skills/omc-setup/SKILL.md +4 -4
- package/skills/ralplan/SKILL.md +19 -250
- package/skills/research/SKILL.md +2 -2
- package/skills/ultrapilot/SKILL.md +1 -1
- package/skills/ultraqa/SKILL.md +1 -1
- package/commands/cancel-autopilot.md +0 -35
- package/commands/cancel-ecomode.md +0 -71
- package/commands/cancel-ralph.md +0 -41
- package/commands/cancel-ultraqa.md +0 -27
- package/commands/cancel-ultrawork.md +0 -40
- package/commands/planner.md +0 -174
- package/skills/cancel-autopilot/SKILL.md +0 -52
- package/skills/cancel-ecomode/SKILL.md +0 -41
- package/skills/cancel-ralph/SKILL.md +0 -42
- package/skills/cancel-ultraqa/SKILL.md +0 -28
- package/skills/cancel-ultrawork/SKILL.md +0 -41
- package/skills/omc-default/SKILL.md +0 -77
- package/skills/omc-default-global/SKILL.md +0 -74
- package/skills/planner/SKILL.md +0 -105
package/skills/ralplan/SKILL.md
CHANGED
|
@@ -3,269 +3,38 @@ name: ralplan
|
|
|
3
3
|
description: Iterative planning with Planner, Architect, and Critic until consensus
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Ralplan
|
|
6
|
+
# Ralplan Command
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
**This is an alias for `/plan --consensus`**
|
|
9
9
|
|
|
10
|
-
Ralplan orchestrates three specialized agents—Planner, Architect, and Critic—in an iterative loop until consensus is reached on a comprehensive work plan.
|
|
10
|
+
Ralplan orchestrates three specialized agents—Planner, Architect, and Critic—in an iterative loop until consensus is reached on a comprehensive work plan.
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Usage
|
|
13
13
|
|
|
14
|
-
Three agents collaborate in structured phases to validate and refine work plans:
|
|
15
|
-
|
|
16
|
-
| Agent | Role | Output |
|
|
17
|
-
|-------|------|--------|
|
|
18
|
-
| **Planner** | Strategic Planner | Creates/refines the work plan |
|
|
19
|
-
| **Architect** | Strategic Advisor | Answers questions, validates architecture |
|
|
20
|
-
| **Critic** | Ruthless Reviewer | Critiques and identifies gaps |
|
|
21
|
-
|
|
22
|
-
## The Iteration Loop
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
┌─────────────────────────────────────────────────────────────────┐
|
|
26
|
-
│ RALPLAN LOOP │
|
|
27
|
-
│ │
|
|
28
|
-
│ ┌──────────────┐ │
|
|
29
|
-
│ │ PLANNER │◄────────────────────────────────┐ │
|
|
30
|
-
│ │ (Plans) │ │ │
|
|
31
|
-
│ └──────┬───────┘ │ │
|
|
32
|
-
│ │ │ │
|
|
33
|
-
│ ▼ │ │
|
|
34
|
-
│ ┌──────────────┐ Questions? ┌───────────┐ │ │
|
|
35
|
-
│ │ Has open │─────────────────► │ ARCHITECT │ │ │
|
|
36
|
-
│ │ questions? │ │ (Advises) │ │ │
|
|
37
|
-
│ └──────┬───────┘ └─────┬─────┘ │ │
|
|
38
|
-
│ │ │ │ │
|
|
39
|
-
│ │ No questions │ │ │
|
|
40
|
-
│ ▼ ▼ │ │
|
|
41
|
-
│ ┌──────────────┐ ┌──────────┐ │ │
|
|
42
|
-
│ │ CRITIC │◄─────────────────│ Answers │ │ │
|
|
43
|
-
│ │ (Reviews) │ └──────────┘ │ │
|
|
44
|
-
│ └──────┬───────┘ │ │
|
|
45
|
-
│ │ │ │
|
|
46
|
-
│ ▼ │ │
|
|
47
|
-
│ ┌──────────────┐ REJECT ┌──────────────┐│ │
|
|
48
|
-
│ │ Verdict? │─────────────────►│ Feedback ││ │
|
|
49
|
-
│ └──────┬───────┘ │ to Planner │┘ │
|
|
50
|
-
│ │ └─────────────┘ │
|
|
51
|
-
│ │ OKAY │
|
|
52
|
-
│ ▼ │
|
|
53
|
-
│ ┌──────────────────────────────────────────────────────────┐ │
|
|
54
|
-
│ │ PLAN APPROVED │ │
|
|
55
|
-
│ │ Ready for /ralph execution │ │
|
|
56
|
-
│ └──────────────────────────────────────────────────────────┘ │
|
|
57
|
-
└─────────────────────────────────────────────────────────────────┘
|
|
58
14
|
```
|
|
59
|
-
|
|
60
|
-
## State Management
|
|
61
|
-
|
|
62
|
-
Ralplan maintains persistent state in `.omc/ralplan-state.json` to track progress and enable recovery across interruptions:
|
|
63
|
-
|
|
64
|
-
```json
|
|
65
|
-
{
|
|
66
|
-
"active": true,
|
|
67
|
-
"mode": "ralplan",
|
|
68
|
-
"iteration": 1,
|
|
69
|
-
"max_iterations": 5,
|
|
70
|
-
"plan_path": ".omc/plans/[feature].md",
|
|
71
|
-
"current_phase": "planner_planning",
|
|
72
|
-
"started_at": "ISO-timestamp",
|
|
73
|
-
"task_description": "[original task]"
|
|
74
|
-
}
|
|
15
|
+
/oh-my-claudecode:ralplan [task]
|
|
75
16
|
```
|
|
76
17
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
## Plan Mode Interaction (CRITICAL)
|
|
80
|
-
|
|
81
|
-
**When ralplan is invoked while Plan mode is active:**
|
|
82
|
-
|
|
83
|
-
The Planner agent has a PHASE 3.5 (CONFIRMATION) that normally requires user confirmation before proceeding. **This MUST be bypassed within ralplan because the Critic serves as the reviewer, not the user.**
|
|
84
|
-
|
|
85
|
-
### Mandatory Constraints
|
|
86
|
-
|
|
87
|
-
| Constraint | Rationale |
|
|
88
|
-
|------------|-----------|
|
|
89
|
-
| **Planner MUST skip PHASE 3.5 confirmation** | Critic reviews the plan, not the user |
|
|
90
|
-
| **Critic MUST run before any plan approval** | No plan is approved without Critic verdict |
|
|
91
|
-
| **DO NOT exit plan mode until Critic has rendered verdict** | Premature exit skips the review step |
|
|
92
|
-
| **Log `[RALPLAN] Critic review required before approval`** | Observability for debugging |
|
|
93
|
-
|
|
94
|
-
### Flow When Plan Mode Is Active
|
|
95
|
-
|
|
96
|
-
```
|
|
97
|
-
1. Orchestrator invokes ralplan skill
|
|
98
|
-
2. Log: [RALPLAN] Starting - Critic review will be required
|
|
99
|
-
3. Spawn Planner in DIRECT PLANNING MODE (no interview, no confirmation)
|
|
100
|
-
4. Planner outputs PLAN_READY: <path>
|
|
101
|
-
5. Log: [RALPLAN] Plan ready, invoking Critic for review
|
|
102
|
-
6. Spawn Critic with plan path <-- MUST HAPPEN
|
|
103
|
-
7. Critic renders OKAY or REJECT
|
|
104
|
-
8. ONLY THEN can plan be approved or refined
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**CRITICAL: The Critic invocation is MANDATORY. If the Planner completes and signals plan ready, the orchestrator MUST invoke the Critic before any form of plan approval or user confirmation.**
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## Execution Protocol
|
|
112
|
-
|
|
113
|
-
### Initialization
|
|
114
|
-
|
|
115
|
-
The skill begins by establishing the planning environment:
|
|
116
|
-
|
|
117
|
-
1. Create `.omc/plans/` directory if it doesn't exist
|
|
118
|
-
2. Read task description from user input
|
|
119
|
-
3. Create `ralplan-state.json` with initial values:
|
|
120
|
-
- `active: true`
|
|
121
|
-
- `iteration: 0`
|
|
122
|
-
- `max_iterations: 5`
|
|
123
|
-
- `current_phase: "planner_planning"`
|
|
124
|
-
- `started_at`: Current ISO timestamp
|
|
125
|
-
- `task_description`: User's task description
|
|
126
|
-
|
|
127
|
-
### Planner Planning Phase
|
|
128
|
-
|
|
129
|
-
The Planner creates an initial plan based on task context:
|
|
130
|
-
|
|
131
|
-
- Invoke Planner in **direct planning mode** (bypassing interview since task context is pre-gathered)
|
|
132
|
-
- **CRITICAL: Planner MUST skip PHASE 3.5 (CONFIRMATION)** - the Critic will review, not the user
|
|
133
|
-
- Planner receives task context directly without preliminary questioning
|
|
134
|
-
- Planner mandatorily consults with Metis for gap detection
|
|
135
|
-
- Planner generates plan directly to `.omc/plans/[feature-name].md`
|
|
136
|
-
- Plan includes: requirements summary, concrete acceptance criteria, specific implementation steps with file references, risk identification with mitigations, and verification steps
|
|
137
|
-
- Signal completion with `PLAN_READY: .omc/plans/[filename].md`
|
|
138
|
-
- **After PLAN_READY: DO NOT approve or confirm the plan. Proceed to Critic Review.**
|
|
139
|
-
- Extract plan path from completion signal and update state
|
|
140
|
-
- Log: `[RALPLAN] Critic review required before approval`
|
|
141
|
-
|
|
142
|
-
### Architect Consultation (Conditional)
|
|
143
|
-
|
|
144
|
-
The Architect provides strategic guidance in two scenarios:
|
|
145
|
-
|
|
146
|
-
1. **After Planner**: If Planner raises architectural questions needing strategic input
|
|
147
|
-
2. **After Critic rejection**: If Critic identifies questions requiring expert guidance
|
|
18
|
+
## What It Does
|
|
148
19
|
|
|
149
|
-
|
|
20
|
+
Invokes the plan skill with --consensus mode, which:
|
|
21
|
+
1. Creates initial plan with Planner agent
|
|
22
|
+
2. Consults Architect for architectural questions
|
|
23
|
+
3. Reviews with Critic agent
|
|
24
|
+
4. Iterates until Critic approves (max 5 iterations)
|
|
150
25
|
|
|
151
|
-
|
|
26
|
+
## Implementation
|
|
152
27
|
|
|
153
|
-
|
|
28
|
+
When this skill is invoked, immediately invoke the plan skill with consensus mode:
|
|
154
29
|
|
|
155
|
-
Log at start: `[RALPLAN] Invoking Critic for plan review`
|
|
156
|
-
|
|
157
|
-
The Critic examines the plan against quality standards:
|
|
158
|
-
|
|
159
|
-
- Critic receives the plan file path (per its design)
|
|
160
|
-
- Critic conducts thorough review of plan completeness and feasibility
|
|
161
|
-
- Critic emits verdict: either `OKAY` (approval) or `REJECT` with specific issues
|
|
162
|
-
|
|
163
|
-
**Enforcement Rules:**
|
|
164
|
-
1. If Planner signals PLAN_READY, Critic MUST be invoked immediately
|
|
165
|
-
2. DO NOT exit ralplan loop before Critic verdict
|
|
166
|
-
3. DO NOT request user confirmation before Critic verdict
|
|
167
|
-
4. DO NOT trigger any plan mode exit behavior before Critic verdict
|
|
168
|
-
|
|
169
|
-
Log after Critic completes: `[RALPLAN] Critic verdict: <OKAY|REJECT>`
|
|
170
|
-
|
|
171
|
-
### Verdict Handling and Iteration
|
|
172
|
-
|
|
173
|
-
Based on Critic's verdict, the skill either approves the plan or continues iteration:
|
|
174
|
-
|
|
175
|
-
**If verdict is OKAY:**
|
|
176
|
-
- Mark plan as approved
|
|
177
|
-
- Log approval with iteration count
|
|
178
|
-
- Prepare plan for execution with `/oh-my-claudecode:ralph` or manual orchestration
|
|
179
|
-
- Set state `active: false, current_phase: "complete"`
|
|
180
|
-
|
|
181
|
-
**If verdict is REJECT:**
|
|
182
|
-
- Extract Critic feedback with specific issues
|
|
183
|
-
- Increment iteration counter
|
|
184
|
-
- If `iteration >= max_iterations` (5):
|
|
185
|
-
- Force approval with warning about unresolved concerns
|
|
186
|
-
- Recommend manual review before execution
|
|
187
|
-
- Otherwise:
|
|
188
|
-
- Feed Critic feedback back to Planner
|
|
189
|
-
- Return to Planner Planning phase for refinement
|
|
190
|
-
|
|
191
|
-
## Iteration Rules
|
|
192
|
-
|
|
193
|
-
| Rule | Description |
|
|
194
|
-
|------|-------------|
|
|
195
|
-
| **Max 5 iterations** | Safety limit prevents infinite loops |
|
|
196
|
-
| **Planner owns plan** | Only Planner writes to plan file |
|
|
197
|
-
| **Architect provides wisdom** | Architect reads and advises, never modifies |
|
|
198
|
-
| **Critic has final say** | Plan approved only when Critic signals OKAY |
|
|
199
|
-
| **Feedback is specific** | Each rejection includes actionable improvements |
|
|
200
|
-
| **State persists** | Progress survives session interruptions |
|
|
201
|
-
|
|
202
|
-
## Quality Gates
|
|
203
|
-
|
|
204
|
-
The orchestrator must verify these gates before invoking Critic for each review:
|
|
205
|
-
|
|
206
|
-
1. **Plan file exists** at the path specified in state
|
|
207
|
-
2. **File references are valid** - Verify all mentioned files exist in codebase
|
|
208
|
-
3. **Acceptance criteria are concrete** - No vague "improve" or "optimize" without measurable metrics
|
|
209
|
-
4. **No ambiguous language** - Each task clearly specifies what to do
|
|
210
|
-
|
|
211
|
-
If any gate fails, return to Planner with specific failure feedback for remediation.
|
|
212
|
-
|
|
213
|
-
## Agent Communication Protocol
|
|
214
|
-
|
|
215
|
-
### Planner to Architect Questions
|
|
216
|
-
|
|
217
|
-
```
|
|
218
|
-
ARCHITECT_QUESTION:
|
|
219
|
-
- Topic: [Architecture/Performance/Security/Pattern]
|
|
220
|
-
- Context: [What we're planning]
|
|
221
|
-
- Files to examine: [specific paths]
|
|
222
|
-
- Specific Question: [What we need answered]
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
### Architect to Planner Answers
|
|
226
|
-
|
|
227
|
-
```
|
|
228
|
-
ARCHITECT_ANSWER:
|
|
229
|
-
- Topic: [Matching topic]
|
|
230
|
-
- Analysis: [What Architect found after reading files]
|
|
231
|
-
- Recommendation: [Specific guidance]
|
|
232
|
-
- Trade-offs: [What to consider]
|
|
233
|
-
- References: [file:line citations from codebase]
|
|
234
30
|
```
|
|
235
|
-
|
|
236
|
-
### Critic to Planner Feedback
|
|
237
|
-
|
|
31
|
+
Invoke Skill: plan --consensus {{ARGUMENTS}}
|
|
238
32
|
```
|
|
239
|
-
CRITIC_FEEDBACK:
|
|
240
|
-
- Verdict: REJECT
|
|
241
|
-
- Critical Issues:
|
|
242
|
-
1. [Issue with specific fix required]
|
|
243
|
-
2. [Issue with specific fix required]
|
|
244
|
-
- Minor Issues:
|
|
245
|
-
1. [Nice to fix]
|
|
246
|
-
- Questions for Architect (if any):
|
|
247
|
-
1. [Architectural question needing expert input]
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
## Cancellation
|
|
251
|
-
|
|
252
|
-
To stop an active ralplan session:
|
|
253
|
-
|
|
254
|
-
- Use `/oh-my-claudecode:cancel-ralph` (automatically detects ralplan via state file)
|
|
255
|
-
- Or manually delete `.omc/ralplan-state.json`
|
|
256
|
-
|
|
257
|
-
## Skill Workflow
|
|
258
33
|
|
|
259
|
-
|
|
260
|
-
2. **Parse task** from user input
|
|
261
|
-
3. **Spawn Planner** in direct planning mode (SKIP Planner's PHASE 3.5 confirmation)
|
|
262
|
-
4. **Wait for PLAN_READY** signal from Planner
|
|
263
|
-
5. **Log:** `[RALPLAN] Critic review required before approval`
|
|
264
|
-
6. **Invoke Critic** with plan file path (MANDATORY - CANNOT BE SKIPPED)
|
|
265
|
-
7. **Log:** `[RALPLAN] Critic verdict: <verdict>`
|
|
266
|
-
8. **Handle verdict** - if REJECT, loop back to step 3 with feedback
|
|
267
|
-
9. **Complete** ONLY when Critic approves or max iterations reached with warnings
|
|
34
|
+
Pass all arguments to the plan skill. The plan skill handles all consensus logic, state management, and iteration.
|
|
268
35
|
|
|
269
|
-
|
|
36
|
+
## See Also
|
|
270
37
|
|
|
271
|
-
|
|
38
|
+
- `/plan` - Base planning skill with all modes
|
|
39
|
+
- `/plan --consensus` - Direct invocation of consensus mode
|
|
40
|
+
- `/cancel` - Cancel active planning session
|
package/skills/research/SKILL.md
CHANGED
|
@@ -145,7 +145,7 @@ Pending stages: {{PENDING_STAGES}}
|
|
|
145
145
|
1. **Max Iterations:** 10 (configurable)
|
|
146
146
|
2. **Continue until:** Promise tag emitted OR max iterations
|
|
147
147
|
3. **State tracking:** Persist after each stage completion
|
|
148
|
-
4. **Cancellation:** `/cancel
|
|
148
|
+
4. **Cancellation:** `/oh-my-claudecode:cancel` or "stop", "cancel"
|
|
149
149
|
|
|
150
150
|
### AUTO Mode Example
|
|
151
151
|
|
|
@@ -480,7 +480,7 @@ Optional settings in `.claude/settings.json`:
|
|
|
480
480
|
## Cancellation
|
|
481
481
|
|
|
482
482
|
```
|
|
483
|
-
/oh-my-claudecode:cancel
|
|
483
|
+
/oh-my-claudecode:cancel
|
|
484
484
|
```
|
|
485
485
|
|
|
486
486
|
Or say: "stop research", "cancel research", "abort"
|
package/skills/ultraqa/SKILL.md
CHANGED
|
@@ -107,7 +107,7 @@ Track state in `.omc/ultraqa-state.json`:
|
|
|
107
107
|
|
|
108
108
|
## Cancellation
|
|
109
109
|
|
|
110
|
-
User can cancel with `/oh-my-claudecode:cancel
|
|
110
|
+
User can cancel with `/oh-my-claudecode:cancel` which clears the state file.
|
|
111
111
|
|
|
112
112
|
## Important Rules
|
|
113
113
|
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Cancel active autopilot session
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Cancel Autopilot
|
|
6
|
-
|
|
7
|
-
[CANCELLING AUTOPILOT]
|
|
8
|
-
|
|
9
|
-
You are cancelling the active autopilot session.
|
|
10
|
-
|
|
11
|
-
## Action
|
|
12
|
-
|
|
13
|
-
1. Call the cancel function to clean up state
|
|
14
|
-
2. Report what was cancelled
|
|
15
|
-
3. Show preserved progress
|
|
16
|
-
|
|
17
|
-
## Steps
|
|
18
|
-
|
|
19
|
-
1. Check if autopilot is active
|
|
20
|
-
2. Clean up Ralph/UltraQA if active
|
|
21
|
-
3. Preserve autopilot state for resume
|
|
22
|
-
4. Report status
|
|
23
|
-
|
|
24
|
-
## Arguments
|
|
25
|
-
|
|
26
|
-
{{ARGUMENTS}}
|
|
27
|
-
|
|
28
|
-
If `--clear` is passed, completely clear all state instead of preserving.
|
|
29
|
-
|
|
30
|
-
## Output
|
|
31
|
-
|
|
32
|
-
Report:
|
|
33
|
-
- What phase was cancelled
|
|
34
|
-
- What modes were cleaned up
|
|
35
|
-
- How to resume
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Cancel active Ecomode mode (deprecated - use /oh-my-claudecode:cancel instead)
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Cancel Ecomode
|
|
6
|
-
|
|
7
|
-
[ECOMODE CANCELLED]
|
|
8
|
-
|
|
9
|
-
**DEPRECATION NOTICE:** This command is deprecated. Use `/oh-my-claudecode:cancel` instead, which intelligently detects and cancels any active mode including ecomode.
|
|
10
|
-
|
|
11
|
-
The unified cancel command is safer because it:
|
|
12
|
-
- Checks if ecomode is linked to Ralph and handles both
|
|
13
|
-
- Prevents orphaned state files
|
|
14
|
-
- Provides consistent cancellation experience
|
|
15
|
-
|
|
16
|
-
## Legacy Behavior
|
|
17
|
-
|
|
18
|
-
If you still use this command, it will:
|
|
19
|
-
|
|
20
|
-
1. Check if ecomode is linked to Ralph
|
|
21
|
-
2. If linked → Warn and suggest using `/oh-my-claudecode:cancel-ralph`
|
|
22
|
-
3. If standalone → Cancel ecomode only
|
|
23
|
-
|
|
24
|
-
## Arguments
|
|
25
|
-
|
|
26
|
-
{{ARGUMENTS}}
|
|
27
|
-
|
|
28
|
-
## Recommended Action
|
|
29
|
-
|
|
30
|
-
Use the unified cancel command:
|
|
31
|
-
```
|
|
32
|
-
/oh-my-claudecode:cancel
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
This will detect ecomode and cancel it properly, along with any linked modes.
|
|
36
|
-
|
|
37
|
-
## Implementation
|
|
38
|
-
|
|
39
|
-
If you must cancel ecomode directly:
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
# Check if linked to ralph
|
|
43
|
-
LINKED=$(cat .omc/ecomode-state.json 2>/dev/null | jq -r '.linked_to_ralph // false')
|
|
44
|
-
|
|
45
|
-
if [[ "$LINKED" == "true" ]]; then
|
|
46
|
-
echo "Warning: Ecomode is linked to Ralph."
|
|
47
|
-
echo "Use /oh-my-claudecode:cancel to cancel both modes."
|
|
48
|
-
exit 1
|
|
49
|
-
fi
|
|
50
|
-
|
|
51
|
-
# Cancel standalone ecomode
|
|
52
|
-
mkdir -p .omc ~/.claude
|
|
53
|
-
rm -f .omc/ecomode-state.json
|
|
54
|
-
rm -f ~/.claude/ecomode-state.json
|
|
55
|
-
|
|
56
|
-
echo "Ecomode cancelled. Token-efficient execution mode deactivated."
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Migration
|
|
60
|
-
|
|
61
|
-
Replace:
|
|
62
|
-
```bash
|
|
63
|
-
/oh-my-claudecode:cancel-ecomode
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
With:
|
|
67
|
-
```bash
|
|
68
|
-
/oh-my-claudecode:cancel
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
The new unified cancel is smarter and safer.
|
package/commands/cancel-ralph.md
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Cancel active Ralph (and linked ultrawork if auto-activated)
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Cancel Ralph
|
|
6
|
-
|
|
7
|
-
[RALPH CANCELLED]
|
|
8
|
-
|
|
9
|
-
Ralph has been cancelled. You MUST now deactivate the state files.
|
|
10
|
-
|
|
11
|
-
## MANDATORY ACTION
|
|
12
|
-
|
|
13
|
-
Execute this command to fully cancel ALL persistent modes:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
mkdir -p .omc ~/.claude && \
|
|
17
|
-
echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ralph"}' > .omc/ralph-state.json && \
|
|
18
|
-
echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ralph", "linked_to_ralph": false}' > .omc/ultrawork-state.json && \
|
|
19
|
-
echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ralph"}' > .omc/ralph-plan-state.json && \
|
|
20
|
-
echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ralph"}' > ~/.claude/ralph-state.json && \
|
|
21
|
-
echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ralph"}' > ~/.claude/ultrawork-state.json && \
|
|
22
|
-
rm -f .omc/ralph-verification.json
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
After running this command, you are free to stop working. The persistent mode hook will no longer force continuation.
|
|
26
|
-
|
|
27
|
-
## What Was Cancelled
|
|
28
|
-
|
|
29
|
-
- **Ralph**: Self-referential completion loop
|
|
30
|
-
- **Ultrawork**: Parallel execution mode (auto-activated with Ralph by default)
|
|
31
|
-
- **Ralph Plan**: Iterative planning loop (if active via /ralplan)
|
|
32
|
-
- **Verification State**: Any pending architect verification
|
|
33
|
-
|
|
34
|
-
## Note on Linked Modes
|
|
35
|
-
|
|
36
|
-
Since v3.0, Ralph automatically activates Ultrawork for parallel execution. When you cancel Ralph, the linked Ultrawork is also cancelled. If you started Ultrawork separately (not via Ralph), use `/oh-my-claudecode:cancel-ultrawork` to cancel it independently.
|
|
37
|
-
|
|
38
|
-
## To Start Fresh
|
|
39
|
-
|
|
40
|
-
- `/oh-my-claudecode:ralph "task"` - Start ralph with ultrawork (default)
|
|
41
|
-
- `/oh-my-claudecode:ultrawork "task"` - Start ultrawork only (standalone)
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Cancel active UltraQA cycling workflow
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Cancel UltraQA
|
|
6
|
-
|
|
7
|
-
[ULTRAQA CANCELLED]
|
|
8
|
-
|
|
9
|
-
The UltraQA cycling workflow has been cancelled. Clearing state file.
|
|
10
|
-
|
|
11
|
-
## MANDATORY ACTION
|
|
12
|
-
|
|
13
|
-
Execute this command to cancel UltraQA:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
mkdir -p .sisyphus && echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ultraqa"}' > .omc/ultraqa-state.json
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
After running this command, the QA cycling will stop.
|
|
20
|
-
|
|
21
|
-
## To Start Fresh
|
|
22
|
-
|
|
23
|
-
- `/oh-my-claudecode:ultraqa --tests` - Run until all tests pass
|
|
24
|
-
- `/oh-my-claudecode:ultraqa --build` - Run until build succeeds
|
|
25
|
-
- `/oh-my-claudecode:ultraqa --lint` - Run until no lint errors
|
|
26
|
-
- `/oh-my-claudecode:ultraqa --typecheck` - Run until no type errors
|
|
27
|
-
- `/oh-my-claudecode:ultraqa --custom "pattern"` - Run until pattern matches
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Cancel active Ultrawork mode
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Cancel Ultrawork
|
|
6
|
-
|
|
7
|
-
[ULTRAWORK CANCELLED]
|
|
8
|
-
|
|
9
|
-
The Ultrawork mode has been cancelled. Clearing state files.
|
|
10
|
-
|
|
11
|
-
## MANDATORY ACTION
|
|
12
|
-
|
|
13
|
-
**First**, check if ultrawork is linked to an active Ralph loop:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
cat .omc/ultrawork-state.json 2>/dev/null | jq -r '.linked_to_ralph // false'
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
**If linked_to_ralph is true**: Use `/oh-my-claudecode:cancel-ralph` instead to cancel both Ralph and its linked Ultrawork.
|
|
20
|
-
|
|
21
|
-
**Otherwise**, execute this command to cancel Ultrawork:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
mkdir -p .omc && \
|
|
25
|
-
echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ultrawork"}' > .omc/ultrawork-state.json && \
|
|
26
|
-
echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ultrawork"}' > ~/.claude/ultrawork-state.json
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
After running this command, ultrawork mode will be deactivated and the HUD will update.
|
|
30
|
-
|
|
31
|
-
## Note on Linked Modes
|
|
32
|
-
|
|
33
|
-
Since v3.0, Ralph automatically activates Ultrawork. If you see `linked_to_ralph: true` in the ultrawork state, it means Ultrawork was auto-activated by Ralph. In this case:
|
|
34
|
-
- Use `/oh-my-claudecode:cancel-ralph` to cancel both modes
|
|
35
|
-
- If you only cancel ultrawork, Ralph will continue but without parallel execution benefits
|
|
36
|
-
|
|
37
|
-
## To Start Fresh
|
|
38
|
-
|
|
39
|
-
- `/oh-my-claudecode:ultrawork "task"` - Start ultrawork only (standalone)
|
|
40
|
-
- `/oh-my-claudecode:ralph "task"` - Start ralph with ultrawork (default)
|