Skip to content

Commit 2ac4321

Browse files
jwaldripclaude
andcommitted
refactor: remove all mode references from hooks, skills, and specs
- Remove mode reading from inject-context.sh and subagent-context.sh - Remove "Modes of Operation" section from ai-dlc-fundamentals - Delete ai-dlc-mode-selection skill entirely - Skip integrator for single-unit intents (reviewer already validated) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 594e379 commit 2ac4321

File tree

6 files changed

+18
-365
lines changed

6 files changed

+18
-365
lines changed

plugin/hooks/inject-context.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -318,19 +318,9 @@ if [ "$STATUS" = "complete" ]; then
318318
exit 0
319319
fi
320320

321-
# Read mode from intent.md frontmatter (mode lives on the intent, not hats)
322-
INTENT_SLUG_EARLY="${KEEP_VALUES[intent-slug]:-}"
323-
MODE=""
324-
if [ -n "$INTENT_SLUG_EARLY" ] && [ -f ".ai-dlc/${INTENT_SLUG_EARLY}/intent.md" ]; then
325-
MODE=$(han parse yaml mode -r --default OHOTL < ".ai-dlc/${INTENT_SLUG_EARLY}/intent.md" 2>/dev/null || echo "OHOTL")
326-
else
327-
# Try parsing mode from iteration.json if intent.md not available yet
328-
MODE=$(echo "$ITERATION_JSON" | han parse json mode -r --default OHOTL 2>/dev/null || echo "OHOTL")
329-
fi
330-
331321
echo "## AI-DLC Context"
332322
echo ""
333-
echo "**Iteration:** $ITERATION | **Hat:** $HAT | **Mode:** $MODE | **Workflow:** $WORKFLOW_NAME ($WORKFLOW_HATS_STR)"
323+
echo "**Iteration:** $ITERATION | **Hat:** $HAT | **Workflow:** $WORKFLOW_NAME ($WORKFLOW_HATS_STR)"
334324
echo ""
335325

336326
# Inject provider context

plugin/hooks/subagent-context.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,11 @@ if [ -z "${CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS:-}" ]; then
176176
if [ -n "$HAT_FILE" ] && [ -f "$HAT_FILE" ]; then
177177
# Parse frontmatter
178178
NAME=$(han parse yaml name -r --default "" < "$HAT_FILE" 2>/dev/null || echo "")
179-
MODE=$(han parse yaml mode -r --default "" < "$HAT_FILE" 2>/dev/null || echo "")
180179

181180
# Get content after frontmatter
182181
INSTRUCTIONS=$(cat "$HAT_FILE" | sed '1,/^---$/d' | sed '1,/^---$/d')
183182

184-
echo "**${NAME:-$HAT}** (Mode: ${MODE:-HITL})"
183+
echo "**${NAME:-$HAT}**"
185184
echo ""
186185
if [ -n "$INSTRUCTIONS" ]; then
187186
echo "$INSTRUCTIONS"
@@ -258,7 +257,7 @@ echo "3. **If on wrong branch** - Switch to correct branch and continue"
258257
echo "4. **If tests fail** - Fix and retry, don't give up"
259258
echo "5. **Only declare blocked** after 3+ genuine rescue attempts"
260259
echo ""
261-
echo "### Communication (HITL)"
260+
echo "### Communication"
262261
echo ""
263262
echo "**Notify users of important events:**"
264263
echo ""

plugin/skills/advance/SKILL.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ READY_COUNT=$(echo "$DAG_SUMMARY" | han parse json readyCount -r)
111111

112112
```javascript
113113
if (dagSummary.allComplete) {
114-
// ALL UNITS COMPLETE - Check if integrator has run
115-
if (!state.integratorComplete) {
114+
// ALL UNITS COMPLETE - Check if integrator should run
115+
// Skip integrator for single-unit intents (reviewer already validated it)
116+
const unitCount = dagSummary.totalCount;
117+
if (unitCount > 1 && !state.integratorComplete) {
116118
// Spawn integrator on the intent branch
117119
// See Step 2e below
118120
return spawnIntegrator();

plugin/skills/ai-dlc-fundamentals/SKILL.md

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ Elaboration (`/elaborate`) is a separate pre-construction phase. The constructio
150150
planner → builder → reviewer
151151
```
152152

153-
| Hat | Focus | Mode |
154-
|-----|-------|------|
155-
| Planner | Plan this iteration | HITL |
156-
| Builder | Implement to spec | OHOTL |
157-
| Reviewer | Verify quality | HITL |
153+
| Hat | Focus |
154+
|-----|-------|
155+
| Planner | Plan this iteration |
156+
| Builder | Implement to spec |
157+
| Reviewer | Verify quality |
158158

159159
### Hat Transitions
160160

@@ -186,31 +186,6 @@ Investigate the problem space before implementing.
186186
Gather context, explore options, document findings.
187187
```
188188

189-
## Modes of Operation
190-
191-
### HITL - Human In The Loop
192-
193-
Human actively participates in every decision:
194-
- Elaboration phase (defining what to build)
195-
- Review phase (approving implementation)
196-
- Course corrections (when AI goes off track)
197-
198-
### OHOTL - Occasional Human Over The Loop
199-
200-
Human sets direction, AI operates autonomously:
201-
- Builder phase with clear criteria
202-
- Human intervenes only when stuck or for review
203-
- Backpressure enforces quality automatically
204-
205-
### AHOTL - Autonomous Human Over The Loop
206-
207-
AI operates with minimal human involvement:
208-
- Multiple iterations without human input
209-
- Human reviews at end or on exception
210-
- Requires very clear criteria and robust backpressure
211-
212-
*For detailed mode selection guidance, see the `ai-dlc-mode-selection` skill.*
213-
214189
## State Management
215190

216191
### Scoped Storage

0 commit comments

Comments
 (0)