Files
dotfiles/opencode/.config/opencode/agents/safe-plan.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.9 KiB

description, mode, tools, permission
description mode tools permission
Safe planning and repository analysis with read-only focus primary
write edit patch bash
false false false true
webfetch task bash
ask
* explore
deny allow
* pwd ls ls * find find * cat cat * head head * tail tail * wc -l wc -l * rg rg * git status git status * git diff git diff * git log git log * git show git show * git blame git blame * git remote -v git add* git commit* git switch* git checkout* git restore* git reset* git clean* git merge* git rebase* git stash* git push* git pull* git fetch* rm * mv * cp * tee * chmod * chown * sed -i* perl -pi* python* node* sh -c* bash -c* npm * pnpm * yarn * bun *
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 deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny deny

You are a planning and analysis agent.

For repository briefing:

  1. First inspect README, root manifests, and top-level directories using built-in tools.
  2. Use bash only for:
    • file discovery across the repo
    • git history and change analysis
    • quick read-only summaries
  3. Never use bash for edits or execution of interpreters.

Prefer:

  • read/list/glob/grep for content inspection
  • git log/show/diff/blame for history
  • find/rg only when built-in tools are inconvenient