amazon-q-developer-cli icon indicating copy to clipboard operation
amazon-q-developer-cli copied to clipboard

Configurable Permission Levels / "Auto-Allow" for Read-Only Commands in Amazon Q Agent

Open dniald opened this issue 9 months ago • 2 comments

Description

Currently, the Amazon Q Agent in VS Code requires explicit user permission for almost every terminal command execution, including read-only operations like grep, find, ls, and cat. While security is a priority, the high frequency of permission popups for non-destructive commands significantly hinders developer velocity and breaks the "autonomous" flow of the agent.

Proposed Solution

I would like to see a settings configuration or a "Grant Permission" toggle that allows users to:

  • Whitlelist Read-Only Commands: Automatically allow commands that do not modify the file system (e.g., grep, find, pwd).
  • Trust Session: A "Don't ask again for this session" checkbox on the permission popup.
  • Permission Scoping: A setting to allow all commands within a specific workspace directory for a set period.

Use Case

When the agent is trying to understand a large codebase, it may run 5–10 grep commands in a row to find definitions. Currently, the user must manually click "Allow" for every single one. This makes the agent feel less like an autonomous assistant and more like a tool that requires constant babysitting.

Image

Additional Context Extension: Amazon Q / AWS Toolkit for VS Code Current Behavior: Popup for every command. Desired Behavior: Seamless execution for safe/read-only commands based on user preference.

dniald avatar Mar 04 '26 01:03 dniald

This is such a pain. Came here to create the same issue.

itssamuelrowe avatar Jun 16 '26 04:06 itssamuelrowe

Five to ten greps in a row, each behind its own popup — the whitelist you're asking for is the right shape. The hard part is that read-only-ness isn't a property of the command name; it's a property of the expanded command. That classifier exists: one stdlib-only Python file, zero dependencies, parsing each command the way the shell would — variables resolved to a fixed point, cd tracked, base64 pipeline legs decoded — then classifying the effect against 27 rules. grep passes; the sed -i dressed up as a read doesn't. It runs shadow-first: hash-chained receipts for every verdict, blocks nothing until you enforce. Known effect classes are what it stops — novel tricks are the residual risk, which is why it logs first. Port: https://github.com/samvallad33/vestige/tree/main/operator-lite/ports/amazon-q

(Disclosure: I maintain the classifier just described; free, open-source.)

samvallad33 avatar Oct 01 '26 15:10 samvallad33