@hanzlaa/rcode 4.1.0 → 4.1.1

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.
@@ -4,7 +4,7 @@ Execute a phase prompt (SPRINT.md) and create the outcome summary (SUMMARY.md).
4
4
 
5
5
  <required_reading>
6
6
  Read STATE.md before any operation to load project context.
7
- Read config.json for planning behavior settings.
7
+ Read config.yaml for planning behavior settings.
8
8
 
9
9
  @.rcode/references/git-integration.md
10
10
  @.rcode/references/karpathy-guidelines.md
@@ -104,6 +104,8 @@ grep -n "type=\"checkpoint" .planning/phases/XX-name/{phase}-{plan}-SPRINT.md
104
104
 
105
105
  **Pattern A:** init_agent_tracking → capture `EXPECTED_BASE=$(git rev-parse HEAD)` → spawn Task(subagent_type="rcode-executor", model=executor_model) with prompt: execute plan at [path], autonomous, all tasks + SUMMARY + commit, follow deviation/auth rules, report: plan name, tasks, SUMMARY path, commit hash → track agent_id → wait → update tracking → report. **Include `isolation="worktree"` only if `workflow.use_worktrees` is not `false`** (read via `config-get workflow.use_worktrees`). **When using `isolation="worktree"`, include a `<worktree_branch_check>` block in the prompt** instructing the executor to run `git merge-base HEAD {EXPECTED_BASE}` and, if the result differs from `{EXPECTED_BASE}`, reset the branch base with `git reset --soft {EXPECTED_BASE}` before starting work. This corrects a known issue on Windows where `EnterWorktree` creates branches from `main` instead of the feature branch HEAD.
106
106
 
107
+ **Post-install namespace fallback:** If `Task(subagent_type="rcode-executor")` fails with "Agent type not found", the runtime has not yet registered the agent (requires IDE reload after install). Retry with `subagent_type="rihal-executor"`. If that also fails, fall back to Pattern C (execute in main context) and log `[execute-sprint] rcode-executor not available — reload IDE or executing in main context`.
108
+
107
109
  **Pattern B:** Execute segment-by-segment. Autonomous segments: spawn subagent for assigned tasks only (no SUMMARY/commit). Checkpoints: main context. After all segments: aggregate, create SUMMARY, commit. See segment_execution.
108
110
 
109
111
  **Pattern C:** Execute in main using standard flow (step name="execute").
@@ -9,7 +9,11 @@ Run an epic retrospective and produce owned action items. Delegates to the rcode
9
9
  Locate and follow the installed skill:
10
10
 
11
11
  ```bash
12
- find .rcode/skills/actions -path "*rcode-retrospective/workflow.md" 2>/dev/null | head -1
12
+ if [ -f .rcode/skills/rcode-retrospective/workflow.md ]; then
13
+ printf '%s\n' ".rcode/skills/rcode-retrospective/workflow.md"
14
+ else
15
+ find .rcode/skills/actions -path "*rcode-retrospective/workflow.md" 2>/dev/null | head -1
16
+ fi
13
17
  ```
14
18
 
15
19
  Read and follow the workflow at that path. If the path is empty:
@@ -14,8 +14,9 @@ back to the in-line implementation.
14
14
 
15
15
  <delegate_to_skill>
16
16
  Required skill: `rcode-sprint-planning`
17
- Path: `.claude/skills/rcode-sprint-planning/SKILL.md`
18
- Workflow ref: `.claude/skills/rcode-sprint-planning/workflow.md`
17
+ Path: `.rcode/skills/rcode-sprint-planning/SKILL.md`
18
+ Workflow ref: `.rcode/skills/rcode-sprint-planning/workflow.md`
19
+ Fallback path: `.claude/skills/rcode-sprint-planning/SKILL.md`
19
20
 
20
21
  Behaviour:
21
22
  1. Load the skill's `SKILL.md` and `workflow.md`. Apply every Critical
@@ -99,8 +100,9 @@ Exit.
99
100
  - Commit max 80% of average (buffer for interrupts + unknowns)
100
101
 
101
102
  **If no velocity history (first sprint):**
102
- - Ask user: "This is your first sprint. How many story points can you commit to? (Typical: 8-13 for solo dev + AI)"
103
- - Or use `--velocity` flag
103
+ - If `--velocity <N>` flag was supplied, use that value directly and skip the prompt.
104
+ - If `mode == "yolo"` (config) and no `--velocity` flag, default to 10 points and proceed.
105
+ - Otherwise ask user: "This is your first sprint. How many story points can you commit to? (Typical: 8-13 for solo dev + AI)"
104
106
 
105
107
  Store as `velocity_target`.
106
108
 
@@ -127,7 +129,9 @@ Present story table to user:
127
129
  **Capacity check:** Total committed points <= velocity_target.
128
130
  If over: "We're at {N} points vs {target} capacity. Move story #{X} to next sprint?"
129
131
 
130
- Wait for user confirmation before proceeding.
132
+ **Automation escape:** if `mode == "yolo"` or `--auto` flag was passed, skip the
133
+ confirmation; automatically move lowest-priority over-capacity stories to backlog
134
+ and proceed. Otherwise wait for user confirmation before proceeding.
131
135
 
132
136
  ## Step 4 — Create sprint
133
137