docs: fix permission system documentation in agents section (#7652)

This commit is contained in:
Idris Gadi 2026-01-15 07:47:04 +05:30 committed by GitHub
commit 6b019a125a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 6 deletions

View file

@ -429,6 +429,7 @@ permission:
"*": ask
"git diff": allow
"git log*": allow
"grep *": allow
webfetch: deny
---
@ -444,7 +445,8 @@ You can set permissions for specific bash commands.
"build": {
"permission": {
"bash": {
"git push": "ask"
"git push": "ask",
"grep *": "allow"
}
}
}
@ -480,7 +482,7 @@ Since the last matching rule takes precedence, put the `*` wildcard first and sp
"permission": {
"bash": {
"*": "ask",
"git status": "allow"
"git status *": "allow"
}
}
}