fix(framework): default the CLI to bypassPermissions so the headless loop can build/verify#226
Merged
Conversation
…loop can build/verify Every framework turn is a headless `claude -p`, which can't answer an interactive approval. The driver's library default (acceptEdits) auto-approves edits but not Bash, so installs/builds/tests were silently denied: the production-grade checklist tried `npm run build` / dev-boot, hit 'Build needs interactive approval which isn't available', failed pass 1, and the loop ground on unverifiable blockers. The framework CLI now defaults its Claude Code driver to bypassPermissions so the full loop runs unattended and the checklist verifies for real. Overridable with --permission-mode (e.g. acceptEdits for the old behavior); --dangerously-skip-permissions still wins. The ClaudeCodeDriver library default is unchanged; only the CLI opts up. Resolution extracted to claudeDriverOptions() with unit coverage. Closes #225.
This was referenced Jul 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every framework turn is a headless
claude -p, which can't answer an interactive approval. The driver's library default (acceptEdits) auto-approves edits but not Bash, so installs/builds/tests get silently denied. The production-grade checklist triednpm run build/ dev-boot, hit "Build needs interactive approval which isn't available", failed pass 1 as "could not be executed this session", and the loop ground on listing blockers it couldn't verify.Fix: the
frameworkCLI now defaults its Claude Code driver tobypassPermissions, so the full headless loop (install, build, test, dev-boot) runs unattended and the checklist verifies for real.--permission-modestill overrides (e.g.--permission-mode acceptEditsfor the old conservative behavior), and--dangerously-skip-permissionsstill wins. TheClaudeCodeDriverlibrary default is unchanged (stillacceptEdits) — only the CLI opts up.Verified:
acceptEditsdeniesnpm run buildheadless;bypassPermissionsruns it (isolatedclaude -ptest).claudeDriverOptions()helper + unit test (default → bypassPermissions;--permission-modewins;--dangerously-skip-permissionswins).Heads-up (security posture): this makes a default
frameworkrun an unattended agent that executes arbitrary Bash with no per-action approval gate — appropriate for a headless autonomous builder, but a permissive default. Flagging for your call; opt down with--permission-mode acceptEdits.Closes #225.