merge: sync Kilo runtime branch with latest main

This commit is contained in:
Alex Alecu
2026-04-03 12:47:24 +03:00
43 changed files with 3868 additions and 407 deletions

View File

@@ -1,7 +1,7 @@
---
name: gsd:autonomous
description: Run all remaining phases autonomously — discuss→plan→execute per phase
argument-hint: "[--from N]"
argument-hint: "[--from N] [--only N] [--interactive]"
allowed-tools:
- Read
- Write
@@ -30,7 +30,10 @@ Uses ROADMAP.md phase discovery and Skill() flat invocations for each phase comm
</execution_context>
<context>
Optional flag: `--from N` — start from phase N instead of the first incomplete phase.
Optional flags:
- `--from N` — start from phase N instead of the first incomplete phase.
- `--only N` — execute only phase N (single-phase mode).
- `--interactive` — run discuss inline with questions (not auto-answered), then dispatch plan→execute as background agents. Keeps the main context lean while preserving user input on decisions.
Project context, phase list, and state are resolved inside the workflow using init commands (`gsd-tools.cjs init milestone-op`, `gsd-tools.cjs roadmap analyze`). No upfront context loading needed.
</context>

View File

@@ -1,7 +1,7 @@
---
name: gsd:debug
description: Systematic debugging with persistent state across context resets
argument-hint: [issue description]
argument-hint: [--diagnose] [issue description]
allowed-tools:
- Read
- Bash
@@ -15,6 +15,9 @@ Debug issues using scientific method with subagent isolation.
**Orchestrator role:** Gather symptoms, spawn gsd-debugger agent, handle checkpoints, spawn continuations.
**Why subagent:** Investigation burns context fast (reading files, forming hypotheses, testing). Fresh 200k context per investigation. Main context stays lean for user interaction.
**Flags:**
- `--diagnose` — Diagnose only. Find root cause without applying a fix. Returns a structured Root Cause Report. Use when you want to validate the diagnosis before committing to a fix.
</objective>
<available_agent_types>
@@ -25,6 +28,10 @@ Valid GSD subagent types (use exact names — do not fall back to 'general-purpo
<context>
User's issue: $ARGUMENTS
Parse flags from $ARGUMENTS:
- If `--diagnose` is present, set `diagnose_only=true` and remove the flag from the issue description.
- Otherwise, `diagnose_only=false`.
Check for active sessions:
```bash
ls .planning/debug/*.md 2>/dev/null | grep -v resolved | head -5
@@ -87,7 +94,7 @@ timeline: {timeline}
<mode>
symptoms_prefilled: true
goal: find_and_fix
goal: {if diagnose_only: "find_root_cause_only", else: "find_and_fix"}
</mode>
<debug_file>
@@ -106,12 +113,18 @@ Task(
## 4. Handle Agent Return
**If `## ROOT CAUSE FOUND`:**
- Display root cause and evidence summary
**If `## ROOT CAUSE FOUND` (diagnose-only mode):**
- Display root cause, confidence level, files involved, and suggested fix strategies
- Offer options:
- "Fix now" - spawn fix subagent
- "Plan fix" - suggest /gsd:plan-phase --gaps
- "Manual fix" - done
- "Fix now" — spawn a continuation agent with `goal: find_and_fix` to apply the fix (see step 5)
- "Plan fix" — suggest `/gsd:plan-phase --gaps`
- "Manual fix" — done
**If `## DEBUG COMPLETE` (find_and_fix mode):**
- Display root cause and fix summary
- Offer options:
- "Plan fix" — suggest `/gsd:plan-phase --gaps` if further work needed
- "Done" — mark resolved
**If `## CHECKPOINT REACHED`:**
- Present checkpoint details to user
@@ -128,9 +141,9 @@ Task(
- "Manual investigation" - done
- "Add more context" - gather more symptoms, spawn again
## 5. Spawn Continuation Agent (After Checkpoint)
## 5. Spawn Continuation Agent (After Checkpoint or "Fix now")
When user responds to checkpoint, spawn fresh agent:
When user responds to checkpoint OR selects "Fix now" from diagnose-only results, spawn fresh agent:
```markdown
<objective>

View File

@@ -1,7 +1,7 @@
---
name: gsd:review
description: Request cross-AI peer review of phase plans from external AI CLIs
argument-hint: "--phase N [--gemini] [--claude] [--codex] [--all]"
argument-hint: "--phase N [--gemini] [--claude] [--codex] [--opencode] [--all]"
allowed-tools:
- Read
- Write
@@ -11,7 +11,7 @@ allowed-tools:
---
<objective>
Invoke external AI CLIs (Gemini, Claude, Codex) to independently review phase plans.
Invoke external AI CLIs (Gemini, Claude, Codex, OpenCode) to independently review phase plans.
Produces a structured REVIEWS.md with per-reviewer feedback that can be fed back into
planning via /gsd:plan-phase --reviews.
@@ -29,6 +29,7 @@ Phase number: extracted from $ARGUMENTS (required)
- `--gemini` — Include Gemini CLI review
- `--claude` — Include Claude CLI review (uses separate session)
- `--codex` — Include Codex CLI review
- `--opencode` — Include OpenCode review (uses model from user's OpenCode config)
- `--all` — Include all available CLIs
</context>