@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.
- package/cli/index.js +16 -0
- package/cli/install.js +1 -0
- package/cli/workflow.js +97 -0
- package/dist/rcode.js +179 -161
- package/package.json +1 -1
- package/rcode/bin/lib/config.cjs +3 -2
- package/rcode/bin/rcode-tools.cjs +8 -3
- package/rcode/skills/actions/3-solutioning/rcode-create-architecture/steps/step-01-init.md +1 -1
- package/rcode/skills/actions/3-solutioning/rcode-create-architecture/workflow.md +13 -1
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/SKILL.md +5 -1
- package/rcode/skills/actions/4-implementation/rcode-retrospective/workflow.md +61 -246
- package/rcode/workflows/audit.md +3 -0
- package/rcode/workflows/brainstorm.md +1 -1
- package/rcode/workflows/council.md +8 -1
- package/rcode/workflows/create-architecture.md +5 -1
- package/rcode/workflows/create-prd.md +5 -1
- package/rcode/workflows/dashboard.md +5 -2
- package/rcode/workflows/discuss-phase.md +3 -15
- package/rcode/workflows/execute-sprint.md +3 -1
- package/rcode/workflows/retrospective.md +5 -1
- package/rcode/workflows/sprint-planning.md +9 -5
|
@@ -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.
|
|
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
|
-
|
|
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: `.
|
|
18
|
-
Workflow ref: `.
|
|
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
|
-
-
|
|
103
|
-
-
|
|
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
|
-
|
|
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
|
|