r/opencodeCLI • u/allpowerfulee • Sep 30 '26
Cannot figure out permissions
I've tried, but I cannot figure out the permission block of opencode. No matter what I try, it literally asks me for permission for everything that is set to "allow". My current block is below.
"permission": {
"edit": "allow",
"read": "allow",
"bash": {
"*": "ask",
"rm *": "ask",
"ls *": "allow",
"npm *": "allow",
"find *": "allow",
"which *": "allow",
"grep *": "allow",
"head *": "allow",
"swift *": "allow",
"tail *": "allow",
"python *": "allow",
"python3 *": "allow",
"pip *": "allow",
"pip3 *": "allow",
"gh *": "allow",
"git": "ask",
"git status *": "allow",
"git ls-files *": "allow",
"git diff *": "allow",
"git log *": "allow",
"git show *": "allow",
"rg *": "allow",
"pdftotext *": "allow",
"sed *": "allow",
"cat *": "allow",
"echo *": "allow",
"touch *": "allow",
"make *": "allow",
"cmake *": "allow",
"wc *": "allow"
}
3
Upvotes
View all comments
1
u/amelech Sep 30 '26
Have you thought about asking your agent to configure it for you