Explorar el Código

docs: add agent specific permission example (#3009)

Sai hace 4 meses
padre
commit
1f725cc3ed
Se han modificado 1 ficheros con 19 adiciones y 1 borrados
  1. 19 1
      packages/web/src/content/docs/permissions.mdx

+ 19 - 1
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"
+        }
+      }
+    }
+  }
+}
+```