Multi-Agent Consensus
Three different AI models analyze every package in parallel. Each submits an independent risk score on-chain. Scores are aggregated using intelligence-weighted averaging.Agent Lineup
Model diversity reduces single-model blind spots. Override via
AGENT1_MODEL, AGENT2_MODEL, AGENT3_MODEL.
What Each Agent Does
- Receives package source,
package.json, version history, and any known CVEs - Produces structured JSON: risk score (0-100), risk level, reasoning, vulnerability list, supply chain indicators
- Submits score on-chain via
OPMRegistry.submitScore()
Intelligence-Weighted Scoring
WhenARTIFICIAL_ANALYSIS_API_KEY is set, scores are weighted by each model’s Intelligence Index and Coding Index from the Artificial Analysis API. Higher-capability models carry more weight in the final score.
Without the API key, agents are weighted equally (simple mean).
Provider Routing
OPENROUTER_API_KEYset → routes through OpenRouter (multi-model)- Only
OPENAI_API_KEY→ falls back to GPT-4.1 family - Force a provider:
LLM_PROVIDER=openrouterorLLM_PROVIDER=openai