@mthanhlm/autodev 0.4.2 → 0.4.4

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.
@@ -6,6 +6,8 @@ Current Step: initialized
6
6
  Current Task: none
7
7
  Current Task Status: idle
8
8
  Status: active
9
+ Run Mode: checkpointed
10
+ Auto Retry Count: 0
9
11
  Next Command: /autodev
10
12
  Last Updated: [ISO timestamp]
11
13
 
@@ -6,6 +6,8 @@ Current Step: initialized
6
6
  Current Task: none
7
7
  Current Task Status: idle
8
8
  Status: active
9
+ Run Mode: checkpointed
10
+ Auto Retry Count: 0
9
11
  Next Command: /autodev
10
12
  Last Updated: [ISO timestamp]
11
13
 
@@ -7,6 +7,8 @@ Current Step: planning
7
7
  Current Task: none
8
8
  Current Task Status: idle
9
9
  Status: active
10
+ Run Mode: checkpointed
11
+ Auto Retry Count: 0
10
12
  Next Command: /autodev
11
13
  Last Updated: [ISO timestamp]
12
14
 
@@ -3,8 +3,15 @@
3
3
  Type: [feature|bugfix|refactor|research|polish]
4
4
  Status: active
5
5
 
6
+ ## Why This Track
7
+ [Why this work matters right now.]
8
+
6
9
  ## Outcome
7
- [What this track is trying to achieve.]
10
+ [What changes for the user or operator when this track is done.]
11
+
12
+ ## Success Signals
13
+ - [Observable user or operator outcome]
14
+ - [Verification or quality bar]
8
15
 
9
16
  ## Scope Boundaries
10
17
  - [What is in scope]
@@ -0,0 +1,62 @@
1
+ <purpose>
2
+ Use `/autodev-auto` as the explicit opt-in continuous entrypoint. Route automatically, keep git read-only, and continue until the track is done or a real stop condition requires the user.
3
+ </purpose>
4
+
5
+ <rules>
6
+ - `/autodev-auto` is opt-in. `/autodev` remains the safer checkpointed default.
7
+ - Never run git write commands.
8
+ - Never use background execution or waves.
9
+ - Use `--auto` when reading autodev router/init/progress payloads.
10
+ - Skip checkpoint-only review stops when the next step is mechanically clear.
11
+ - Stop immediately when `pause_reason` is one of:
12
+ - `missing_intent`
13
+ - `track_selection`
14
+ - `dependency_deadlock`
15
+ - `needs_manual_verification`
16
+ - `cleanup_confirmation`
17
+ - `auto_retry_limit`
18
+ - Review or verification blockers should stay in the same phase. Append remediation work to that phase instead of creating a replacement phase.
19
+ </rules>
20
+
21
+ <process>
22
+ 1. Run:
23
+
24
+ ```bash
25
+ AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
26
+ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" status --auto
27
+ ```
28
+
29
+ 2. Inspect `route.kind`, `route.run_mode`, `route.auto_continuable`, `route.pause_reason`, and the active track data.
30
+
31
+ 3. Handle stop conditions first:
32
+ - If `route.kind` is `init_project` and the current prompt still does not clearly define the project and first track, stop for `missing_intent`.
33
+ - If `route.kind` is `init_project` but the current prompt already gives clear project and track intent, treat that pause as resolved and continue into new-project.
34
+ - If `route.pause_reason` is `track_selection`, stop and ask the user which track to continue or whether to create a new one.
35
+ - If `route.pause_reason` is `dependency_deadlock`, stop and tell the user the current phase plan must be repaired before more auto execution can continue.
36
+ - If `route.pause_reason` is `auto_retry_limit`, stop and tell the user the same phase has already auto-replanned twice.
37
+ - If `route.pause_reason` is `cleanup_confirmation`, stop and require the user to start cleanup explicitly.
38
+
39
+ 4. Route as follows:
40
+ - `init_project`: load and perform the new-project workflow in auto mode.
41
+ - `explore_codebase`: load and perform the explore-codebase workflow in auto mode.
42
+ - `plan_phase`: load and perform the plan-phase workflow in auto mode.
43
+ - `execute_phase`: load and perform the execute-phase workflow in auto mode.
44
+ - `review_phase`: load and perform the review-phase workflow in auto mode.
45
+ - `verify_phase`: load and perform the verify-work workflow in auto mode.
46
+
47
+ 5. Do not load `review-plan` or `review-task` in auto mode. The router already skips those checkpoint-only stops when it is safe to continue.
48
+
49
+ 6. After each completed routed step, re-run the auto status command in the same turn and continue if the next route is still auto-continuable.
50
+
51
+ 7. Keep both project-level and track-level state aligned after every step:
52
+ - `Run Mode: auto`
53
+ - `Next Command: /autodev-auto`
54
+ - `Auto Retry Count: 0` after a clean plan or successful review/verification
55
+ - increment `Auto Retry Count` only when auto mode reopens the same phase after review or verification blockers
56
+
57
+ 8. End only when the track is complete or a real pause reason remains. Report:
58
+ - what step just completed
59
+ - why execution stopped or completed
60
+ - `/autodev-auto` as the default next command when more auto work remains
61
+ - `/autodev` only as the manual fallback
62
+ </process>
@@ -4,6 +4,7 @@ Use `/autodev` as the single entrypoint for the normal workflow. Route automatic
4
4
 
