How kavish07/multicomm-ensemble works
multicomm_ensemble is a weighted multi-LLM ensemble for coding agents. Adapters accept work as AgentTask and invoke the pipeline, which derives model weights, selects and compresses visual input when applicable, gathers parallel proposals, execution-tests candidates, fuses viable results, then validates and enriches a provenance-bearing response. README capabilities also include WIF and optional WeightNet weighting, TextRoute, modality routing, and the OpenCode and Claude Code integrations. Edges follow pipeline calls and adapter excerpts; optional provider and aggregator services are shown separately. Other subsystem links are included only where README or indexed source references support them.
Main entry points: pipeline.py Pipeline · weights.py Weight derivation · proposers.py Parallel proposers · config.py Model configuration
Components 19
Agent Integrations
- OpenCode adapter
multicomm_ensemble/adapters/opencode.py - Claude Code hook
multicomm_ensemble/adapters/claude_code_hook.py
Pipeline Orchestration
- AgentTask
multicomm_ensemble/task.py - Pipeline
multicomm_ensemble/pipeline.py - Model configuration
multicomm_ensemble/config.py - Modality routing
multicomm_ensemble/modalswitch.py - Image compression
multicomm_ensemble/imgcompress.py
Weighting
- Weight derivation
multicomm_ensemble/weights.py - WIF priors
multicomm_ensemble/wif.py - Prior dataset
data/weight_prior_dataset.csv - WeightNet predictor
multicomm_ensemble/weightnet.py
Proposal and Fusion
- Parallel proposers
multicomm_ensemble/proposers.py - LLM providers
- Weight-conditioned fusion
multicomm_ensemble/fusion.py - Fusion model
Validation and Routing
- Execution filter
multicomm_ensemble/exec_filter.py - TextRoute validation
multicomm_ensemble/textroute.py
Other components
- Coding agent
- Agent environment
Connections 25
- Coding agent → OpenCode adapter: sends request
multicomm_ensemble/adapters/opencode.py - OpenCode adapter → AgentTask: builds task
multicomm_ensemble/adapters/opencode.py - OpenCode adapter → Pipeline: invokes
multicomm_ensemble/adapters/opencode.py - Coding agent → Claude Code hook: sends tool input
multicomm_ensemble/adapters/claude_code_hook.py - Claude Code hook → AgentTask: builds task
multicomm_ensemble/adapters/claude_code_hook.py - Claude Code hook → Pipeline: invokes
multicomm_ensemble/adapters/claude_code_hook.py - Pipeline → AgentTask: accepts
multicomm_ensemble/pipeline.py - Pipeline → Weight derivation: derives weights
multicomm_ensemble/pipeline.py - Weight derivation → WIF priors: loads priors
multicomm_ensemble/weights.py - WIF priors → Prior dataset: reads
multicomm_ensemble/wif.py - Weight derivation → WeightNet predictor: predicts scores
multicomm_ensemble/weights.py - Pipeline → Modality routing: decides modality
multicomm_ensemble/pipeline.py - Pipeline → Image compression: encodes image
multicomm_ensemble/pipeline.py - Pipeline → Parallel proposers: runs proposals
multicomm_ensemble/pipeline.py - Parallel proposers → LLM providers: calls models
multicomm_ensemble/proposers.py - Pipeline → Execution filter: reweights candidates
multicomm_ensemble/pipeline.py - Pipeline → Weight-conditioned fusion: fuses candidates
multicomm_ensemble/pipeline.py - Weight-conditioned fusion → Fusion model: requests synthesis
multicomm_ensemble/fusion.py - Pipeline → TextRoute validation: validates message
multicomm_ensemble/pipeline.py - TextRoute validation → Agent environment: routes result
README.md - Pipeline → Model configuration: checks mode
multicomm_ensemble/pipeline.py - Weight derivation → Model configuration: selects source
multicomm_ensemble/weights.py - Parallel proposers → Model configuration: selects providers
multicomm_ensemble/proposers.py - Weight-conditioned fusion → Model configuration: configures model
multicomm_ensemble/fusion.py - Execution filter → Parallel proposers: uses proposal type
multicomm_ensemble/exec_filter.py