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
{{ message }}
Repository navigation
Commit 2ee2f7f
Browse filesBrowse the repository at this point in the historyBrowse files
Stop restricting plan-run tools; drop the dontAsk default
Plan runs were limited to --tools Read,Grep,Glob under a dontAsk default,
which left them without a shell. Remove the hardcoded plan tool list and
the runner's --tools option so plan runs get the CLI's full tool set, and
default claude.plan_permission_mode to empty (no --permission-mode flag)
so the operator sets it in config.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4.**Plan** (skipped once approved) — `claude -p --permission-mode <claude.plan_permission_mode>
262
262
--max-turns 40` (`claude.plan_permission_mode`, `claude.plan_max_turns`) is handed the issue and told to produce a plan, not a change. Its final message is saved to SQLite
263
263
and posted as an issue comment naming the files and approach it would take. The issue gets the
264
264
`agent-planned` label and the run ends there — no commit, no verify, no push, no PR. Any human
--tools <Read,Grep,Glob on plan runs; omitted otherwise> \
342
+
--permission-mode <claude.plan_permission_mode | claude.permission_mode; omitted when empty> \
344
343
--max-turns <claude.plan_max_turns | claude.max_turns, omitted when 0> \
345
344
--append-system-prompt <one of the prompts above> \
346
345
--add-dir <the worktree>
@@ -373,9 +372,8 @@ Plan runs are deliberately **not** run in the CLI's own plan mode (`--permission
373
372
mode layers its own workflow on top of the harness's prompt — fan out into parallel Explore
374
373
subagents, then a Plan subagent, then write a plan file and call `ExitPlanMode` — and every one of
375
374
those subagents starts cold and re-reads the repository, so a single plan cost several full
376
-
explorations. Instead a plan run gets `--tools Read,Grep,Glob` (hardcoded as `planTools` in
377
-
`internal/orchestrator/loop.go`): no `Agent` tool, so no subagents, and no `Edit`/`Write`/`Bash`,
378
-
so it is read-only whatever `claude.plan_permission_mode` says. `claude.plan_max_turns` (default
375
+
explorations. A plan run gets the CLI's full tool set, the same as an implement run; what it may
376
+
do without asking is governed by `claude.plan_permission_mode`. `claude.plan_max_turns` (default
379
377
40) caps how long it may explore;`claude.max_turns` (default 0, uncapped) does the same for
380
378
implement and PR-comment runs. A run that hits its cap fails like any other failed run — failure
381
379
comment, back-off, one rung down the ladder — and the failure names the CLI's `error_max_turns`.
@@ -466,7 +464,7 @@ This repository's own `config.json` is also **compiled into the binary** at buil
466
464
"claude": {
467
465
"binary": "claude",
468
466
"permission_mode": "bypassPermissions",
469
-
"plan_permission_mode": "dontAsk",
467
+
"plan_permission_mode": "",
470
468
"max_turns": 0,
471
469
"plan_max_turns": 40,
472
470
"extra_args": [],
@@ -529,7 +527,7 @@ This repository's own `config.json` is also **compiled into the binary** at buil
529
527
|`run.verify_timeout`| wall-clock limit for the testcommand|
530
528
|`claude.binary`| executable name/path for the Claude Code CLI |
531
529
|`claude.permission_mode`| passed through as `--permission-mode`for the implement run |
532
-
| `claude.plan_permission_mode` | passed through as `--permission-mode` for the read-only planning run; default `dontAsk` — don't use `plan`, which spawns subagents (see [How Claude Code is invoked](#how-claude-code-is-invoked)) |
530
+
|`claude.plan_permission_mode`| passed through as `--permission-mode`for the planning run; default empty (no flag, the CLI's own default) — don't use `plan`, which spawns subagents (see [How Claude Code is invoked](#how-claude-code-is-invoked)) |
533
531
|`claude.max_turns`|`--max-turns`for implement and PR-comment runs;`0` (the default) means no cap |
534
532
|`claude.plan_max_turns`|`--max-turns`for planning runs; default `40`, `0` means no cap |
535
533
|`claude.usage_poll_interval` / `usage_backoff`| advisory OAuth usage poll cadence and 429 backoff;**must be ≥ 1m**|
0 commit comments