refactor(agents): frontmatter на нативный OpenCode v2

This commit is contained in:
eka
2026-10-30 20:24:37 +05:00
parent 3d231ae233
commit bc89e8e532
6 changed files with 143 additions and 54 deletions
+39 -13
View File
@@ -3,22 +3,48 @@ description: "Системный администратор — ОС, systemd,
пакеты, бэкапы, логи. Каждое изменение — после одобрения детального плана
с бэкапом, тестом и откатом."
mode: all
request:
body:
temperature: 0.1
steps: 100
color: "#16a34a"
permission:
task: deny
bash: allow
read: allow
edit: allow
write: allow
grep: allow
glob: allow
websearch: allow
webfetch: allow
todowrite: allow
question: allow
skill: allow
permissions:
- action: subagent
resource: "*"
effect: deny
- action: shell
resource: "*"
effect: allow
- action: read
resource: "*"
effect: allow
- action: edit
resource: "*"
effect: allow
- action: write
resource: "*"
effect: allow
- action: grep
resource: "*"
effect: allow
- action: glob
resource: "*"
effect: allow
- action: websearch
resource: "*"
effect: allow
- action: webfetch
resource: "*"
effect: allow
- action: todowrite
resource: "*"
effect: allow
- action: question
resource: "*"
effect: allow
- action: skill
resource: "*"
effect: allow
---
# Системный администратор
+39 -13
View File
@@ -3,22 +3,48 @@ description: "DevOps-инженер — CI/CD, контейнеры, IaC, деп
Готовит изменения как код и проверяет их dry-run. Применение и коммиты —
только за пользователем."
mode: all
request:
body:
temperature: 0.1
steps: 100
color: "#2563eb"
permission:
task: deny
bash: allow
read: allow
edit: allow
write: allow
grep: allow
glob: allow
websearch: allow
webfetch: allow
todowrite: allow
question: allow
skill: allow
permissions:
- action: subagent
resource: "*"
effect: deny
- action: shell
resource: "*"
effect: allow
- action: read
resource: "*"
effect: allow
- action: edit
resource: "*"
effect: allow
- action: write
resource: "*"
effect: allow
- action: grep
resource: "*"
effect: allow
- action: glob
resource: "*"
effect: allow
- action: websearch
resource: "*"
effect: allow
- action: webfetch
resource: "*"
effect: allow
- action: todowrite
resource: "*"
effect: allow
- action: question
resource: "*"
effect: allow
- action: skill
resource: "*"
effect: allow
---
# DevOps-инженер
+2
View File
@@ -2,6 +2,8 @@
mode: all
description: "Bug Fix — находит причину бага, чинит, проверяет что не сломал
остальное. Работает строго по циклу: Investigate → Fix → Verify."
request:
body:
temperature: 0.2
steps: 100
color: "#800080"
+45 -15
View File
@@ -2,24 +2,54 @@
description: Оркестратор — получает задачу, выбирает профиль, делегирует
сабагентам. Сам код НЕ правит. Координирует выполнение и собирает результат.
mode: primary
request:
body:
temperature: 0.15
steps: 200
color: "#ffd43b"
permission:
task: allow
bash: allow
read: allow
edit: allow
write: allow
websearch: allow
webfetch: allow
todowrite: allow
skill: allow
question: allow
plan_enter: allow
plan_exit: allow
grep: allow
glob: allow
permissions:
- action: subagent
resource: "*"
effect: allow
- action: shell
resource: "*"
effect: allow
- action: read
resource: "*"
effect: allow
- action: edit
resource: "*"
effect: allow
- action: write
resource: "*"
effect: allow
- action: websearch
resource: "*"
effect: allow
- action: webfetch
resource: "*"
effect: allow
- action: todowrite
resource: "*"
effect: allow
- action: skill
resource: "*"
effect: allow
- action: question
resource: "*"
effect: allow
- action: plan_enter
resource: "*"
effect: allow
- action: plan_exit
resource: "*"
effect: allow
- action: grep
resource: "*"
effect: allow
- action: glob
resource: "*"
effect: allow
---
# Orchestrator — оркестратор задач
-3
View File
@@ -11,9 +11,6 @@ permissions:
- action: shell
resource: "*"
effect: allow
- action: shell
resource: ls *
effect: allow
- action: webfetch
resource: "*"
effect: deny
+12 -4
View File
@@ -2,13 +2,21 @@
description: Тестировщик, QA-инженер. Находит баги, проверяет фиксы, запускает
тесты, верифицирует что ничего не сломано. Read-only.
mode: all
request:
body:
temperature: 0.1
steps: 50
color: "#ff6b6b"
permission:
bash: allow
webfetch: deny
websearch: deny
permissions:
- action: shell
resource: "*"
effect: allow
- action: webfetch
resource: "*"
effect: deny
- action: websearch
resource: "*"
effect: deny
---
# Тестировщик, QA-инженер