opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Whitelist/blacklist available commands that agent can execute

Open klonuo opened this issue 1 month ago • 1 comments

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

klonuo avatar Dec 07 '25 13:12 klonuo

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.

github-actions[bot] avatar Dec 07 '25 13:12 github-actions[bot]

https://opencode.ai/docs/permissions/#bash

This should already be possible, have u tried permissions?

rekram1-node avatar Dec 07 '25 15:12 rekram1-node