Browse Source

fix: correct YAML errors and restore missing permissions in agent configs

- Fix repo-manager.md duplicate permission section
- Fix externalscout.md YAML indentation error
- Remove old tools: section from devops-specialist.md
- Restore context file permissions in context-manager.md
- Restore test command permissions in tester.md
- Clean up formatting in coder-agent.md

All 20 agent files now have valid YAML frontmatter with proper permission blocks.
darrenhinde 6 months ago
parent
commit
2f0864ad42

+ 1 - 13
.opencode/agent/core/openagent.md

@@ -1,23 +1,11 @@
 ---
-# OpenCode Agent Configuration
-# Metadata (id, name, category, type, version, author, tags, dependencies) is stored in:
-# .opencode/config/agent-metadata.json
-
 name: OpenAgent
 description: "Universal agent for answering queries, executing tasks, and coordinating workflows across any domain"
 mode: primary
 temperature: 0.2
-tools:
-  read: true
-  write: true
-  edit: true
-  grep: true
-  glob: true
-  bash: true
-  task: true
-  patch: true
 permission:
   bash:
+    "*": "ask"
     "rm -rf *": "ask"
     "rm -rf /*": "deny"
     "sudo *": "deny"

+ 0 - 13
.opencode/agent/core/opencoder.md

@@ -1,21 +1,8 @@
 ---
-# OpenCode Agent Configuration
-# Metadata (id, name, category, type, version, author, tags, dependencies) is stored in:
-# .opencode/config/agent-metadata.json
-
 name: OpenCoder
 description: "Orchestration agent for complex coding, architecture, and multi-file refactoring"
 mode: primary
 temperature: 0.1
-tools:
-  task: true
-  read: true
-  edit: true
-  write: true
-  grep: true
-  glob: true
-  bash: true
-  patch: true
 permission:
   bash:
     "rm -rf *": "ask"

+ 0 - 4
.opencode/agent/data/data-analyst.md

@@ -1,8 +1,4 @@
 ---
-# OpenCode Agent Configuration
-# Metadata (id, name, category, type, version, author, tags, dependencies) is stored in:
-# .opencode/config/agent-metadata.json
-
 name: OpenDataAnalyst
 description: "Expert in data analysis, visualization, and statistical insights"
 mode: primary

+ 1 - 20
.opencode/agent/meta/repo-manager.md

@@ -1,22 +1,9 @@
 ---
-# OpenCode Agent Configuration
-# Metadata (id, name, category, type, version, author, tags, dependencies) is stored in:
-# .opencode/config/agent-metadata.json
-
 name: OpenRepoManager
 description: "Meta agent for managing OpenAgents Control repository development with lazy context loading, smart delegation, and automatic documentation"
 mode: primary
 temperature: 0.2
-tools:
-  read: true
-  write: true
-  edit: true
-  grep: true
-  glob: true
-  bash: true
-  task: true
-  list: true
-  patch: true
+permission:
   bash:
     "rm -rf *": "ask"
     "rm -rf /*": "deny"
@@ -28,12 +15,6 @@ tools:
     "**/*.secret": "deny"
     "node_modules/**": "deny"
     ".git/**": "deny"
-permission:
-  bash:
-    "rm -rf *": "ask"
-    "rm -rf /*": "deny"
-    "sudo *": "deny"
-    "> /dev/*": "deny"
 ---
 
 <!-- ═══════════════════════════════════════════════════════════════════════════ -->

+ 0 - 8
.opencode/agent/meta/system-builder.md

@@ -7,14 +7,6 @@ name: OpenSystemBuilder
 description: "Main orchestrator for building complete context-aware AI systems from user requirements"
 mode: primary
 temperature: 0.2
-tools:
-  read: true
-  write: true
-  edit: true
-  bash: false
-  task: true
-  glob: true
-  grep: false
 ---
 
 # System Builder Orchestrator

+ 0 - 8
.opencode/agent/subagents/code/build-agent.md

@@ -3,14 +3,6 @@ name: BuildAgent
 description: Type check and build validation agent
 mode: subagent
 temperature: 0.1
-tools:
-  bash: true
-  read: true
-  grep: true
-  glob: true
-  task: true
-  edit: false
-  write: false
 permission:
   bash:
     "tsc": "allow"

+ 1 - 10
.opencode/agent/subagents/code/coder-agent.md

@@ -3,15 +3,6 @@ name: CoderAgent
 description: Executes coding subtasks in sequence, ensuring completion as specified
 mode: subagent
 temperature: 0
-tools:
-  read: true
-  edit: true
-  write: true
-  grep: true
-  glob: true
-  bash: false
-  patch: true
-  task: true
 permission:
   bash:
     "*": "deny"
@@ -22,9 +13,9 @@ permission:
     "node_modules/**": "deny"
     ".git/**": "deny"
   task:
+    "*": "deny"
     contextscout: "allow"
     externalscout: "allow"
-    "*": "deny"
 ---
 
 # CoderAgent

+ 1 - 9
.opencode/agent/subagents/code/reviewer.md

@@ -3,14 +3,6 @@ name: CodeReviewer
 description: Code review, security, and quality assurance agent
 mode: subagent
 temperature: 0.1
-tools:
-  read: true
-  grep: true
-  glob: true
-  bash: false
-  edit: false
-  write: false
-  task: true
 permission:
   bash:
     "*": "deny"
@@ -19,8 +11,8 @@ permission:
   write:
     "**/*": "deny"
   task:
-    contextscout: "allow"
     "*": "deny"
+    contextscout: "allow"
 ---
 
 # CodeReviewer

+ 2 - 9
.opencode/agent/subagents/code/tester.md

@@ -3,14 +3,6 @@ name: TestEngineer
 description: Test authoring and TDD agent
 mode: subagent
 temperature: 0.1
-tools:
-  read: true
-  grep: true
-  glob: true
-  edit: true
-  write: true
-  bash: true
-  task: true
 permission:
   bash:
     "npx vitest *": "allow"
@@ -31,8 +23,9 @@ permission:
     "**/*.key": "deny"
     "**/*.secret": "deny"
   task:
-    contextscout: "allow"
     "*": "deny"
+    contextscout: "allow"
+    externalscout: "allow"
 ---
 
 # TestEngineer

+ 5 - 12
.opencode/agent/subagents/core/context-manager.md

@@ -3,21 +3,13 @@ name: ContextManager
 description: Context organization and lifecycle management specialist - discovers, catalogs, validates, and maintains project context structure with dependency tracking
 mode: subagent
 temperature: 0.1
-tools:
-  read: true
-  grep: true
-  glob: true
-  edit: true
-  write: true
-  bash: true
-  task: true
 permission:
   read:
-    "**/*": "allow"
+    "*": "allow"
   grep:
-    "**/*": "allow"
+    "*": "allow"
   glob:
-    "**/*": "allow"
+    "*": "allow"
   bash:
     "find .opencode/context*": "allow"
     "ls -la .opencode/context*": "allow"
@@ -26,6 +18,7 @@ permission:
     "*": "deny"
   edit:
     ".opencode/context/**/*.md": "allow"
+    ".opencode/context/**/*.json": "allow"
     "**/*.env*": "deny"
     "**/*.key": "deny"
     "**/*.secret": "deny"
@@ -36,8 +29,8 @@ permission:
     "**/*.key": "deny"
     "**/*.secret": "deny"
   task:
-    "contextscout": "allow"
     "*": "deny"
+    "contextscout": "allow"
 ---
 
 # ContextManager

+ 0 - 8
.opencode/agent/subagents/core/context-retriever.md

@@ -3,14 +3,6 @@ name: Context Retriever
 description: Generic context search and retrieval specialist for finding relevant context files, standards, and guides in any repository
 mode: subagent
 temperature: 0.1
-tools:
-  read: true
-  grep: true
-  glob: true
-  list: true
-  bash: false
-  edit: false
-  write: false
 permission:
   bash:
     "*": "deny"

+ 16 - 8
.opencode/agent/subagents/core/contextscout.md

@@ -2,14 +2,22 @@
 name: ContextScout
 description: Discovers and recommends context files from .opencode/context/ ranked by priority. Suggests ExternalScout when a framework/library is mentioned but not found internally.
 mode: subagent
-tools:
-  read: true
-  grep: true
-  glob: true
-  write: false
-  edit: false
-  bash: false
-  task: false
+permission:
+  read:
+    "*": "allow"
+  grep:
+    "*": "allow"
+  glob:
+    "*": "allow"
+  bash:
+    "*": "deny"
+  edit:
+    "*": "deny"
+  write:
+    "*": "deny"
+  task:
+    "*": "deny"
+
 ---
 
 # ContextScout

+ 0 - 8
.opencode/agent/subagents/core/documentation.md

@@ -3,14 +3,6 @@ name: DocWriter
 description: Documentation authoring agent
 mode: subagent
 temperature: 0.2
-tools:
-  read: true
-  grep: true
-  glob: true
-  edit: true
-  write: true
-  bash: false
-  task: true
 permission:
   bash:
     "*": "deny"

+ 6 - 34
.opencode/agent/subagents/core/externalscout.md

@@ -3,57 +3,29 @@ name: ExternalScout
 description: Fetches live, version-specific documentation for external libraries and frameworks using Context7 and other sources. Filters, sorts, and returns relevant documentation.
 mode: subagent
 temperature: 0.1
-tools:
-  read: true
-  bash: true
-  skill: true
-  grep: true
-  webfetch: true
-  write: true
-  edit: true
-  glob: true
-  task: false
-  todoread: false
-  todowrite: false
 permission:
   read:
+    "**/*": "deny"
     ".opencode/skill/context7/**": "allow"
     ".tmp/external-context/**": "allow"
-    "**/*": "deny"
   bash:
+    "*": "deny"
     "curl -s https://context7.com/*": "allow"
     "jq *": "allow"