5
5
  <rules>
6
6
  - Prefer `/autodev` over telling the user to run a different command manually.
7
+ - `/autodev` is the checkpointed mode. Use `/autodev-auto` only when the user explicitly asked for continuous execution.
7
8
  - Manual commands remain valid escape hatches. Mention them only as shortcuts.
8
9
  - Keep the model `project -> track -> phase -> tasks`.
9
10
  - Brownfield repositories should be mapped before detailed phase planning.
@@ -37,13 +38,22 @@ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" status
37
38
 
38
39
  6. If the route is `track_select` or `track_setup`, handle it directly:
39
40
  - If tracks exist, ask whether to continue one of them or create a new track.
40
- - If no tracks exist, ask only for the current initiative name, desired outcome, and likely phase types.
41
+ - When creating or repairing a track, do a short track-discovery pass before writing files.
42
+ - Ask for:
43
+ - the initiative name
44
+ - what the user wants to ship or change in this track
45
+ - what done looks like
46
+ - scope boundaries and explicit non-goals
47
+ - dependencies or constraints only if they affect planning
48
+ - If the request is vague, summarize the understanding in a few bullets and resolve ambiguity before writing.
49
+ - If no tracks exist, do not jump straight to phase types before the track goal is clear.
41
50
  - Create or repair:
42
51
  - `.autodev/ACTIVE_TRACK`
43
52
  - `.autodev/tracks/<slug>/TRACK.md`
44
53
  - `.autodev/tracks/<slug>/REQUIREMENTS.md`
45
54
  - `.autodev/tracks/<slug>/ROADMAP.md`
46
55
  - `.autodev/tracks/<slug>/STATE.md`
56
+ - Fill the track and requirements docs from the clarified intent, not generic placeholders.
47
57
  - Use a lowercase hyphenated slug.
48
58
  - Use roadmap headings in this format:
49
59
 
@@ -60,7 +70,10 @@ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" status
60
70
 
61
71
  8. When the user chooses a new track at step 7, create it immediately and continue routing in the same turn.
62
72
 
63
- 9. Every time you finish a routed step, keep both project-level and track-level state aligned. Default the state files to `Next Command: /autodev`.
73
+ 9. Every time you finish a routed step, keep both project-level and track-level state aligned. Default the state files to:
74
+ - `Run Mode: checkpointed`
75
+ - `Auto Retry Count: 0` unless a blocked phase is being actively recovered
76
+ - `Next Command: /autodev`
64
77
 
65
78
  10. End with:
66
79
  - what step you completed
