Skip to content

agent create makes an agent file that does not use the correct permissions for tools. #23703

@OracleToes

Description

@OracleToes

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_

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions