Files
DnD-Kampagne/.opencode/RESEARCH_DISPATCH_README.md
Sebastian d31f3b79ab chore: Agenten- und Skill-Konfiguration aktualisieren
- .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
2026-11-14 16:35:48 +01:00

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:

  1. Web Research - D&D rules, SCP Foundation inspiration, DM tips
  2. Vault Research - Existing content, similar topics, open ideas
  3. 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

  1. User requests new content (e.g., "Create a new NPC for the Cult of Darkness")
  2. Orchestrator recognizes content creation and calls dnd-research-dispatch
  3. 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
  4. Research Dispatch synthesizes results into structured format with:
    • Web research summary
    • Vault content connections
    • 3-5 creative ideas with sources
  5. Orchestrator presents ideas to user for selection
  6. User selects preferred idea
  7. Orchestrator delegates to Content Lead with selected idea + research context
  8. 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

  1. dnd-orchestrator.md

    • Added research dispatch integration
    • New workflow: For content creation, ALWAYS call dnd-research-dispatch first
    • Updated delegation rules
  2. opencode.json

    • Added all four new research agents
    • Configured permissions for each agent
    • Set correct models (DeepSeek Flash for most, Claude Sonnet for ideas)
  3. 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:

  1. Conduct web research
  2. Search the vault
  3. Generate ideas
  4. Present options
  5. 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:

  1. Create a new research agent (e.g., dnd-research-images.md for image search)
  2. Update dnd-research-dispatch.md to include the new agent
  3. Update opencode.json with the new agent configuration
  4. 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:

  1. Insert dnd-research-dispatch call before content creation
  2. Pass research results to the content creation step
  3. 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:

  1. 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
    
  2. Check opencode.json permissions: Ensure all agents have correct permissions

  3. Review agent logs: Check for errors in agent execution

  • 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.md with research dispatch integration
  • Updated opencode.json with new agents and permissions
  • Updated MULTI_MODEL_SETUP.md with new architecture
  • Created this README file

All done! The research dispatch system is ready to use.


🎉 Next Steps

  1. Test the system: Try creating a new NPC, location, or item
  2. Review results: Check that research is comprehensive and ideas are creative
  3. Adjust as needed: Fine-tune search queries, result formats, or idea generation
  4. 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!