Skip to content

Commit 0c83efd

Browse files
terisukeclaude
andcommitted
fix(guardrails): address PR #89 review issues and sync managed config
- delegate.md: single task uses background tool, team requires 2+ tasks - investigate.md: add explicit read: allow permission - managed/opencode.json: add default_agent and 6 missing deny rules Closes #92 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent f1b9c5e commit 0c83efd

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

‎packages/guardrails/managed/opencode.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://opencode.ai/config.json",
3+
"default_agent": "implement",
34
"enabled_providers": [
45
"zai",
56
"zai-coding-plan",
@@ -99,6 +100,12 @@
99100
"rm -rf *": "deny",
100101
"rm -r *": "deny",
101102
"sudo *": "deny",
103+
"git checkout -- *": "deny",
104+
"git merge *": "deny",
105+
"git push --force*": "deny",
106+
"git push * --force*": "deny",
107+
"git reset --hard*": "deny",
108+
"gh pr merge *": "deny",
102109
"curl * | sh*": "deny",
103110
"wget * | sh*": "deny"
104111
},

‎packages/guardrails/profile/agents/investigate.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
description: Deep codebase investigation. Read-only, no structured output requirement.
33
mode: subagent
44
permission:
5+
read:
6+
"*": allow
57
edit:
68
"*": deny
79
write:

‎packages/guardrails/profile/commands/delegate.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ Split the current task into parallel subtasks using the team tool.
77

88
1. Analyze the request to identify independent work streams.
99
2. For each stream, define: description, whether it writes code, dependencies on other tasks.
10-
3. Call the `team` tool with the task list.
11-
4. If the request is a single task, call `team` with one task (isolated worker delegation).
10+
3. Call the `team` tool with the task list (minimum 2 tasks required).
11+
4. If the request is a single task, use the `background` tool instead of `team` (team requires 2+ tasks).
1212

1313
Guidelines:
1414
- Mark tasks that edit code with `write: true` for git worktree isolation.
1515
- Use `wave` strategy when tasks have dependencies.
1616
- Use `parallel` strategy when all tasks are independent.
17-
- Keep task count between 1 and 5 for manageability.
17+
- Keep task count between 2 and 5 for manageability.

0 commit comments

Comments
 (0)