Skip to content

feat(agent): give Review subagent Bash with Plan-equivalent permissions #164

Closed

Description

@mdev34-lab

The Review subagent currently cannot use Bash, which limits it to static inspection and prevents it from reproducing or verifying runtime behavior that requires executing repository commands.

Give the Review subagent the same effective permissions as the current Plan agent, with Bash included. The permission model should be shared rather than introducing a separate, divergent Review-specific policy: Review should be able to inspect the repository and run the same non-destructive commands available to Plan, including Bash, while retaining the existing Review-specific restrictions and result/finish gating where applicable.

Acceptance criteria:

  • Review has Bash available through the same permission mechanism/configuration used by Plan.
  • Review and Plan have equivalent effective tool permissions for repository inspection and non-destructive command execution.
  • Bash commands from Review are actually dispatchable and execute under the normal agent runtime rather than being blocked by a missing permission or tool registration.
  • Existing Review behavior, especially its result reporting and finish gating, is unchanged.
  • Add focused regression coverage at the permission/agent configuration seam proving the Review and Plan permission sets stay equivalent for the intended tools, including Bash.
  • Verify that permission denial still applies to operations outside the shared Plan-equivalent permission set.
  • Run focused tests, relevant agent tests, typecheck, and lint/format checks; inspect the final diff for unrelated changes.

Context: this is specifically to let the Review subagent perform the same practical repository verification that Plan can perform. Do not solve it by broadly granting Review unrestricted permissions; make the Plan permission set the source of truth for the shared capability boundary.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions