You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if there was an existing system to to give the PLAN AGENT permissions to rg, find, and grep. The permissions docs say that the agent begins with all permissions but you can get more granular, implying that it's referring the to build agent.
I'd like the plan agent to always be able to use rg and grep and find so I don't have to stay by it and give it "always" access on any given instance
Huh weird it finds the config yet it asked for permission to run rg * or
grep * or find *
Maybe when I did this last night I didn’t restart opencode. Thanks for the
help I suspect if I ran open code now it would work. I’ll be back later if
it doesn’t. thank you
Should this example or any example highlighting the ability to target specifically plan or build agent not be included in the permissions page on the docs. I see that it's mentioned in the config/#agents section but just including this example might help people
Activity
rekram1-node commentedon Oct 6, 2025
@sai-sy the config you provided will override the permissions of all agents for bash including plan, if you instead wish to specifically alter plan and nothing else, you can do (you can do this for any agent, and you can override whatever part you want, for list of available options see https://opencode.ai/config.json:
sai-sy commentedon Oct 7, 2025
Then perhaps my opencode just isn't reading from my
.config/opencode/opencode.jsonIs there some extra step not outlined in the docs?
rekram1-node commentedon Oct 7, 2025
@sai-sy run
opencode debug configlets see what it says?sai-sy commentedon Oct 7, 2025
rekram1-node commentedon Oct 7, 2025
sounds good yeah definitely need to restart lmk if u have more problems
sai-sy commentedon Oct 7, 2025
Should this example or any example highlighting the ability to target specifically plan or build agent not be included in the permissions page on the docs. I see that it's mentioned in the config/#agents section but just including this example might help people
rekram1-node commentedon Oct 7, 2025
yeah we probably should
sai-sy commentedon Oct 7, 2025
@rekram1-node the doc site itself isn't on GH for me to go quickly change?
sai-sy commentedon Oct 7, 2025
ah nvm https://github.com/sst/opencode/blob/dev/packages/web/src/content/docs/permissions.mdx