From 09fe4ca3dd81f1a999efa5786b5eade7d369aaf2 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Tue, 28 Apr 2026 19:20:56 +0900 Subject: [PATCH] fix(hyperplan): align keyword detector and command template with mandatory plan handoff Update both injection paths to reflect the 7-phase workflow with the mandatory plan agent handoff in step 7. The keyword detector now lists all 8 enumerated steps including the explicit "do not write the plan yourself" guidance, and the /hyperplan command template references the 7-phase workflow count. Generated with assistance of [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode). --- src/features/builtin-commands/templates/hyperplan.ts | 2 +- src/hooks/keyword-detector/hyperplan/default.ts | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/features/builtin-commands/templates/hyperplan.ts b/src/features/builtin-commands/templates/hyperplan.ts index b8f6e88a3..bf88bcc4e 100644 --- a/src/features/builtin-commands/templates/hyperplan.ts +++ b/src/features/builtin-commands/templates/hyperplan.ts @@ -6,7 +6,7 @@ LOAD THE HYPERPLAN SKILL IMMEDIATELY: skill(name="hyperplan") \`\`\` -After loading the skill, follow its 6-phase workflow EXACTLY using this user request: +After loading the skill, follow its 7-phase workflow EXACTLY using this user request: $ARGUMENTS diff --git a/src/hooks/keyword-detector/hyperplan/default.ts b/src/hooks/keyword-detector/hyperplan/default.ts index 792242700..4ad9de978 100644 --- a/src/hooks/keyword-detector/hyperplan/default.ts +++ b/src/hooks/keyword-detector/hyperplan/default.ts @@ -23,15 +23,17 @@ LOAD THE HYPERPLAN SKILL IMMEDIATELY: skill(name="hyperplan") \`\`\` -After loading, follow the skill's 6-phase workflow EXACTLY: +After loading, follow the skill's full workflow EXACTLY: 1. Acknowledge and capture the planning request -2. Spawn the 5-member adversarial team via team_create +2. Spawn the 5-member adversarial team via \`team_create\` 3. Round 1 — Independent analysis (each member produces findings) 4. Round 2 — Cross-attack (each member ruthlessly attacks the other 4's findings) 5. Round 3 — Defend, refine, or concede -6. Synthesize defensible insights into a work plan + clean up the team +6. Distill defensible insights into a structured bundle (Lead does NOT write the plan) +7. MANDATORY: hand the bundle to the \`plan\` agent via \`task(subagent_type="plan", ...)\` — the plan agent owns sequencing, parallelization, and verification gates +8. Present the plan agent's output verbatim with provenance line, then clean up the team -Do NOT improvise. Do NOT skip rounds. Be the lead orchestrator and let the adversarial members do the cross-critique. +Do NOT improvise. Do NOT skip rounds. Do NOT write the plan yourself in step 6 — the handoff to the plan agent in step 7 is non-negotiable. Be the lead orchestrator and let the adversarial members do the cross-critique. If team-mode is unavailable (\`team_*\` tools missing), instruct the user to set \`team_mode.enabled: true\` in \`~/.config/opencode/oh-my-opencode.jsonc\` and restart opencode. `