Skip to content

Commit f02b1ae

Browse files
committed
feat(agents): add explicit permission declarations to all agent definitions
1 parent a50df57 commit f02b1ae

File tree

9 files changed

+30
-9
lines changed

9 files changed

+30
-9
lines changed

.opencode/agents/analyze.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
---
22
description: Understand, investigate, and research - read-only knowledge gathering
33
mode: primary
4-
permissions:
4+
permission:
55
"*": deny
66
read: allow
77
glob: allow
88
list: allow
99
websearch: allow
10+
codesearch: allow
1011
webfetch: allow
1112
question: allow
1213
edit:
13-
"*": deny
1414
.knowledge/notes/*: allow
1515
bash:
16-
"*": deny
1716
ls *: allow
1817
find *: allow
1918
git ls *: allow
2019
git status *: allow
21-
todowrite: allow
20+
todowrite *: allow
21+
uv run .opencode/bin/*: allow
2222
task:
23-
"*": deny
2423
scout: allow
2524
investigator: allow
2625
critic: allow

.opencode/agents/build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Execute, implement, and create - disciplined implementation
33
mode: primary
4-
permissions:
4+
permission:
55
"*": allow
66
task:
77
"*": deny

.opencode/agents/critic.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
description: Prose critique subagent - structured content review
33
mode: subagent
4+
permission:
5+
"*": deny
6+
read: allow
47
---
58

69
# Critic Subagent

.opencode/agents/drafter.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
description: Content drafting subagent - write sections in parallel
33
mode: subagent
4+
permission:
5+
"*": deny
6+
read: allow
7+
edit:
8+
"*.md": allow
49
---
510

611
# Drafter Subagent

.opencode/agents/investigator.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
---
22
description: Specialized subagent for investigating codebase structure and answering "what does X?" questions
33
mode: subagent
4+
permission:
5+
"*": deny
6+
read: allow
7+
codesearch: allow
8+
list: allow
9+
glob: allow
10+
git status *: allow
11+
git log *: allow
412
---
513

614
You are an **Investigator** subagent - a specialized tool for understanding codebase structure.

.opencode/agents/plan.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Decide approach, design architecture, create actionable plans
33
mode: primary
4-
permissions:
4+
permission:
55
"*": deny
66
read: allow
77
edit:
@@ -11,6 +11,7 @@ permissions:
1111
bash:
1212
ls *: allow
1313
find *: allow
14+
uv run .opencode/bin/*: allow
1415
task:
1516
investigator: allow
1617
---

.opencode/agents/release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Finalize, commit, version, publish, and deploy
33
mode: primary
4-
permissions:
4+
permission:
55
"*": allow
66
task:
77
"*": deny

.opencode/agents/scout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Web research subagent - gather external knowledge in parallel
33
mode: subagent
4-
permissions:
4+
permission:
55
"*": deny
66
webfetch: allow
77
websearch: allow

.opencode/agents/tester.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
description: Test writing and hypothesis validation subagent
33
mode: subagent
4+
permission:
5+
"*": deny
6+
read: allow
7+
edit:
8+
.experiments/*: allow
49
---
510

611
# Tester Subagent

0 commit comments

Comments
 (0)