You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Use the `DO_WORKTREE_DIR` environment variable to direct `codeagent-wrapper` develop agent into the worktree. **Do NOT pass `--worktree` to subsequent calls** — that creates a new worktree each time.
6.**Defer worktree decision until Phase 4.**Only ask about worktree mode right before implementation. If enabled, prefix develop agent calls with `DO_WORKTREE_DIR=<path>`. Never pass `--worktree`after initialization.
73
67
74
68
## Agents
75
69
@@ -78,7 +72,7 @@ Read-only agents (code-explorer, code-architect, code-reviewer) do NOT need `--w
|`code-reviewer`| Review for bugs, simplicity, conventions | No (read-only) |
81
-
|`develop`| Implement code, run tests |**Yes**(if worktree enabled)|
75
+
|`develop`| Implement code, run tests |**Yes**— use `DO_WORKTREE_DIR` env prefix|
82
76
83
77
## Issue Severity Definitions
84
78
@@ -175,12 +169,39 @@ EOF
175
169
176
170
**Goal:** Build feature and review in one phase.
177
171
178
-
1. Invoke `develop` to implement. For full-stack projects, split into backend/frontend tasks with per-task `skills:` injection. Use `--parallel` when tasks can be split; use single agent when the change is small or single-domain.
172
+
**Step 1: Decide on worktree mode (ONLY NOW)**
179
173
180
-
**Single-domain example** (add `--worktree` if enabled):
174
+
Use AskUserQuestion to ask:
175
+
176
+
```
177
+
Develop in a separate worktree? (Isolates changes from main branch)
# Save the worktree path from output for DO_WORKTREE_DIR
186
+
```
187
+
188
+
**Step 2: Invoke develop agent**
189
+
190
+
For full-stack projects, split into backend/frontend tasks with per-task `skills:` injection. Use `--parallel` when tasks can be split; use single agent when the change is small or single-domain.
191
+
192
+
**Single-domain example** (prefix with `DO_WORKTREE_DIR` if worktree enabled):
0 commit comments