@@ -14,6 +14,7 @@ Execute an active-track phase through task-sized delegated runs, keep the main s
14
14
  - The main phase session should remain orchestration-focused whenever delegation works.
15
15
  - The main phase session may update `.autodev/` state and aggregate phase artifacts.
16
16
  - Do not run autodev subagents as background tasks.
17
+ - In `/autodev-auto`, keep executing ready tasks in the same phase until the phase is complete or a real blocker appears.
17
18
  </rules>
18
19
 
19
20
  <process>
@@ -24,6 +25,8 @@ AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
24
25
  node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init execute-phase "$ARGUMENTS"
25
26
  ```
26
27
 
28
+ If this run came from `/autodev-auto`, append `--auto` to the same command.
29
+
27
30
  2. If no phase is found or the plan file is missing, stop and direct the user to `/autodev-plan-phase`.
28
31
 
29
32
  3. Read:
@@ -42,7 +45,7 @@ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init execute-phase "$ARGUMENT
42
45
  5. Determine the next executable task:
43
46
  - prefer the first task without a summary whose dependencies are already done
44
47
  - if no executable task remains and all task summaries exist, move to phase aggregation
45
- - if `dependency_deadlock` is true, stop before execution, set both state files to `Current Step: planning`, set `Current Task: none`, set `Current Task Status: blocked_dependencies`, keep `Next Command: /autodev`, and ask the user how to repair the plan
48
+ - if `dependency_deadlock` is true, stop before execution, set both state files to `Current Step: planning`, set `Current Task: none`, set `Current Task Status: blocked_dependencies`, keep `Run Mode` aligned to the current command, keep `Next Command` aligned to the current command, and ask the user how to repair the plan
46
49
 
47
50
  6. Before running a task, show the user:
48
51
  - task id and title
@@ -78,16 +81,26 @@ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init execute-phase "$ARGUMENT
78
81
  - inspect whether the task is done or blocked
79
82
  - report the result to the user
80
83
 
81
- 10. If more tasks remain:
84
+ 10. If more tasks remain in checkpointed mode:
82
85
  - update project and track state to:
83
86
  - `Current Step: task_review`
84
87
  - `Current Task: <current-task>`
85
88
  - `Current Task Status: complete`
89
+ - `Run Mode: checkpointed`
86
90
  - `Next Command: /autodev`
87
91
  - stop after this task
88
92
  - end by telling the user `/autodev` will open the task review checkpoint before any next-task execution
89
93
 
90
- 11. If all tasks are done:
94
+ 11. If more tasks remain in auto mode:
95
+ - update project and track state to:
96
+ - `Current Step: execution`
97
+ - `Current Task: <next-ready-task>`
98
+ - `Current Task Status: ready`
99
+ - `Run Mode: auto`
100
+ - `Next Command: /autodev-auto`
101
+ - continue to the next ready task in the same run
102
+ - stop only if a new blocker appears
103
+ 12. If all tasks are done:
91
104
  - write or update `NN-SUMMARY.md` from the template with:
92
105
  - completed tasks
93
106
  - aggregate files changed
@@ -95,33 +108,37 @@ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init execute-phase "$ARGUMENT
95
108
  - remaining risks
96
109
  - next step
97
110
 
98
- 12. Update the active track `STATE.md` so it points to:
111
+ 13. Update the active track `STATE.md` so it points to:
99
112
  - `Current Phase: N`
100
113
  - `Current Phase Type: <type>`
101
- - `Current Step: task_review`
114
+ - `Current Step: task_review` in checkpointed mode, or `Current Step: review` in auto mode
102
115
  - `Current Task: <current-task>`
103
116
  - `Current Task Status: complete`
104
- - `Next Command: /autodev`
117
+ - `Run Mode: checkpointed` for `/autodev`, or `Run Mode: auto` for `/autodev-auto`
118
+ - `Next Command: /autodev` for checkpointed mode, or `/autodev-auto` for auto mode
105
119
  - current ISO timestamp
106
120
 
107
- 13. Update `.autodev/STATE.md` so it points to:
121
+ 14. Update `.autodev/STATE.md` so it points to:
108
122
  - `Active Track: <slug>`
109
- - `Current Step: task_review`
123
+ - `Current Step: task_review` in checkpointed mode, or `Current Step: review` in auto mode
110
124
  - `Current Task: <current-task>`
111
125
  - `Current Task Status: complete`
112
- - `Next Command: /autodev`
126
+ - `Run Mode: checkpointed` for `/autodev`, or `Run Mode: auto` for `/autodev-auto`
127
+ - `Next Command: /autodev` for checkpointed mode, or `/autodev-auto` for auto mode
113
128
  - current ISO timestamp
114
129
 
115
- 14. If the current task is blocked or incomplete:
130
+ 15. If the current task is blocked or incomplete:
116
131
  - say so clearly in the task summary
117
132
  - set both state files to `Current Step: planning`
118
133
  - set `Current Task: <same-task>`
119
134
  - set `Current Task Status: blocked`
120
- - keep `Next Command: /autodev`
135
+ - keep `Run Mode` aligned to the current command
136
+ - keep `Next Command` aligned to the current command
121
137
  - tell the user the phase should be revised before more execution
122
138
 
123
- 15. End with a short outcome summary and the next recommended command.
124
- - Never execute a second task in the same run.
125
- - If all tasks are now done, say `/autodev` will open the phase-review checkpoint next.
126
- - Otherwise, say `/autodev` will open the task-review checkpoint for the completed task.
139
+ 16. End with a short outcome summary and the next recommended command.
140
+ - In checkpointed mode, never execute a second task in the same run.
141
+ - In checkpointed mode, if all tasks are now done, say `/autodev` will open the phase-review checkpoint next.
142
+ - In checkpointed mode, otherwise say `/autodev` will open the task-review checkpoint for the completed task.
143
+ - In auto mode, keep going until the phase completes or a real blocker stops execution.
127
144
  </process>
@@ -3,8 +3,11 @@ Map a brownfield repository quickly and produce a usable codebase brief without
3
3
  </purpose>
4
4
 
5
5
  <rules>
6
- - Prefer a small set of foreground codebase agents, run one at a time, when agent delegation is available.
6
+ - The main `/autodev` session owns this workflow and the final synthesis.
7
+ - Specialized codebase agents are optional implementation helpers, not a separate user-facing mode.
8
+ - Prefer a small set of foreground codebase agents, run one at a time, only when agent delegation is clearly available.
7
9
  - Give each agent a disjoint write target.
10
+ - If agent delegation is unavailable or unclear, continue inline without surfacing platform confusion.
8
11
  - Use read-only investigation only. No git writes.
9
12
  - Focus on information that will improve planning and execution for the active track.
10
13
  </rules>
@@ -17,6 +20,8 @@ AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
17
20
  node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init explore-codebase
18
21
  ```
19
22
 
23
+ If this run came from `/autodev-auto`, append `--auto` to the same command.
24
+
20
25
  2. If no project exists, stop and tell the user to use `/autodev` or `/autodev-new-project`.
21
26
 
22
27
  3. Read:
@@ -26,34 +31,38 @@ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init explore-codebase
26
31
  - the active track docs if they exist
27
32
  - representative repo files needed to orient the exploration
28
33
 
29
- 4. If agent delegation is available, explicitly call the `Agent` tool for these subagents, one at a time in the foreground, with owned outputs:
34
+ 4. Do a small amount of direct repo reading first so the current session understands the workspace before deciding whether helper agents are useful.
35
+
36
+ 5. If agent delegation is clearly available, explicitly call the `Agent` tool for these subagents, one at a time in the foreground, with owned outputs:
30
37
  - `autodev-codebase-structure` for standalone installs, or `autodev:autodev-codebase-structure` in direct plugin runs, owns `.autodev/codebase/structure.md`
31
38
  - `autodev-codebase-domain` for standalone installs, or `autodev:autodev-codebase-domain` in direct plugin runs, owns `.autodev/codebase/domain.md`
32
39
  - `autodev-codebase-runtime` for standalone installs, or `autodev:autodev-codebase-runtime` in direct plugin runs, owns `.autodev/codebase/runtime.md`
33
40
  - `autodev-codebase-quality` for standalone installs, or `autodev:autodev-codebase-quality` in direct plugin runs, owns `.autodev/codebase/quality.md`
34
41
 
35
- 5. Tell each agent:
42
+ 6. Tell each agent:
36
43
  - it is not alone in the codebase
37
44
  - it must not overwrite another agent's file
38
45
  - it should stay read-only except for its owned output file
39
46
  - it should prefer concise, decision-useful findings over exhaustive listing
40
47
 
41
- 6. If agent delegation is unavailable, do not stop on the raw platform message.
48
+ 7. If agent delegation is unavailable, do not stop on the raw platform message.
42
49
  Treat messages like `specialized agents aren't available` as an environment limitation, tell the user exploration will continue in the current session, and write the four owned output files directly.
43
50
 
44
- 7. After the four agent outputs are written, or after the current-session fallback writes them, review them and synthesize `.autodev/codebase/summary.md` with:
51
+ 8. After the four agent outputs are written, or after the current-session fallback writes them, review them and synthesize `.autodev/codebase/summary.md` with:
45
52
  - architectural overview
46
53
  - major constraints
47
54
  - current track implications
48
55
  - hotspots and likely safe change points
49
56
  - the next planning risks to watch
50
57
 
51
- 8. Update `.autodev/STATE.md` and the active track `STATE.md` so they reflect:
58
+ 9. Update `.autodev/STATE.md` and the active track `STATE.md` so they reflect:
52
59
  - `Current Step: planning`
53
- - `Next Command: /autodev`
60
+ - `Run Mode: checkpointed` for `/autodev`, or `Run Mode: auto` for `/autodev-auto`
61
+ - `Auto Retry Count: 0`
62
+ - `Next Command: /autodev` for checkpointed mode, or `/autodev-auto` for auto mode
54
63
  - refreshed ISO timestamp
55
64
 
56
- 9. End with:
65
+ 10. End with:
57
66
  - the biggest structural insight
58
67
  - the biggest risk
59
68
  - `/autodev` as the next command
@@ -3,11 +3,14 @@
3
3
  Lean Claude Code workflow. No automatic commits. No branches. No worktrees. Git is read-only.
4
4
  It resolves `.autodev/` state from the repo root even when you start Claude in a nested subdirectory.
5
5
  It can auto-format edited code after writes when the repo already has a local formatter available.
6
+ Supported runtime is Claude Code with Node plus `sh`/`bash` available.
6
7
 
7
8
  ## Main Entry
8
9
 
9
10
  - `/autodev`
10
- The normal command. It routes automatically through project setup, codebase mapping, planning, plan review, execution, review, verification, and cleanup.
11
+ The default checkpointed command. It routes automatically through project setup, codebase mapping, planning, plan review, execution, review, verification, and cleanup.
12
+ - `/autodev-auto`
13
+ The explicit continuous mode. It keeps going until the track is done or a real stop condition appears, such as missing intent, dependency deadlock, retry-limit exhaustion, or manual verification.
11
14
 
12
15
  ## Manual Commands
13
16
 
@@ -5,8 +5,10 @@ Initialize `.autodev/` with useful project-level context, then create the first
5
5
  <rules>
6
6
  - Do not run `git init`, `git add`, `git commit`, `git checkout`, `git switch`, `git merge`, `git rebase`, `git worktree`, `git push`, `git pull`, `git stash`, `git reset`, `git fetch`, or `git clone`.
7
7
  - Git is read-only only.
8
- - Use concise questioning. Ask only for details that materially change requirements or roadmap.
8
+ - Use concise questioning, but do a short discovery pass before writing project state.
9
+ - Ask only for details that materially change requirements or roadmap.
9
10
  - Treat the repository as a `project`, then put the current initiative in a `track`.
