How leobtlh/openorchestra works
OpenOrchestra runs configurable multi-agent code competitions: a user selects a domain and task, the CLI starts orchestration, agents produce candidate solutions, an evaluator scores them, and the orchestrator selects a winner and records learning. Supporting branches cover domain and skill discovery, agent-count optimization, integrations, and persistent pattern memory. The graph includes core learning modules identified by the source index; unsampled internals are represented only where their references or the README support the relationship.
Main entry points: competition_orchestrator.py Competition orchestrator · competition_memory.py Competition memory · opencode_adapter.py OpenCode adapter · domain_manager.py Domain manager
Components 22
Entry and configuration
- CLI commands
src/openorchestra/cli/main.py - Project config
src/openorchestra/core/config.py - Default domains
src/openorchestra/configs/default_domains.yaml
Competition runtime
- Competition orchestrator
src/openorchestra/core/competition_orchestrator.py - Agent interface
src/openorchestra/core/agent_interface.py - Agent pool
src/openorchestra/core/agent_pool.py - Agent optimizer
src/openorchestra/core/optimizer.py
Domains and evaluation
- Domain manager
src/openorchestra/core/domain_manager.py - Skill detector
src/openorchestra/core/skill_detector.py - Quality evaluator
src/openorchestra/evaluators/quality_evaluator.py
Agent integrations
- OpenCode adapter
src/openorchestra/integrations/opencode_adapter.py - AutoDev adapter
src/openorchestra/integrations/autodev_adapter.py - Executable probe
src/openorchestra/integrations/process.py
Learning and memory
- Hierarchical learner
src/openorchestra/core/hierarchical_learner.py - Context compressor
src/openorchestra/core/context_compressor.py - Pattern clustering
src/openorchestra/core/pattern_cluster.py - Pattern signatures
src/openorchestra/core/pattern_signature.py - LRU cache
src/openorchestra/core/lru_cache.py - Competition memory
src/openorchestra/memory/competition_memory.py
Other components
- Competition user
- OpenCode executable
- SQLite memory store
Connections 28
- Competition user → CLI commands: runs commands
README.md - CLI commands → Competition orchestrator: starts competition
src/openorchestra/cli/main.py - CLI commands → Project config: loads config
src/openorchestra/cli/main.py - CLI commands → Domain manager: manages domains
src/openorchestra/cli/main.py - Domain manager → Default domains: loads defaults
- Domain manager → Skill detector: checks skills
src/openorchestra/core/domain_manager.py - Skill detector → Domain manager: queries domains
src/openorchestra/core/skill_detector.py - Competition orchestrator → Project config: loads settings
src/openorchestra/core/competition_orchestrator.py - Competition orchestrator → Domain manager: resolves domain
src/openorchestra/core/competition_orchestrator.py - Competition orchestrator → Agent optimizer: chooses agent count
src/openorchestra/core/competition_orchestrator.py - Competition orchestrator → OpenCode adapter: runs agents
src/openorchestra/core/competition_orchestrator.py - Competition orchestrator → AutoDev adapter: runs tournament
src/openorchestra/core/competition_orchestrator.py - Competition orchestrator → Quality evaluator: scores solutions
src/openorchestra/core/competition_orchestrator.py - Competition orchestrator → Competition memory: records learning
src/openorchestra/core/competition_orchestrator.py - Agent pool → Agent interface: creates agents
src/openorchestra/core/agent_pool.py - Agent interface → OpenCode adapter: delegates execution
src/openorchestra/core/agent_interface.py - Agent interface → AutoDev adapter: delegates execution
src/openorchestra/core/agent_interface.py - OpenCode adapter → OpenCode executable: runs command
src/openorchestra/integrations/opencode_adapter.py - OpenCode adapter → Skill detector: detects skills
src/openorchestra/integrations/opencode_adapter.py - OpenCode adapter → Executable probe: probes executable
src/openorchestra/integrations/opencode_adapter.py - AutoDev adapter → Executable probe: probes executable
src/openorchestra/integrations/autodev_adapter.py - Competition memory → SQLite memory store: reads and writes
src/openorchestra/memory/competition_memory.py - Competition memory → LRU cache: caches context
src/openorchestra/memory/competition_memory.py - Competition memory → Pattern clustering: clusters patterns
src/openorchestra/memory/competition_memory.py - Competition memory → Pattern signatures: signs patterns
src/openorchestra/memory/competition_memory.py - Pattern clustering → Pattern signatures: compares signatures
src/openorchestra/core/pattern_cluster.py - Hierarchical learner → Pattern signatures: uses signatures
src/openorchestra/core/hierarchical_learner.py - Context compressor → Pattern signatures: uses signatures
src/openorchestra/core/context_compressor.py