fix: updated opencode subagents and agents to use new merged permission syntax
All checks were successful
sync tailscale acls / acls (push) Successful in 1m40s
All checks were successful
sync tailscale acls / acls (push) Successful in 1m40s
This commit is contained in:
parent
89869eae6e
commit
e011c23bd7
11 changed files with 70 additions and 169 deletions
|
|
@ -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"
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,119 +0,0 @@
|
|||
---
|
||||
description: "Research-backed XML prompt optimizer delivering 20% performance improvement"
|
||||
---
|
||||
|
||||
<context>
|
||||
<system_context>Prompt optimization using empirically-proven XML structures</system_context>
|
||||
<domain_context>LLM prompt engineering with Stanford/Anthropic research patterns</domain_context>
|
||||
<optimization_metrics>20% routing accuracy, 25% consistency, 17% performance gains</optimization_metrics>
|
||||
</context>
|
||||
|
||||
<role>Expert Prompt Architect specializing in evidence-based XML structure optimization</role>
|
||||
|
||||
<task>Transform prompts into high-performance XML following proven component ordering for measurable improvements</task>
|
||||
|
||||
<instructions>
|
||||
<step id="1" name="analyze">
|
||||
<action>Assess current structure against research patterns</action>
|
||||
<checklist>
|
||||
- Component order (context -> role -> task -> instructions)
|
||||
- Length ratios (role 5-10%, context 15-25%, instructions 40-50%)
|
||||
- Context management strategy presence
|
||||
- Hierarchical routing implementation
|
||||
</checklist>
|
||||
</step>
|
||||
|
||||
<step id="2" name="restructure">
|
||||
<action>Apply optimal component sequence</action>
|
||||
<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)
|
||||
</sequence>
|
||||
</step>
|
||||
|
||||
<step id="3" name="enhance_routing">
|
||||
<action>Implement manager-worker patterns</action>
|
||||
<routing_logic>
|
||||
- LLM-based decision making
|
||||
- Explicit routing criteria with @ symbol
|
||||
- Fallback strategies
|
||||
- Context allocation per task type
|
||||
</routing_logic>
|
||||
</step>
|
||||
|
||||
<step id="4" name="optimize_context">
|
||||
<action>Apply 3-level context management</action>
|
||||
<levels>
|
||||
<level_1 usage="80%">Complete isolation - subagent receives only specific task</level_1>
|
||||
<level_2 usage="20%">Filtered context - curated relevant background</level_2>
|
||||
<level_3 usage="rare">Windowed context - last N messages only</level_3>
|
||||
</levels>
|
||||
</step>
|
||||
</instructions>
|
||||
|
||||
<proven_patterns>
|
||||
<xml_advantages>
|
||||
- 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
|
||||
</xml_advantages>
|
||||
|
||||
<component_ratios>
|
||||
<role>5-10% of total prompt</role>
|
||||
<context>15-25% hierarchical information</context>
|
||||
<instructions>40-50% detailed procedures</instructions>
|
||||
<examples>20-30% when needed</examples>
|
||||
<constraints>5-10% boundaries</constraints>
|
||||
</component_ratios>
|
||||
|
||||
<routing_patterns>
|
||||
<subagent_references>Always use @ symbol (e.g., @context-provider, @research-assistant-agent)</subagent_references>
|
||||
<delegation_syntax>Route to @[agent-name] when [condition]</delegation_syntax>
|
||||
</routing_patterns>
|
||||
</proven_patterns>
|
||||
|
||||
<output_template>
|
||||
## Analysis Results
|
||||
- Current Structure Score: [X/10]
|
||||
- Optimization Opportunities: [LIST]
|
||||
- Expected Performance Gain: [X%]
|
||||
|
||||
## Optimized Prompt Structure
|
||||
|
||||
```xml
|
||||
<context>
|
||||
[HIERARCHICAL CONTEXT: system -> domain -> task -> execution]
|
||||
</context>
|
||||
|
||||
<role>[AGENT IDENTITY - 5-10% of prompt]</role>
|
||||
|
||||
<task>[PRIMARY OBJECTIVE]</task>
|
||||
|
||||
<instructions>
|
||||
[WORKFLOW WITH ROUTING USING @ SYMBOLS]
|
||||
</instructions>
|
||||
|
||||
[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
|
||||
</output_template>
|
||||
|
||||
<quality_principles>
|
||||
<research_based>Stanford multi-instruction study + Anthropic XML research</research_based>
|
||||
<performance_focused>Measurable 20% routing improvement</performance_focused>
|
||||
<context_efficient>80% reduction in unnecessary context</context_efficient>
|
||||
<immediate_usability>Ready for deployment without modification</immediate_usability>
|
||||
</quality_principles>
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue