From e011c23bd76002f877b1c3760051187d516648b9 Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Thu, 26 Feb 2026 06:10:02 -0600 Subject: [PATCH] fix: updated opencode subagents and agents to use new merged permission syntax --- .config/opencode/agent/developer.md | 5 +- .config/opencode/agent/subagents/build.md | 14 ++- .config/opencode/agent/subagents/coder.md | 11 +- .config/opencode/agent/subagents/context.md | 14 +-- .../opencode/agent/subagents/documentation.md | 21 ++-- .config/opencode/agent/subagents/research.md | 11 +- .config/opencode/agent/subagents/reviewer.md | 10 +- .../opencode/agent/subagents/task-manager.md | 5 +- .config/opencode/agent/subagents/tester.md | 18 ++- .config/opencode/agent/writer.md | 11 +- .config/opencode/command/prompt-enchancer.md | 119 ------------------ 11 files changed, 70 insertions(+), 169 deletions(-) delete mode 100644 .config/opencode/command/prompt-enchancer.md diff --git a/.config/opencode/agent/developer.md b/.config/opencode/agent/developer.md index a0a5cc5..eeefdbb 100644 --- a/.config/opencode/agent/developer.md +++ b/.config/opencode/agent/developer.md @@ -2,8 +2,9 @@ description: "Implementation agent for modular and functional development in any language" mode: primary temperature: 0.1 -permissions: +permission: bash: + "*": "allow" "chmod *": "ask" "curl *": "ask" "docker *": "ask" @@ -17,6 +18,8 @@ permissions: "**/*.key": "deny" "**/*.secret": "deny" ".git/**": "deny" + ".venv/**": "deny" + "__pycache__/**": "deny" "node_modules/**": "deny" --- diff --git a/.config/opencode/agent/subagents/build.md b/.config/opencode/agent/subagents/build.md index bb5dab1..f7a1cf3 100644 --- a/.config/opencode/agent/subagents/build.md +++ b/.config/opencode/agent/subagents/build.md @@ -3,12 +3,18 @@ description: "Build and validation agent" mode: subagent model: opencode/minimax-m2.5-free temperature: 0.1 -tools: - webfetch: false - edit: false -permissions: +permission: bash: "*": "allow" + "chmod *": "ask" + "curl *": "ask" + "docker *": "ask" + "kubectl *": "ask" + "rm -rf *": "ask" + "sudo *": "deny" + "wget *": "ask" + edit: deny + webfetch: deny --- # Build Agent diff --git a/.config/opencode/agent/subagents/coder.md b/.config/opencode/agent/subagents/coder.md index cae8950..3516935 100644 --- a/.config/opencode/agent/subagents/coder.md +++ b/.config/opencode/agent/subagents/coder.md @@ -3,17 +3,18 @@ description: "Executes coding subtasks in sequence, ensuring completion as speci mode: subagent model: opencode/minimax-m2.5-free temperature: 0.1 -tools: - webfetch: false -permissions: - bash: - "*": "deny" +permission: + bash: deny edit: + "*": "allow" "**/*.env*": "deny" "**/*.key": "deny" "**/*.secret": "deny" ".git/**": "deny" + ".venv/**": "deny" + "__pycache__/**": "deny" "node_modules/**": "deny" + webfetch: deny --- # Coder Agent diff --git a/.config/opencode/agent/subagents/context.md b/.config/opencode/agent/subagents/context.md index 42588e2..bfb58e1 100644 --- a/.config/opencode/agent/subagents/context.md +++ b/.config/opencode/agent/subagents/context.md @@ -3,15 +3,11 @@ description: "Language-agnostic codebase pattern analyst agent" mode: subagent model: opencode/minimax-m2.5-free temperature: 0.1 -tools: - bash: false - patch: false - webfetch: false -permissions: - bash: - "*": "deny" - edit: - "**/*": "deny" +permission: + bash: deny + edit: deny + patch: deny + webfetch: deny --- # Context Agent diff --git a/.config/opencode/agent/subagents/documentation.md b/.config/opencode/agent/subagents/documentation.md index 15dcabf..db64991 100644 --- a/.config/opencode/agent/subagents/documentation.md +++ b/.config/opencode/agent/subagents/documentation.md @@ -3,14 +3,19 @@ description: "Universal code documentation subagent: inserts/updates doc comment mode: subagent model: opencode/minimax-m2.5-free temperature: 0.2 -tools: - bash: false - patch: false - webfetch: false -permissions: - "**/*.env*": "deny" - "**/*.key": "deny" - "**/*.secret": "deny" +permission: + bash: deny + edit: + "*": "allow" + "**/*.env*": "deny" + "**/*.key": "deny" + "**/*.secret": "deny" + ".git/**": "deny" + ".venv/**": "deny" + "__pycache__/**": "deny" + "node_modules/**": "deny" + patch: deny + webfetch: deny --- # Documentation Agent diff --git a/.config/opencode/agent/subagents/research.md b/.config/opencode/agent/subagents/research.md index d900dfe..6252dca 100644 --- a/.config/opencode/agent/subagents/research.md +++ b/.config/opencode/agent/subagents/research.md @@ -3,13 +3,9 @@ description: "Research subagent for information gathering and summarization" mode: subagent model: opencode/minimax-m2.5-free temperature: 0.1 -tools: - bash: false - patch: false - write: false - edit: false -permissions: +permission: bash: + "*": "allow" "chmod *": "ask" "curl *": "ask" "docker *": "ask" @@ -17,6 +13,9 @@ permissions: "rm -rf *": "ask" "sudo *": "deny" "wget *": "ask" + edit: deny + patch: deny + write: deny --- # Research Agent diff --git a/.config/opencode/agent/subagents/reviewer.md b/.config/opencode/agent/subagents/reviewer.md index 7bbaf94..0137a67 100644 --- a/.config/opencode/agent/subagents/reviewer.md +++ b/.config/opencode/agent/subagents/reviewer.md @@ -3,11 +3,11 @@ description: "Comprehensive code review, security, and quality assurance subagen mode: subagent model: opencode/minimax-m2.5-free temperature: 0.1 -tools: - bash: false - edit: false - patch: false - webfetch: false +permission: + bash: deny + edit: deny + patch: deny + webfetch: deny --- # Reviewer Agent diff --git a/.config/opencode/agent/subagents/task-manager.md b/.config/opencode/agent/subagents/task-manager.md index 8291646..aa3428c 100644 --- a/.config/opencode/agent/subagents/task-manager.md +++ b/.config/opencode/agent/subagents/task-manager.md @@ -3,9 +3,8 @@ description: "Breaks down complex features into small, verifiable subtasks" mode: subagent model: opencode/minimax-m2.5-free temperature: 0.1 -tools: - bash: false -permissions: +permission: + bash: deny edit: "tasks/**": "allow" "tasks/**/*.md": "allow" diff --git a/.config/opencode/agent/subagents/tester.md b/.config/opencode/agent/subagents/tester.md index d690134..c177162 100644 --- a/.config/opencode/agent/subagents/tester.md +++ b/.config/opencode/agent/subagents/tester.md @@ -3,17 +3,27 @@ description: "Test authoring and TDD agent" mode: subagent model: opencode/minimax-m2.5-free temperature: 0.1 -tools: - patch: false - webfetch: false -permissions: +permission: bash: + "*": "allow" + "chmod *": "ask" + "curl *": "ask" + "docker *": "ask" + "kubectl *": "ask" "rm -rf *": "ask" "sudo *": "deny" + "wget *": "ask" edit: + "*": "allow" "**/*.env*": "deny" "**/*.key": "deny" "**/*.secret": "deny" + ".git/**": "deny" + ".venv/**": "deny" + "__pycache__/**": "deny" + "node_modules/**": "deny" + patch: deny + webfetch: deny --- # Tester Agent diff --git a/.config/opencode/agent/writer.md b/.config/opencode/agent/writer.md index c197b9e..5f4e9a0 100644 --- a/.config/opencode/agent/writer.md +++ b/.config/opencode/agent/writer.md @@ -2,18 +2,19 @@ description: "Writer agent for Markdown and LaTeX documents" mode: primary temperature: 0.1 -tools: - bash: false - patch: false - webfetch: false -permissions: +permission: + bash: deny edit: "*": "allow" "**/*.env*": "deny" "**/*.key": "deny" "**/*.secret": "deny" ".git/**": "deny" + ".venv/**": "deny" + "__pycache__/**": "deny" "node_modules/**": "deny" + patch: deny + webfetch: deny --- # Writer Agent diff --git a/.config/opencode/command/prompt-enchancer.md b/.config/opencode/command/prompt-enchancer.md deleted file mode 100644 index ed25ea9..0000000 --- a/.config/opencode/command/prompt-enchancer.md +++ /dev/null @@ -1,119 +0,0 @@ ---- -description: "Research-backed XML prompt optimizer delivering 20% performance improvement" ---- - - - Prompt optimization using empirically-proven XML structures - LLM prompt engineering with Stanford/Anthropic research patterns - 20% routing accuracy, 25% consistency, 17% performance gains - - -Expert Prompt Architect specializing in evidence-based XML structure optimization - -Transform prompts into high-performance XML following proven component ordering for measurable improvements - - - - Assess current structure against research patterns - - - Component order (context -> role -> task -> instructions) - - Length ratios (role 5-10%, context 15-25%, instructions 40-50%) - - Context management strategy presence - - Hierarchical routing implementation - - - - - Apply optimal component sequence - - 1. Context (system -> domain -> task -> execution) - 2. Role (clear identity, first 20% of prompt) - 3. Task (primary objective) - 4. Instructions (hierarchical workflow) - 5. Examples (if needed) - 6. Constraints (boundaries) - 7. Output_format (expected structure) - - - - - Implement manager-worker patterns - - - LLM-based decision making - - Explicit routing criteria with @ symbol - - Fallback strategies - - Context allocation per task type - - - - - Apply 3-level context management - - Complete isolation - subagent receives only specific task - Filtered context - curated relevant background - Windowed context - last N messages only - - - - - - - - 40% improvement in response quality with descriptive tags - - 15% reduction in token overhead for complex prompts - - Universal compatibility across models - - Explicit boundaries prevent context bleeding - - - - 5-10% of total prompt - 15-25% hierarchical information - 40-50% detailed procedures - 20-30% when needed - 5-10% boundaries - - - - Always use @ symbol (e.g., @context-provider, @research-assistant-agent) - Route to @[agent-name] when [condition] - - - - -## Analysis Results -- Current Structure Score: [X/10] -- Optimization Opportunities: [LIST] -- Expected Performance Gain: [X%] - -## Optimized Prompt Structure - -```xml - - [HIERARCHICAL CONTEXT: system -> domain -> task -> execution] - - -[AGENT IDENTITY - 5-10% of prompt] - -[PRIMARY OBJECTIVE] - - - [WORKFLOW WITH ROUTING USING @ SYMBOLS] - - -[ADDITIONAL COMPONENTS AS NEEDED] -``` - -## Implementation Notes -- Component reordering impact: +[X]% performance -- Context management efficiency: [X]% reduction -- Routing accuracy improvement: +[X]% -- Subagent references: @agent-name format maintained - - - - Stanford multi-instruction study + Anthropic XML research - Measurable 20% routing improvement - 80% reduction in unnecessary context - Ready for deployment without modification - - -