|
|
4 months ago | |
|---|---|---|
| .. | ||
| README.md | 4 months ago | |
| guide.md | 4 months ago | |
| quick-start.md | 4 months ago | |
Build complete, production-ready AI systems tailored to your domain in minutes.
The system builder is included in the Advanced profile:
curl -fsSL https://raw.githubusercontent.com/darrenhinde/opencode-agents/main/install.sh | bash -s advanced
What you get:
Already have core, developer, or full profile? Add system builder:
# Run advanced profile
curl -fsSL https://raw.githubusercontent.com/darrenhinde/opencode-agents/main/install.sh | bash -s advanced
# When prompted about collisions:
# Choose: 1) Skip existing
# Result: Only system-builder components added
/build-context-system
This launches an interactive interview that generates a complete .opencode system customized to your needs.
Transforms your requirements into a complete AI system with:
✅ Main Orchestrator Agent - Intelligent coordinator
✅ Specialized Subagents - Domain-specific experts (3-7 agents)
✅ Organized Context Files - Modular knowledge base
✅ Workflow Definitions - Reusable process patterns
✅ Custom Slash Commands - User-friendly interfaces
✅ Complete Documentation - README, architecture, testing guides
Scans for existing .opencode/
↓
If found: Offers merge options
- Extend existing (recommended)
- Create separate system
- Replace (with backup)
- Cancel
↓
If not found: Fresh build
Analyzes your domain
↓
Classifies as:
- Development (code, testing, builds)
- Business (content, reports, processes)
- Hybrid (both technical and business)
↓
Adapts questions to your domain type
Phase 1: Domain & Purpose
Phase 2: Use Cases & Workflows
Phase 3: Complexity & Scale
Phase 4: Integration & Tools
Phase 5: Review & Confirmation
Routes to specialized subagents:
- domain-analyzer: Identifies concepts and agents
- agent-generator: Creates XML-optimized agents
- context-organizer: Organizes knowledge files
- workflow-designer: Designs process workflows
- command-creator: Creates slash commands
↓
Generates complete system
↓
Integrates with existing agents
Command: /build-context-system "Code review automation"
Domain Type: Development
Questions Adapted:
Generated:
Integration: Leverages existing codebase-agent, reviewer, tester
Command: /build-context-system "E-commerce order processing"
Domain Type: Business
Questions Adapted:
Generated:
Integration: Leverages existing task-manager, workflow-orchestrator
Existing: Dev tools (codebase-agent, build-agent, tester)
Command: /build-context-system "Add documentation generation"
Flow:
.opencode/
├── agent/
│ ├── {domain}-orchestrator.md # Main coordinator
│ └── subagents/
│ ├── {specialist-1}.md
│ ├── {specialist-2}.md
│ └── {specialist-3}.md
├── context/
│ ├── domain/ # Core knowledge
│ ├── processes/ # Workflows
│ ├── standards/ # Quality rules
│ └── templates/ # Reusable patterns
├── workflows/
│ ├── {workflow-1}.md
│ └── {workflow-2}.md
├── command/
│ ├── {command-1}.md
│ └── {command-2}.md
├── README.md # System overview
├── ARCHITECTURE.md # Architecture guide
├── TESTING.md # Testing checklist
└── QUICK-START.md # Usage examples
All generated systems implement proven patterns:
The system detects and integrates with existing agents:
Development Agents:
codebase-agent - Code analysis, file operationsbuild-agent - Build validation, type checkingtester - Test authoring, TDDreviewer - Code review, quality assurancecoder-agent - Code generationdocumentation - Documentation authoringBusiness Agents:
task-manager - Task tracking, project managementworkflow-orchestrator - Workflow coordinationimage-specialist - Image generation/editingIntegration Strategy:
.opencode.backup.{timestamp}/Generated systems score 8+/10 on:
Agent Quality:
Context Organization:
Workflow Completeness:
Documentation Clarity:
.opencode/command/build-context-system.md - Entry point.opencode/agent/system-builder.md - Coordinates generation.opencode/agent/subagents/domain-analyzer.md - Domain analysis.opencode/agent/subagents/agent-generator.md - Agent generation.opencode/agent/subagents/context-organizer.md - Context organization.opencode/agent/subagents/workflow-designer.md - Workflow design.opencode/agent/subagents/command-creator.md - Command creation.opencode/context/system-builder-templates/ - Reusable patterns.opencode/CONTEXT-SYSTEM-BUILDER.md - Detailed documentation.opencode/SYSTEM-BUILDER-README.md - This fileBe specific about use cases
Identify dependencies
Choose appropriate merge strategy
Customize after generation
Fresh Build:
/build-context-system "Your domain name"
Extend Existing:
/build-context-system "Add new capability"
# → Detects existing
# → Choose "Extend existing"
# → Integrates with current system
Multi-Domain:
/build-context-system "Client B project"
# → Detects existing Client A
# → Choose "Create separate"
# → Both systems coexist
Issue: System overwrites existing files
Solution: Stage 0 should detect existing project and offer merge options. If not working, check project detection logic.
Issue: Questions don't match my domain
Solution: Stage 2.5 should detect domain type. Verify domain classification logic.
Issue: Doesn't integrate with existing agents
Solution: Check that existing agents are in .opencode/agent/ or .opencode/agent/subagents/
Issue: Generated agents don't route correctly
Solution: Verify @ symbol usage and context level specifications in agent files
After initial generation, you can:
Modify templates in .opencode/context/system-builder-templates/ to customize generation patterns.
Study generated orchestrators to understand integration patterns for your own agents.
Time: 10-15 minutes from start to production-ready system
Quality: All components score 8+/10
Safety: No data loss, backup before replace
Integration: Leverages existing agents, no duplication
Adaptability: Works for any domain (dev or non-dev)
/build-context-system.opencode/CONTEXT-SYSTEM-BUILDER.md.opencode/context/system-builder-templates/.opencode/context/system-builder-templates/SYSTEM-BUILDER-GUIDE.mdFor questions or issues:
Ready to build your context-aware AI system?
/build-context-system