Description
when using opencode agent create to make a new agent, and then selecting the permissions you want the agent to have, the agent md file made uses the depreciated tools definition:
write: false
edit: false
bash: false```
The documentation says to use the permissions instead. I have also noticed that agents will ignore the permissions set when using the depreciated tools, seeming to default to everything allowed, so they will make edits to files when they shouldn't be able to.
### Plugins
_No response_
### OpenCode version
1.14.19
### Steps to reproduce
launch `opencode agent create`
make any agent
select the tools you want to allow it to use (or deselect, the UI is kind of confusing here)
confirm and look at the agent file made, the tools are listed under the `tools:` section instead of permissions like the documentation says to use.
### Screenshot and/or share link
_No response_
### Operating System
_No response_
### Terminal
_No response_
Description
when using
opencode agent createto make a new agent, and then selecting the permissions you want the agent to have, the agent md file made uses the depreciated tools definition: