{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "*": "ask",
    "bash": {
      "*": "ask",
      "git status *": "allow",
      "git log *": "allow",
      "git diff *": "allow",
      "git branch *": "allow",
      "git show *": "allow",
      "git remote *": "allow",
      "git stash *": "allow",
      "git tag *": "allow",
      "git rev-parse *": "allow",
      "git describe *": "allow",
      "git ls-files *": "allow",
      "git blame *": "allow",
      "git shortlog *": "allow",
      "git add *": "allow",
      "git commit *": "allow",
      "git push *": "allow",
      "git checkout *": "allow",
      "git switch *": "allow",
      "git merge *": "allow",
      "git rebase *": "ask",
      "git cherry-pick *": "allow",
      "bd *": "allow",
      "gh *": "allow",
      "ls *": "allow",
      "cat *": "allow",
      "grep *": "allow",
      "find *": "allow",
      "pwd *": "allow",
      "which *": "allow",
      "echo *": "allow",
      "head *": "allow",
      "tail *": "allow",
      "sort *": "allow",
      "wc *": "allow",
      "awk *": "allow",
      "sed *": "allow",
      "stat *": "allow",
      "du *": "allow",
      "df *": "allow",
      "file *": "allow",
      "mkdir *": "allow",
      "touch *": "allow",
      "cp *": "allow",
      "mv *": "allow",
      "bun *": "allow",
      "bunx *": "allow",
      "npm *": "allow",
      "npx *": "allow",
      "node *": "allow",

      "git worktree *": "allow",
      "git reset --hard *": "ask",
      "rm -rf *": "deny",
      "git push --force *": "deny",
      "git push -f *": "deny"
    },
    "edit": {
      "*": "allow"
    }
  }
}
