Skip to content

Instantly share code, notes, and snippets.

@kibotu
Last active July 24, 2026 08:44
Show Gist options
  • Select an option

  • Save kibotu/5f6306ef185df14edc13ae795282c040 to your computer and use it in GitHub Desktop.

Select an option

Save kibotu/5f6306ef185df14edc13ae795282c040 to your computer and use it in GitHub Desktop.
OpenCode RTK

Metrics

rtk gain --history

Guide

brew install rtk && rtk init -g --opencode

https://8labs.id/guides/opencode/rtk-guide/

Permissions

~/.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"
  },
@kibotu

kibotu commented Jul 24, 2026

Copy link
Copy Markdown
Author
Screenshot 2026-07-24 at 10 02 05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment