rtk gain --historybrew install rtk && rtk init -g --opencodehttps://8labs.id/guides/opencode/rtk-guide/
~/.config/opencode/opencode.json
"permission": {
"bash": {
"*": "ask",
...
"git *": "ask",
"git status*": "allow",
"git diff*": "allow",
"git log*": "allow",
"git show*": "allow",
"git branch*": "allow",
"git blame*": "allow",
"git remote*": "allow",
"git fetch*": "allow",
"git stash*": "allow",
"git commit*": "ask",
"git push*": "ask",
"git pull*": "ask",
"git reset*": "ask",
"git checkout *": "ask",
"git merge*": "ask",
"git rebase*": "ask",
"git clean*": "ask",
"git rm *": "ask",
"git add *": "ask",
"git restore *": "ask",
"rtk git *": "ask",
"rtk git status*": "allow",
"rtk git diff*": "allow",
"rtk git log*": "allow",
"rtk git show*": "allow",
"rtk git branch*": "allow",
"rtk git blame*": "allow",
"rtk git remote*": "allow",
"rtk git fetch*": "allow",
"rtk git stash*": "allow",
"rtk git commit*": "ask",
"rtk git push*": "ask",
"rtk git pull*": "ask",
"rtk git reset*": "ask",
"rtk git checkout *": "ask",
"rtk git merge*": "ask",
"rtk git rebase*": "ask",
"rtk git clean*": "ask",
"rtk git rm *": "ask",
"rtk git add *": "ask",
"rtk git restore *": "ask",
},
"edit": "allow",
"write": "allow"
},