Build complete, production-ready AI systems tailored to your domain in minutes.
The Context-Aware System Builder is a sophisticated meta-system that generates complete .opencode folder architectures customized to your specific domain, use cases, and requirements. It combines prompt-enhancer techniques with comprehensive context-aware system design principles to create production-ready AI systems.
Transforms your requirements into a complete AI system with:
✅ Main Orchestrator Agent - Intelligent coordinator that analyzes requests and routes to specialists
✅ Specialized Subagents - Domain-specific experts (3-7 agents)
✅ Organized Context Files - Modular knowledge base (domain/processes/standards/templates)
✅ Workflow Definitions - Reusable process patterns
✅ Custom Slash Commands - User-friendly interfaces
✅ Complete Documentation - README, architecture guide, testing checklist, quick start
/build-context-system
This launches an interactive interview (5-10 minutes) that guides you through defining your system.
/build-context-systemLocation: .opencode/command/build-context-system.md
Purpose: Interactive interview that gathers requirements and coordinates system generation
Process:
system-builderLocation: .opencode/agent/system-builder.md
Purpose: Coordinates specialized subagents to generate complete systems
Workflow:
domain-analyzerLocation: .opencode/agent/subagents/domain-analyzer.md
Purpose: Analyzes user domains to identify core concepts, recommended agents, and context structure
Inputs:
Outputs:
agent-generatorLocation: .opencode/agent/subagents/agent-generator.md
Purpose: Generates XML-optimized agent files following research-backed patterns
Inputs:
Outputs:
Optimizations Applied:
context-organizerLocation: .opencode/agent/subagents/context-organizer.md
Purpose: Organizes and generates context files in modular 50-200 line files
Inputs:
Outputs:
workflow-designerLocation: .opencode/agent/subagents/workflow-designer.md
Purpose: Designs complete workflow definitions with context dependencies
Inputs:
Outputs:
command-creatorLocation: .opencode/agent/subagents/command-creator.md
Purpose: Creates custom slash commands with clear syntax and examples
Inputs:
Outputs:
Location: .opencode/context/system-builder-templates/
Contents:
orchestrator-template.md - Main coordinator patternsubagent-template.md - Specialized agent patternREADME.md - Template library guideSYSTEM-BUILDER-GUIDE.md - Complete usage guidePurpose: Provides reusable XML patterns for consistent, high-quality generation
User runs /build-context-system
↓
Interview Process
↓
system-builder (orchestrator)
↓
┌────┴────┬────────┬────────┬────────┐
↓ ↓ ↓ ↓ ↓
domain- agent- context- workflow- command-
analyzer generator organizer designer creator
↓ ↓ ↓ ↓ ↓
└─────────┴────────┴────────┴────────┘
↓
Complete .opencode System
Level 1: Complete Isolation (80% of generation tasks)
Level 2: Filtered Context (20% of generation tasks)
Level 3: Windowed Context (Never used in generation)
.opencode/
├── agent/
│ ├── {domain}-orchestrator.md # Main coordinator
│ └── subagents/
│ ├── {specialist-1}.md # Domain-specific agents
│ ├── {specialist-2}.md
│ └── {specialist-3}.md
├── context/
│ ├── domain/ # Core knowledge
│ │ ├── core-concepts.md
│ │ ├── terminology.md
│ │ ├── business-rules.md
│ │ └── data-models.md
│ ├── processes/ # Workflows
│ │ ├── standard-workflow.md
│ │ ├── integration-patterns.md
│ │ ├── edge-cases.md
│ │ └── escalation-paths.md
│ ├── standards/ # Quality rules
│ │ ├── quality-criteria.md
│ │ ├── validation-rules.md
│ │ └── error-handling.md
│ ├── templates/ # Reusable patterns
│ │ ├── output-formats.md
│ │ └── common-patterns.md
│ └── README.md # Context guide
├── workflows/
│ ├── {workflow-1}.md # Process definitions
│ ├── {workflow-2}.md
│ └── README.md # Workflow guide
├── command/
│ ├── {command-1}.md # Slash commands
│ └── {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:
/build-context-system
Interview Responses:
Generated System:
ecommerce-orchestratororder-processor, inventory-checker, payment-handler, shipping-calculator, refund-managersimple-order, complex-order, refund-process/process-order, /check-inventory, /process-refund, /generate-label/build-context-system
Interview Responses:
Generated System:
data-pipeline-orchestratordata-extractor, transformation-engine, quality-validator, data-loaderstandard-etl, complex-transformation, data-quality-check/run-pipeline, /validate-data, /transform-data/build-context-system
Interview Responses:
Generated System:
content-orchestratorresearch-assistant, content-generator, quality-validator, platform-formatter, publisherresearch-enhanced, multi-platform, quick-post/create-content, /research-topic, /validate-content, /publishGenerated systems must meet these criteria:
After generation, customize:
Issue: Interview doesn't capture all requirements
Solution: You can revise before generation or customize after
Issue: Generated agents don't route correctly
Solution: Check @ symbol usage and context level specifications in agent files
Issue: Context files are too large
Solution: Split into smaller, focused files (target 50-200 lines)
Issue: Workflows are unclear
Solution: Add more detailed steps and examples in workflow files
Issue: Commands don't work as expected
Solution: Verify agent routing in command frontmatter
.opencode/command/build-context-system.md - Interactive interview command.opencode/agent/system-builder.md - Main orchestrator.opencode/agent/subagents/domain-analyzer.md - Domain analysis specialist.opencode/agent/subagents/agent-generator.md - Agent file generator.opencode/agent/subagents/context-organizer.md - Context file organizer.opencode/agent/subagents/workflow-designer.md - Workflow designer.opencode/agent/subagents/command-creator.md - Command creator.opencode/context/system-builder-templates/README.md - Template guide.opencode/context/system-builder-templates/orchestrator-template.md - Orchestrator pattern.opencode/context/system-builder-templates/subagent-template.md - Subagent pattern.opencode/context/system-builder-templates/SYSTEM-BUILDER-GUIDE.md - Complete usage guide.opencode/CONTEXT-SYSTEM-BUILDER.md - This file/build-context-system.opencode/context/system-builder-templates/.opencode/context/system-builder-templates/SYSTEM-BUILDER-GUIDE.mdReady to build your context-aware AI system?
/build-context-system
Questions? Review the comprehensive guide at:
.opencode/context/system-builder-templates/SYSTEM-BUILDER-GUIDE.md