summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSai <[email protected]>2025-10-07 11:08:52 -0400
committerGitHub <[email protected]>2025-10-07 10:08:52 -0500
commit1f725cc3ed8418912a157fb14146fd79cc3066ad (patch)
tree62106b995f17e1651cd697f77544b5a4f28368a1
parent6c99b833e443ba1531845a7fcf4f74247a0837bc (diff)
downloadopencode-1f725cc3ed8418912a157fb14146fd79cc3066ad.tar.gz
opencode-1f725cc3ed8418912a157fb14146fd79cc3066ad.zip
docs: add agent specific permission example (#3009)
-rw-r--r--packages/web/src/content/docs/permissions.mdx20
1 files changed, 19 insertions, 1 deletions
diff --git a/packages/web/src/content/docs/permissions.mdx b/packages/web/src/content/docs/permissions.mdx
index 44dbc92ef..68ae8b087 100644
--- a/packages/web/src/content/docs/permissions.mdx
+++ b/packages/web/src/content/docs/permissions.mdx
@@ -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"
+ }
+ }
+ }
+ }
+}
+```