- .opencode/agents/: Rollen geschärft (Orchestrator, Content-, Lore-, Session-Lead, Worker-Organizer/-Reader/-Writer) - neue Research-Agenten (dnd-research-dispatch, -ideas, -rag, -websearch) samt RESEARCH_DISPATCH_README.md - .opencode/opencode.json und MULTI_MODEL_SETUP.md auf die neue Modell- und MCP-Konfiguration umgestellt - neuer Skill humanizer, Skill dnd-quest-designer ergänzt
12 KiB
Research Dispatch System - Quick Start Guide
🎯 Overview
The Research Dispatch System is a new infrastructure for content generation in the Morgendämmerung campaign. It ensures that all new content (NPCs, quests, locations, items, organizations) is based on:
- Web Research - D&D rules, SCP Foundation inspiration, DM tips
- Vault Research - Existing content, similar topics, open ideas
- Creative Idea Generation - Multiple options based on research findings
🔄 How It Works
The Flow
User Request → Orchestrator → Research Dispatch → (Parallel)
├─ Web Search Agent (DeepSeek Flash)
├─ RAG Agent (DeepSeek Flash)
└─ Ideas Agent (Claude Sonnet 5.5)
→ Synthesized Results → User Selection → Content Lead → Implementation
Step-by-Step
- User requests new content (e.g., "Create a new NPC for the Cult of Darkness")
- Orchestrator recognizes content creation and calls
dnd-research-dispatch - Research Dispatch coordinates three parallel searches:
- Web Search: Finds D&D rules, SCP articles, DM tips online
- RAG (Retrieval-Augmented Generation): Searches vault for similar content and open ideas
- Ideas Generation: Creates 5 creative ideas based on research findings
- Research Dispatch synthesizes results into structured format with:
- Web research summary
- Vault content connections
- 3-5 creative ideas with sources
- Orchestrator presents ideas to user for selection
- User selects preferred idea
- Orchestrator delegates to Content Lead with selected idea + research context
- Content Lead creates the content using worker agents
📁 New Agents Created
1. dnd-research-dispatch.md
- Role: Research coordinator
- Model: DeepSeek Flash
- Purpose: Orchestrates the three research sub-agents and synthesizes results
2. dnd-research-websearch.md
- Role: Web research agent
- Model: DeepSeek Flash
- Purpose: Searches for D&D rules, SCP Foundation articles, DM tips online
- Permissions: webfetch, websearch only
3. dnd-research-rag.md
- Role: Vault research agent
- Model: DeepSeek Flash
- Purpose: Searches vault for similar topics, existing content, open ideas
- Permissions: read, glob, grep only
4. dnd-research-ideas.md
- Role: Idea generation agent
- Model: Claude Sonnet 5.5 (
anthropic/claude-sonnet-5-5) - Purpose: Generates 5 creative ideas based on research context
- Permissions: NONE (pure generation only)
🔧 Configuration Changes
Updated Files
-
dnd-orchestrator.md
- Added research dispatch integration
- New workflow: For content creation, ALWAYS call
dnd-research-dispatchfirst - Updated delegation rules
-
opencode.json
- Added all four new research agents
- Configured permissions for each agent
- Set correct models (DeepSeek Flash for most, Claude Sonnet for ideas)
-
MULTI_MODEL_SETUP.md
- Updated architecture diagram
- Added research dispatch system documentation
- Updated workflow examples
💡 Benefits
For Content Quality
- ✅ All new content based on thorough research
- ✅ Connections to existing vault content maximized
- ✅ SCP Foundation inspiration for unique ideas
- ✅ DM best practices integrated
For Cost Efficiency
- ✅ Uses DeepSeek Flash for 2 out of 3 research agents
- ✅ Only uses Claude Sonnet (medium cost) for idea generation
- ✅ No Claude Opus needed for standard content creation
- ✅ Estimated 80-90% cost reduction vs. all-premium approach
For User Experience
- ✅ Multiple creative options for each request
- ✅ Transparent research process
- ✅ Structured results with sources
- ✅ User maintains control over creative direction
🚀 Usage
For Users
Just ask the orchestrator as usual:
@dnd-orchestrator Create a new magic item for the Cult of Darkness
The system will automatically:
- Conduct web research
- Search the vault
- Generate ideas
- Present options
- Implement your selection
For Direct Testing
You can test the research dispatch directly:
@dnd-research-dispatch Conduct research for new NPC, theme: thieves guild, location: Klagenfels
This will return structured research results with 5 creative NPC ideas.
📊 Agent Specifications
| Agent | Model | Temperature | Key Permissions | Purpose |
|---|---|---|---|---|
| dnd-research-dispatch | DeepSeek Flash | 0.3 | read, glob, grep, subagent | Coordinate research |
| dnd-research-websearch | DeepSeek Flash | 0.2 | webfetch, websearch | Online research |
| dnd-research-rag | DeepSeek Flash | 0.1 | read, glob, grep | Vault research |
| dnd-research-ideas | Claude Sonnet 5.5 (anthropic/claude-sonnet-5-5) |
1.0 | NONE | Idea generation |
🔗 Dependencies
Required Models
- DeepSeek Flash (for dispatch, websearch, RAG)
- Claude Sonnet 5.5 (
anthropic/claude-sonnet-5-5) (for ideas generation)
Deprecated
dnd-creative(Claude Opus 4.6) is DEPRECATED and disabled - do not use
🛠️ Customization
Adjusting Search Behavior
Edit the agent files to modify:
- dnd-research-websearch.md: Change search queries, sources, result format
- dnd-research-rag.md: Change vault search patterns, result format
- dnd-research-ideas.md: Change idea generation style, format
Adding New Research Sources
To add new research capabilities:
- Create a new research agent (e.g.,
dnd-research-images.mdfor image search) - Update
dnd-research-dispatch.mdto include the new agent - Update
opencode.jsonwith the new agent configuration - Update the dispatch logic to call the new agent
📝 Example Output
Input
@dnd-research-dispatch Conduct research for new magic item, theme: truth-revealing, context: Cult of Darkness in Klagenfels
Output Structure
## Forschungs-Ergebnisse für magischer Gegenstand (Wahrheit)
### Web-Recherche
- **SCP-Inspiration**:
- SCP-2718: Haus das alternative Realitäten zeigt (Keter-Klasse)
- SCP-148: Television das Vergangenheit zeigt (Safe-Klasse)
- **D&D-Regeln**:
- Deck of Many Things: Mechanik für zufällige Effekte
- Scrying Sensor: Mechanik für ferne Beobachtung
- **DM-Tipps**:
- "Magic mirrors should have limitations to prevent abuse"
- "Use truth-revealing items to create moral dilemmas"
### Vault-Recherche
- **Bestehende Inhalte**:
- [[Kult der Finsternis]] (`04-Entities/Organizations/Kult der Finsternis.md`)
- [[Klagenfels]] (`02-World/Locations/Klagenfels.md`)
- [[Tempel der Finsternis]] (`02-World/Locations/Tempel der Finsternis.md`)
- **Offene Ideen**:
- "Artefakt das Erinnerungen speichert" (`05-Ideas/Worldbuilding/gestohlenes-artefakt.md`)
### Generierte Ideen
1. Spiegel der Lügen: Zeigt die größte Lüge des Betrachters statt seines Abbilds
2. Amulett der gestohlenen Erinnerungen: Speichert und präsentiert Erinnerungen vorheriger Besitzer
3. Deck der Schatten: Offbart dunkle Geheimnisse statt zufälliger Effekte
4. Ring der alternativen Realität: Versetzt Träger in eine Version von Klagenfels, in der der Kult regiert
5. Kristall der flüsternden Stimmen: Speichert Stimmen aller vorherigen Besitzer
### Empfehlung
Idee 1 (Spiegel der Lügen) passt am besten zum Kult der Finsternis und bietet gute RPG-Möglichkeiten für moralische Dilemmata.
🎯 Best Practices
For the Orchestrator
- ALWAYS use research dispatch for content creation
- Provide clear context to research dispatch (theme, type, location, etc.)
- Present all options to the user before implementation
- Pass research context to content lead for implementation
For Research Dispatch
- Always use all three sub-agents
- Provide sufficient context to each sub-agent
- Synthesize results clearly
- Generate 5 ideas minimum
For Web Search Agent
- Use specific search queries
- Prioritize SCP Foundation for inspiration
- Include D&D official sources for rules
- Add DM community sources for tips
For RAG Agent
- Use glob patterns for efficient searching
- Prioritize high-relevance results
- Include wiki links in all results
- Identify connections to existing content
For Ideas Agent
- Use research context for all ideas
- Be specific - avoid vague concepts
- Be creative - think outside the box
- Stay in German - all ideas must be in German
🔄 Migration Guide
From Old System
Before: Content creation went directly to dnd-content-lead
Now: Content creation goes through dnd-research-dispatch first
Updating Existing Workflows
If you have custom workflows that create content:
- Insert
dnd-research-dispatchcall before content creation - Pass research results to the content creation step
- Ensure user selection happens between research and implementation
Backward Compatibility
The old dnd-creative agent (Claude Opus 4.6) is now DEPRECATED (disabled: true, hidden: true).
It has been fully replaced by dnd-research-ideas (Claude Sonnet 5.5) in the research dispatch system.
Do not use dnd-creative anymore.
🛡️ Security
Agent Isolation
- Web Search: Only web access, no vault access
- RAG: Only read access, no write access
- Ideas: No tool access at all
- Dispatch: Limited delegation to research sub-agents only
Data Flow
- Research context flows one way: Web/RAG → Ideas → Dispatch → Orchestrator
- No agent can modify vault content except through proper delegation
- All research is read-only until user selects an idea for implementation
📊 Performance
Expected Response Times
- Research Dispatch: 8-15 seconds (parallel sub-agents)
- Web Search: 5-10 seconds
- RAG: 3-8 seconds
- Ideas: 3-6 seconds
- Total: ~15-20 seconds for full research cycle
Cost per Content Creation
- DeepSeek Flash: ~1000-1500 tokens (dispatch + web + RAG)
- Claude Sonnet: ~50-100 tokens (ideas)
- Total: ~1050-1600 tokens per content creation request
🆘 Troubleshooting
Common Issues
Problem: Research dispatch not returning results
- Solution: Check that all three sub-agents have correct permissions in opencode.json
Problem: Web search returning irrelevant results
- Solution: Refine search queries in dnd-research-websearch.md
Problem: RAG not finding relevant vault content
- Solution: Check glob patterns and search terms in dnd-research-rag.md
Problem: Ideas not creative enough
- Solution: Increase temperature in dnd-research-ideas.md (currently 1.0)
Problem: Timeout errors
- Solution: Research dispatch runs 3 agents in parallel - this is expected and may take 15-20 seconds
Debugging
To debug the research dispatch system:
-
Test each agent individually:
@dnd-research-websearch Suche nach SCP Artefakten für magische Items @dnd-research-rag Suche im Vault nach Kult der Finsternis @dnd-research-ideas KONTEXT: magisches Item, Kult der Finsternis, SCP-2718 Inspiration -
Check opencode.json permissions: Ensure all agents have correct permissions
-
Review agent logs: Check for errors in agent execution
📚 Related Documentation
- Main Setup:
.opencode/MULTI_MODEL_SETUP.md- Complete system documentation - Agent Files:
.opencode/agents/dnd-research-*.md- Individual agent specifications - Configuration:
.opencode/opencode.json- Agent permissions and models
✅ Checklist for Implementation
- Created
dnd-research-dispatch.md - Created
dnd-research-websearch.md - Created
dnd-research-rag.md - Created
dnd-research-ideas.md - Updated
dnd-orchestrator.mdwith research dispatch integration - Updated
opencode.jsonwith new agents and permissions - Updated
MULTI_MODEL_SETUP.mdwith new architecture - Created this README file
All done! The research dispatch system is ready to use.
🎉 Next Steps
- Test the system: Try creating a new NPC, location, or item
- Review results: Check that research is comprehensive and ideas are creative
- Adjust as needed: Fine-tune search queries, result formats, or idea generation
- Document feedback: Note any issues or improvements for future updates
The research dispatch system will ensure that all new content in your Morgendämmerung campaign is well-researched, connected to existing lore, and creatively inspired!