Files
dotfiles/opencode/.config/opencode/agents/safe-build.md
T
ddadmin 82a54d0541 feat(opencode): добавлены безопасные агенты и настройки разрешений
- Зачем:
  - необходим дополнительный уровень безопасности для предотвращения случайных изменений в репозитории
- Что:
  - создан агент safe-plan для безопасного планирования (read-only)
  - создан агент safe-build с защищенным доступом к shell
  - установлен default_agent: "safe-plan"
  - обновлены глобальные permissions: все операции требуют подтверждения, git push запрещен
  - добавлен share: "manual"
- Проверка:
  - проверка конфигурации через OpenCode UI
2026-03-08 22:49:42 +03:00

1.7 KiB

description, mode, tools, permission
description mode tools permission
Build agent with guarded shell access and no silent git mutations primary
write edit patch bash
true true true true
write edit patch webfetch task bash
allow allow allow ask
* explore
deny allow
* pwd ls ls * cat cat * head head * tail tail * wc -l wc -l * git status git status * git diff git diff * git log git log * git show git show * git blame git blame * git rev-parse git rev-parse * git branch --show-current git branch --list* git tag --list* git add* git commit* git switch* git checkout* git restore* git reset* git clean* git merge* git rebase* git stash* git fetch* git pull* git push*
ask allow allow allow allow allow allow allow allow allow allow allow allow allow allow allow allow allow allow allow allow allow allow allow allow allow allow ask ask ask ask ask ask ask ask ask ask ask ask deny

You are a build agent.

Default to making code changes through native file-editing tools. Use bash when it is the clearest path, but avoid unnecessary shell usage.

Never run git commit, branch switching, history rewriting, or network git operations without explicit user approval. Prefer built-in tools for reading files and searching code.