11
+ - If this workflow was entered from `/autodev-auto`, continue automatically only when the current prompt is specific enough to define the project and first track without guessing.
10
12
  </rules>
11
13
 
12
14
  <process>
@@ -17,13 +19,19 @@ AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
17
19
  node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init new-project
18
20
  ```
19
21
 
22
+ If this run came from `/autodev-auto`, append `--auto` to the same command.
23
+
20
24
  2. If `.autodev/PROJECT.md` already exists, stop and tell the user to use `/autodev`.
21
25
 
22
- 3. If the current prompt does not provide enough information, ask only for:
23
- - the product or repository purpose
24
- - whether this is greenfield or brownfield if ambiguous
25
- - the first track name and desired outcome
26
- - hard constraints only if they materially affect planning
26
+ 3. Do a short discovery pass before writing project or track files.
27
+ - If the current prompt is thin, ask for:
28
+ - what the user wants to build or change right now
29
+ - who it is for or what pain it solves
30
+ - what done looks like for the first track
31
+ - scope boundaries, constraints, and explicit non-goals that materially affect planning
32
+ - whether this is greenfield or brownfield if ambiguous
33
+ - Prefer one compact batch of questions over a long drip of follow-ups.
34
+ - Reflect the understanding back in 2-5 bullets before writing files when the original request was vague.
27
35
 
28
36
  4. Read the templates from the execution context.
29
37
 
@@ -38,6 +46,7 @@ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init new-project
38
46
  - one-line summary
39
47
  - project type
40
48
  - repo or product problem
49
+ - current user goal or job to be done
41
50
  - users or operators
42
51
  - success criteria
43
52
  - constraints
@@ -52,18 +61,22 @@ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init new-project
52
61
  - `Current Task: none`
53
62
  - `Current Task Status: idle`
54
63
  - `Status: active`
55
- - `Next Command: /autodev`
64
+ - `Run Mode: checkpointed` for `/autodev`, or `Run Mode: auto` for `/autodev-auto`
65
+ - `Auto Retry Count: 0`
66
+ - `Next Command: /autodev` for checkpointed mode, or `/autodev-auto` for auto mode
56
67
  - current ISO timestamp
57
68
 
58
69
  9. Create `.autodev/tracks/<slug>/TRACK.md` with:
59
70
  - track name
60
71
  - type or workstream shape
61
- - desired outcome
62
- - scope boundaries
72
+ - why this track exists now
73
+ - desired outcome and what done looks like
74
+ - scope boundaries and explicit non-goals
63
75
  - known dependencies
64
76
  - brownfield notes if this is an existing repo
65
77
 
66
78
  10. Write `.autodev/tracks/<slug>/REQUIREMENTS.md` with clear must-have requirements and acceptance bullets for the track only.
79
+ Tie the acceptance bullets to the discovered outcome instead of placeholder implementation tasks.
67
80
 
68
81
  11. Write `.autodev/tracks/<slug>/ROADMAP.md` with 2-8 phases using this exact heading format:
69
82
 
@@ -84,10 +97,12 @@ Each phase must include:
84
97
  - `Current Task: none`
85
98
  - `Current Task Status: idle`
86
99
  - `Status: active`
87
- - `Next Command: /autodev`
100
+ - `Run Mode: checkpointed` for `/autodev`, or `Run Mode: auto` for `/autodev-auto`
101
+ - `Auto Retry Count: 0`
102
+ - `Next Command: /autodev` for checkpointed mode, or `/autodev-auto` for auto mode
88
103
  - current ISO timestamp
89
104
 
90
105
  13. If the project is brownfield, do not fake a codebase map. Continue into codebase exploration inside `/autodev` by default. Mention `/autodev-explore-codebase` only as a manual shortcut. Otherwise, the next step is planning phase 1 through `/autodev`.
91
106
 
92
- 14. End with a short summary and direct the user to `/autodev`. Mention the manual shortcut only if useful.
107
+ 14. End with a short summary of what the user wants to build or change and direct the user to `/autodev`. Mention the manual shortcut only if useful.
93
108
  </process>
@@ -10,6 +10,7 @@ Create one practical phase plan for the active track, then break it into reviewa
10
10
  - Never include git write commands in the plan.
11
11
  - Do not use waves by default.
12
12
  - When revising a blocked phase, preserve the same phase, the same phase goal, and all completed task history.
13
+ - In `/autodev-auto`, a freshly written or repaired plan should continue automatically unless the plan itself still depends on unresolved user intent.
13
14
  </rules>
14
15
 
15
16
  <process>
@@ -20,6 +21,8 @@ AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
20
21
  node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init plan-phase "$ARGUMENTS"
21
22
  ```
22
23
 
24
+ If this run came from `/autodev-auto`, append `--auto` to the same command.
25
+
23
26
  2. If there is no active track or no roadmap for it, stop and tell the user to run `/autodev`.
24
27
 
25
28
  3. If no phase is found, tell the user all phases already have plans and show `/autodev-progress`.
@@ -105,7 +108,9 @@ Each task file must include:
105
108
  - `Current Step: plan_review`
106
109
  - `Current Task: <first-pending-task>` if tasks exist, otherwise `none`
107
110
  - `Current Task Status: pending_review`
108
- - `Next Command: /autodev`
111
+ - `Run Mode: checkpointed` for `/autodev`, or `Run Mode: auto` for `/autodev-auto`
112
+ - `Auto Retry Count: 0`
113
+ - `Next Command: /autodev` for checkpointed mode, or `/autodev-auto` for auto mode
109
114
  - current ISO timestamp
110
115
 
111
116
  12. Update `.autodev/STATE.md` so it points to:
@@ -113,7 +118,9 @@ Each task file must include:
113
118
  - `Current Step: plan_review`
114
119
  - `Current Task: <first-pending-task>` if tasks exist, otherwise `none`
115
120
  - `Current Task Status: pending_review`
116
- - `Next Command: /autodev`
121
+ - `Run Mode: checkpointed` for `/autodev`, or `Run Mode: auto` for `/autodev-auto`
122
+ - `Auto Retry Count: 0`
123
+ - `Next Command: /autodev` for checkpointed mode, or `/autodev-auto` for auto mode
117
124
  - current ISO timestamp
118
125
 
119
126
  13. End with a short summary and stop for review.
@@ -121,6 +128,7 @@ Each task file must include:
121
128
  - the plan and task files are ready for review
122
129
  - completed task history from the phase was preserved
123
130
  - any blocker remediation was added as appended task work inside the same phase
124
- - `/autodev` will open the review checkpoint before any execution starts
131
+ - in checkpointed mode, `/autodev` will open the review checkpoint before any execution starts
132
+ - in auto mode, `/autodev-auto` should continue directly into execution unless a real ambiguity remains
125
133
  - `/autodev-execute-phase N` is only the optional manual bypass after review
126
134
  </process>
@@ -7,6 +7,7 @@ Run the automatic review bundle after execution so the user sees code quality, s
7
7
  - Review findings should be concrete and evidence-based.
8
8
  - Do not edit repository code in this step unless the user explicitly asks for fixes.
9
9
  - Write one consolidated review artifact for the phase.
10
+ - In `/autodev-auto`, blockers should reopen the same phase automatically unless the auto retry limit has already been reached.
10
11
  </rules>
11
12
 
12
13
  <process>
@@ -17,6 +18,8 @@ AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
17
18
  node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init review-phase "$ARGUMENTS"
