Let the Operator run gc and bd without asking #6

Merged
mikluko merged 1 commit from worker/gascitypacks-2fl into main 2026-11-11 13:06:39 +00:00
Contributor

Allows Bash(gc *) and Bash(bd *) in the Operator's Claude settings overlay and adds the CHANGELOG entry, as the bead asks. No wider Bash allowance, and agent.toml is untouched.

Inert while the Operator runs in bypass-permissions mode. The bead was filed at 12:15Z, while the Operator ran in auto-edit. #3 (merged 12:46Z) then moved it to bypass-permissions, which skips every prompt, so these rules change nothing until the Operator goes back to a mode that prompts. I built the bead as written instead of reverting #3; if you consider it superseded, close this pull request. The CHANGELOG entry says "outside bypass-permissions mode" so it claims nothing the Operator does not do today.

Checked: settings.json parses, its hooks block is unchanged, and both rules match the permissionRule pattern of the published Claude Code settings schema; gc lint ., go vet and go test in forgejo, and tests/worktree-setup.sh pass. Not exercised: the rules' effect in a session under a prompting mode. Bash(gc *) covers every gc subcommand, as the bead specifies.

Bead: gascitypacks-2fl

Allows `Bash(gc *)` and `Bash(bd *)` in the Operator's Claude settings overlay and adds the CHANGELOG entry, as the bead asks. No wider Bash allowance, and `agent.toml` is untouched. **Inert while the Operator runs in bypass-permissions mode.** The bead was filed at 12:15Z, while the Operator ran in auto-edit. #3 (merged 12:46Z) then moved it to bypass-permissions, which skips every prompt, so these rules change nothing until the Operator goes back to a mode that prompts. I built the bead as written instead of reverting #3; if you consider it superseded, close this pull request. The CHANGELOG entry says "outside bypass-permissions mode" so it claims nothing the Operator does not do today. Checked: `settings.json` parses, its `hooks` block is unchanged, and both rules match the `permissionRule` pattern of the published Claude Code settings schema; `gc lint .`, `go vet` and `go test` in `forgejo`, and `tests/worktree-setup.sh` pass. Not exercised: the rules' effect in a session under a prompting mode. `Bash(gc *)` covers every `gc` subcommand, as the bead specifies. Bead: gascitypacks-2fl
feat: let the Operator run gc and bd without asking (gascitypacks-2fl)
All checks were successful
test / scripts (pull_request) Successful in 2s
test / changelog (pull_request) Successful in 5s
test / lint (pull_request) Successful in 3m13s
c68aa93f57
The Operator was asked to approve every gc and bd call, the gc mail inbox it runs at the start of each turn included. Its Claude settings overlay now allows Bash(gc *) and Bash(bd *) and nothing wider: no blanket Bash allowance, and the permission mode is not touched.

The bead was filed while the Operator ran in auto-edit mode. #3 then moved it to bypass-permissions (permission_mode = "unrestricted"), which skips every prompt, so these rules change nothing while that mode holds; they apply if the Operator goes back to a mode that prompts. agent.toml stays as #3 left it. The changelog entry says "outside bypass-permissions mode" so it does not claim an effect the Operator does not have today.

Validation: settings.json parses, its hooks block is unchanged, and both rules match the permissionRule pattern in the published Claude Code settings schema; gc lint . passes. The rules' runtime effect under a prompting mode was not exercised.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/gascitypacks!6
No description provided.