Skip to content

actions: switch Claude harnesses to bypassPermissions - #677

Merged
max-sixty merged 4 commits into
mainfrom
bypass-permissions
Jun 10, 2026
Merged

max-sixty merged 4 commits into
mainfrom
bypass-permissions

Conversation

@max-sixty

@max-sixty max-sixty commented Jun 10, 2026 •

Copy link
Copy Markdown
Owner

Both Claude harnesses ran with --permission-mode dontAsk, which (like every mode except bypass) hard-denies writes to Claude Code's protected paths: .devcontainer/, .github/, .husky/, .cargo/, dotfiles. That blocked the bot from autonomous fixes touching those files. This switches both the Agent SDK harness (action.yaml) and the PTY interactive harness (interactive/action.yaml) to bypassPermissions.

This is acceptable here because the run is sandboxed in an ephemeral, PR-gated checkout: anything the bot writes only lands through a reviewed PR. The interactive harness previously avoided bypass mode because of its one-time "I accept the risks" disclaimer (#613). Smoke runs on this branch showed that neither CLAUDE_CODE_REMOTE=1 nor the legacy bypassPermissionsModeAccepted key in ~/.claude.json suppresses it (the latter is consumed only by a one-time settings migration). The dialog check reads skipDangerousModePermissionPrompt from any settings layer, so the action now sets that key in the .claude/settings.local.json it already writes. Verified by an interactive-smoke run on the merged head.

A TODO in both files tracks a more hawkish follow-up (auto-mode classifier, or scoped overrides of the specific protected paths) that would keep the write capability without blanket bypass.

This was written by Claude Code on behalf of max

max-sixty and others added 2 commits June 9, 2026 20:25
Every other permission mode hard-denies writes to Claude Code's
protected paths (.devcontainer/, .github/, .husky/, .cargo/, dotfiles),
which blocked the bot from autonomous fixes touching those files.
Switch both the Agent SDK harness and the PTY-supervised interactive
harness from dontAsk to bypassPermissions.

This is safe in CI: the checkout is ephemeral and sandboxed, and
changes only land via reviewed PRs. The interactive harness previously
avoided bypass mode because of its one-time "I accept the risks"
disclaimer (#613); CLAUDE_CODE_REMOTE=1 (#615) suppresses that, so the
disclaimer no longer forces dontAsk.

Co-Authored-By: Claude Fable 5 <[email protected]>
The smoke run disproved the assumption that CLAUDE_CODE_REMOTE=1
suppresses the one-time bypass-mode "I accept the risks" disclaimer:
the session hung at the prompt until the supervisor timeout. Accept it
ahead of time instead by seeding bypassPermissionsModeAccepted=true in
~/.claude.json alongside the other onboarding keys, and correct the
comments that claimed CLAUDE_CODE_REMOTE covered it.

Co-Authored-By: Claude Fable 5 <[email protected]>
max-sixty and others added 2 commits June 9, 2026 21:57
…Prompt

The second smoke run still hung at the disclaimer: the binary shows
bypassPermissionsModeAccepted in ~/.claude.json is a legacy key consumed
only by a one-time migration, not by the dialog check. The check (and
the dialog's own accept button) uses skipDangerousModePermissionPrompt,
read from any settings layer. Set it in the settings.local.json the
action already writes, and drop the legacy-key seed.

Co-Authored-By: Claude Fable 5 <[email protected]>
@max-sixty
max-sixty merged commit 330a3ba into main Jun 10, 2026
8 checks passed
@max-sixty
max-sixty deleted the bypass-permissions branch June 10, 2026 05:07
@max-sixty max-sixty mentioned this pull request Jun 11, 2026
max-sixty added a commit that referenced this pull request Jun 11, 2026
Bumps the generator version to 0.1.4, syncs the lockfile, and adds the
0.1.4 CHANGELOG section (published as the GitHub Release notes on tag
push).

Notable changes since 0.1.3:

- Claude harnesses switch to `bypassPermissions` (#677)
- GitHub Releases publish from `CHANGELOG.md` on tag push (#678) — this
release is the first live exercise of that workflow
- Interactive sandbox receives GitHub Actions context env vars (#664)
- install-tend bot-token step restructured around scope-audit
remediation (#680)
- Review skill checks the rollup before APPROVE (#667);
running-in-ci/triage/ci-fix skill refinements (#661, #666, #669, #670,
#671)

> _This was written by Claude Code on behalf of max_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5 <[email protected]>
max-sixty added a commit that referenced this pull request Jun 11, 2026
Regenerates the eight `tend-*.yaml` workflows with `uvx [email protected] init`
— a pure ref bump, `@0.1.3` → `@0.1.4`, in each workflow plus its
generated-by header. Also bumps the hand-maintained
`review-reviewers.yaml`, which `tend init` doesn't regenerate.

Until this merges, tend's deployed workflows run the 0.1.3 harness;
notable in 0.1.4 is the switch to `bypassPermissions` (#677) and the
GitHub Actions context env vars in the interactive sandbox (#664).

> _This was written by Claude Code on behalf of max_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants