Repository navigation
actions: switch Claude harnesses to bypassPermissions - #677
Merged
Merged
Conversation
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]>
tend-agent
approved these changes
Jun 10, 2026
…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]>
tend-agent
approved these changes
Jun 10, 2026
Merged
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]>
This was referenced Jun 12, 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.
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) tobypassPermissions.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=1nor the legacybypassPermissionsModeAcceptedkey in~/.claude.jsonsuppresses it (the latter is consumed only by a one-time settings migration). The dialog check readsskipDangerousModePermissionPromptfrom any settings layer, so the action now sets that key in the.claude/settings.local.jsonit 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.