[FEATURE]: Whitelist/blacklist available commands that agent can execute
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
I've set in my agents.md instruction explicitly not to run python and ask me to do the tests, however agent does not respect that even after reminding it several times.
I don't want to disable shell commands by disabling bash tool, but to suggest whitelist/blacklist commands
This issue is related to #5186, which also discusses agent behavior and instruction compliance. That issue focuses on agents not respecting instructions in agents.md, while this one focuses on adding command whitelist/blacklist controls. You may want to cross-reference them for context on agent instruction compliance.
https://opencode.ai/docs/permissions/#bash
This should already be possible, have u tried permissions?