-    "curl *": "deny"
-    "wget *": "deny"
-    "rm *": "deny"
-    "sudo *": "deny"
-    "mv *": "deny"
-    "cp *": "deny"
-    "> *": "deny"
-    ">> *": "deny"
   skill:
-    "context7": "allow"
     "*": "deny"
-  webfetch:
-    "*": "allow"
+    "*context7*": "allow"
   write:
-    ".tmp/external-context/**": "allow"
     "**/*": "deny"
-  edit:
     ".tmp/external-context/**": "allow"
+  edit:
     "**/*": "deny"
-  task:
-    "*": "deny"
-  glob:
-    ".opencode/skill/context7/**": "allow"
     ".tmp/external-context/**": "allow"
-    "**/*": "deny"
-  todoread:
-    "*": "deny"
-  todowrite:
+  task:
     "*": "deny"
 ---
 
+
 # ExternalScout
 
 <role>Fast documentation fetcher for external libraries/frameworks</role>

+ 8 - 12
.opencode/agent/subagents/core/task-manager.md

@@ -3,29 +3,25 @@ name: TaskManager
 description: JSON-driven task breakdown specialist transforming complex features into atomic, verifiable subtasks with dependency tracking and CLI integration
 mode: subagent
 temperature: 0.1
-tools:
-  read: true
-  edit: true
-  write: true
-  grep: true
-  glob: true
-  bash: true
-  task: true
-  patch: true
 permission:
   bash:
+    "*": "deny"
     "npx ts-node*task-cli*": "allow"
     "mkdir -p .tmp/tasks*": "allow"
     "mv .tmp/tasks*": "allow"
-    "*": "deny"
   edit:
     "**/*.env*": "deny"
     "**/*.key": "deny"
     "**/*.secret": "deny"
     "node_modules/**": "deny"
     ".git/**": "deny"
-skills:
-  - task-management
+  task:
+    contextscout: "allow"
+    externalscout: "allow"
+    "*": "deny"
+  skill:
+    "*": "deny"
+    "task-management": "allow"
 ---
 
 <context>

+ 2 - 10
.opencode/agent/subagents/development/devops-specialist.md

@@ -3,19 +3,12 @@ name: OpenDevopsSpecialist
 description: DevOps specialist subagent - CI/CD, infrastructure as code, deployment automation
 mode: subagent
 temperature: 0.1
-tools:
-  read: true
-  write: true
-  edit: true
-  bash: true
-  task: true
-  grep: true
-  glob: true
 permission:
   task:
-    contextscout: "allow"
     "*": "deny"
+    contextscout: "allow"
   bash:
+    "*": "deny"
     "docker build *": "allow"
     "docker compose up *": "allow"
     "docker compose down *": "allow"
@@ -31,7 +24,6 @@ permission:
     "terraform validate *": "allow"
     "npm run build *": "allow"
     "npm run test *": "allow"
-    "*": "deny"
   edit:
     "**/*.env*": "deny"
     "**/*.key": "deny"

+ 1 - 11
.opencode/agent/subagents/development/frontend-specialist.md

@@ -3,22 +3,12 @@ name: OpenFrontendSpecialist
 description: Frontend UI design specialist - subagent for design systems, themes, animations
 mode: subagent
 temperature: 0.2
-tools:
-  read: true
-  write: true
-  edit: true
-  bash: false
-  task: true
-  glob: true
-  grep: true
 permission:
   task:
+    "*": "deny"
     contextscout: "allow"
     externalscout: "allow"
-    "*": "deny"
   write:
-    "design_iterations/**/*.html": "allow"
-    "design_iterations/**/*.css": "allow"
     "**/*.env*": "deny"
     "**/*.key": "deny"
     "**/*.secret": "deny"

+ 0 - 7
.opencode/agent/subagents/system-builder/context-organizer.md

@@ -3,13 +3,6 @@ name: ContextOrganizer
 description: Organizes and generates context files (domain, processes, standards, templates) for optimal knowledge management
 mode: subagent
 temperature: 0.1
-tools:
-  read: true
-  write: true
-  edit: true
-  grep: true
-  glob: true
-  task: true
 permission:
   task:
     contextscout: "allow"

+ 0 - 7
.opencode/agent/subagents/system-builder/workflow-designer.md

@@ -3,13 +3,6 @@ name: WorkflowDesigner
 description: Designs complete workflow definitions with context dependencies and success criteria
 mode: subagent
 temperature: 0.1
-tools:
-  read: true
-  write: true
-  edit: true
-  grep: true
-  glob: true
-  task: true
 permission:
   task:
     contextscout: "allow"

+ 0 - 9
.opencode/agent/subagents/test/simple-responder.md

@@ -7,15 +7,6 @@ name: Simple Responder
 description: "Test agent that responds with 'AWESOME TESTING' - for eval framework testing"
 mode: subagent
 temperature: 0.0
-tools:
-  read: false
-  write: false
-  edit: false
-  grep: false
-  glob: false
-  bash: false
-  task: false
-  patch: false
 ---
 
 # Simple Responder - Test Agent