Skip to content

Commit b6746b6

Browse files
terisukeclaude
andcommitted
fix(guardrails): correct agent routing, add wildcard deny and git blame permission (#51)
- commands/investigate.md: agent: review -> agent: investigate (HIGH) - commands/plan.md: agent: implement -> agent: plan (HIGH) - agents/plan.md: add "*": deny as first permission for defense-in-depth (HIGH) - agents/security.md: add "git blame*": allow for security audit (WARNING) Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent a6a4a82 commit b6746b6

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
description: Bounded planning agent. Read-only exploration with plan file output.
33
mode: primary
44
permission:
5+
"*": deny
56
plan_enter: allow
67
read: allow
78
grep: allow

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ permission:
1414
"git diff *": allow
1515
"git show *": allow
1616
"git status *": allow
17+
"git blame*": allow
1718
"ls *": allow
1819
"pwd": allow
1920
---

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Read-only codebase investigation without editing files.
3-
agent: review
3+
agent: investigate
44
subtask: true
55
---
66

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Enter bounded planning mode with guardrail state awareness.
3-
agent: implement
3+
agent: plan
44
---
55

66
Plan the implementation before writing code.

0 commit comments

Comments
 (0)