mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-05 16:02:19 +00:00
docs: add agent specific permission example (#3009)
This commit is contained in:
parent
6c99b833e4
commit
1f725cc3ed
1 changed files with 19 additions and 1 deletions
|
|
@ -111,5 +111,23 @@ For example.
|
|||
}
|
||||
}
|
||||
```
|
||||
|
||||
This configuration allows all commands by default (`"*": "allow"`) but requires approval for `git push` commands.
|
||||
|
||||
### Agents
|
||||
|
||||
Configure agent specific permissions
|
||||
|
||||
```json
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"agent": {
|
||||
"plan": {
|
||||
"permission": {
|
||||
"bash": {
|
||||
"echo *": "allow"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue