Skip to content

♻️ refactor: replace --allowedTools with --dangerously-skip-permissions#12

Merged
bdougie merged 3 commits intomainfrom
remove-allowed-tools-use-skip-permissions
Mar 19, 2026
Merged

♻️ refactor: replace --allowedTools with --dangerously-skip-permissions#12
bdougie merged 3 commits intomainfrom
remove-allowed-tools-use-skip-permissions

Conversation

@bdougie
Copy link
Contributor

@bdougie bdougie commented Mar 19, 2026

Summary

  • Removed the --allowedTools scoped permissions system (DefaultAllowedTools, AllowedTools config field, --allowed-tools CLI flag)
  • Sub-agents now use --dangerously-skip-permissions instead, reverting to the simpler approach
  • The allowedTools whitelist was causing rate limiting issues

Test plan

  • All existing tests pass (go test ./... — 90.2% coverage)
  • go build ./... succeeds
  • Manual run of sweeper run to verify sub-agents execute with --dangerously-skip-permissions

Revert the scoped permissions approach in favor of --dangerously-skip-permissions
for sub-agent invocations. The allowedTools whitelist was causing rate limiting
issues, so switch back to the simpler skip-permissions flag.

Removes DefaultAllowedTools, AllowedTools config field, --allowed-tools CLI flag,
and all related plumbing through the provider system.
@bdougie bdougie changed the title Replace --allowedTools with --dangerously-skip-permissions refactor: replace --allowedTools with --dangerously-skip-permissions Mar 19, 2026
@bdougie bdougie changed the title refactor: replace --allowedTools with --dangerously-skip-permissions ♻️ refactor: replace --allowedTools with --dangerously-skip-permissions Mar 19, 2026
bdougie added 2 commits March 18, 2026 19:43
Emojis like ♻️ include a variation selector (U+FE0F) after the base
codepoint, which broke the \p{So} single-character match. Make the
variation selector optional with \x{FE0F}?.
Normalize struct field alignment in Config and run.go after AllowedTools
removal. Remove trailing blank lines in agent tests. Pass PR title via
env var instead of direct interpolation to prevent shell injection.
@bdougie bdougie merged commit 1a7bf5f into main Mar 19, 2026
6 checks passed
bdougie added a commit that referenced this pull request Mar 22, 2026
Main replaced --allowedTools with --dangerously-skip-permissions in #12.
Remove all AllowedTools/DefaultAllowedTools references from config,
env overrides, and tests to align with main.
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.

1 participant