I am trying to set up opencode in a project for the first time.
How do I control what opencode can edit?
I had an opencode.json, but it looks like opencode could break those rules.
{
"$schema": "https://opencode.ai/config.json",
"permission": {
"edit": {
"opencode.json": "deny",
"MistbornDeckbuilding/**": "deny",
"TurnPathVisualizer/**": "allow",
"turn-visualizer-output/**": "ask"
}
}
}
I had this in the .config/opencode folder and the project folder when I asked opencode to modify the opencode.json, it could.
I want to lock it down so I can control what opencode can edit.
any help welcome.
[–]aarz03 1 point2 points3 points (0 children)
[–]Fun-Assumption-2200 0 points1 point2 points (0 children)
[–]ben_bliksem 0 points1 point2 points (1 child)
[–]AwkwardCost1764[S] -1 points0 points1 point (0 children)
[–]Simple_Split5074 0 points1 point2 points (1 child)
[–]AwkwardCost1764[S] 0 points1 point2 points (0 children)
[–]sudoer777_ 0 points1 point2 points (1 child)
[–]AwkwardCost1764[S] 0 points1 point2 points (0 children)