18
19
  ```
19
20
 
21
+ If this run came from `/autodev-auto`, append `--auto` to the same command.
22
+
20
23
  2. If no executed phase is found, stop and direct the user to `/autodev-execute-phase`.
21
24
 
22
25
  3. Read:
@@ -57,14 +60,18 @@ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init review-phase "$ARGUMENTS
57
60
  - set project and track state back to `Current Step: planning`
58
61
  - set `Current Task: none`
59
62
  - set `Current Task Status: blocked_review`
60
- - keep `Next Command: /autodev`
63
+ - keep `Run Mode` aligned to the current command
64
+ - if this is `/autodev-auto`, increment `Auto Retry Count` by `1`
65
+ - keep `Next Command` aligned to the current command
61
66
  - make the recommendation point back to revising the same phase with appended blocker-fix tasks
62
67
  - do not recommend creating a new phase for ordinary review blockers
63
68
  - preserve completed task history and phase goal
64
69
 
65
70
  9. If blockers are not found:
66
71
  - set project and track state to `Current Step: verification`
67
- - keep `Next Command: /autodev`
72
+ - reset `Auto Retry Count` to `0`
73
+ - keep `Run Mode` aligned to the current command
74
+ - keep `Next Command` aligned to the current command
68
75
 
69
76
  10. End with a short review result:
70
77
  - ready for verification, or
@@ -7,6 +7,7 @@ Run lightweight user acceptance testing after review and keep the next action ob
7
7
  - Keep the interaction concise and test-oriented.
8
8
  - Do not auto-generate a new plan unless a real gap appears.
9
9
  - Verification failures should normally reopen the same phase with appended remediation tasks, not create a new phase.
10
+ - In `/autodev-auto`, prefer fully automatable verification first and stop only when verification truly requires human observation or judgment.
10
11
  </rules>
11
12
 
12
13
  <process>
@@ -17,6 +18,8 @@ AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
17
18
  node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init verify-work "$ARGUMENTS"
18
19
  ```
19
20
 
21
+ If this run came from `/autodev-auto`, append `--auto` to the same command.
22
+
20
23
  2. If no reviewed phase is found, stop and direct the user to `/autodev-review-phase`.
21
24
 
22
25
  3. Read:
@@ -27,7 +30,10 @@ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init verify-work "$ARGUMENTS"
27
30
  - `NN-REVIEW.md`
28
31
  - relevant code or UI files
29
32
 
30
- 4. Present a short manual verification flow. Keep it one check at a time when user input is needed.
33
+ 4. Choose the verification lane:
34
+ - If the phase can be verified with concrete commands or deterministic checks that do not require human observation, run those checks directly.
35
+ - If the phase still depends on visual inspection, human judgment, credentials the assistant does not have, or missing reproducible checks, stop and treat it as `needs_manual_verification`.
36
+ - When user input is needed, present a short manual verification flow one check at a time.
31
37
 
32
38
  5. Write or update `NN-UAT.md` from the template with:
33
39
  - test cases
@@ -47,11 +53,19 @@ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init verify-work "$ARGUMENTS"
47
53
  - if verification failed, keep the same phase active and set `Current Step: planning`
48
54
  - when moving to another phase, set `Current Task: none` and `Current Task Status: idle`
49
55
  - when verification failed, set `Current Task: none` and `Current Task Status: blocked_verification`
50
- - always set `Next Command: /autodev`
56
+ - keep `Run Mode` aligned to the current command
57
+ - reset `Auto Retry Count` to `0` on success, or increment it by `1` for `/autodev-auto` verification failures
58
+ - always set `Next Command` aligned to the current command
51
59
  - always refresh the ISO timestamp
52
60
  - when verification failed, the next planning pass should preserve completed tasks and append remediation tasks to the same phase
53
61
 
54
62
  8. Update `.autodev/STATE.md` with the matching project-level status and refreshed timestamp.
55
63
 
56
- 9. End with the verification result and the next command. Mention the manual shortcut only if it helps.
64
+ 9. In `/autodev-auto`, if verification cannot be completed without human judgment:
65
+ - stop instead of guessing
66
+ - keep the current phase active
67
+ - tell the user this pause reason is `needs_manual_verification`
68
+ - recommend `/autodev` for manual verification or `/autodev-auto` again after the missing checks are made automatable
69
+
70
+ 10. End with the verification result and the next command. Mention the manual shortcut only if it helps.
57
71
  </process>