How infermatrixlab/inferrsi works
InferRSI is an agent-facing inference experimentation app: users bring an engine checkout, workload, and quality checks, then profile a baseline, evaluate candidate changes under a controlled campaign, and review evidence before adoption. The README also documents packaged benchmarks, source-grounded optimization knowledge, client integrations, and dashboards. The graph preserves these branches; implementation links are limited to the supplied excerpts and SOURCE INDEX, so undocumented runtime wiring is omitted.
Main entry points: manager Campaign manager · workflows App workflows · dashboard_data.py Dashboard model · _execution.py Execution and serving
Components 21
User entrypoints
- CLI intake
src/inferrsi/apps/cli - Agent plugins
plugins - App workflows
src/inferrsi/apps/workflows
Experiment harness
- Campaign manager
src/inferrsi/harness/manager - Search engine
src/inferrsi/harness/manager/search/engine.py - Candidate selection
src/inferrsi/harness/executor/candidates.py - Execution and serving
src/inferrsi/harness/executor/_execution.py - Quality evaluation
src/inferrsi/harness/evaluator - Host preparation
src/inferrsi/apps/host - Run and evidence records
src/inferrsi/harness/records - Service stages
src/inferrsi/harness/manager/_service_stages.py
Knowledge and benchmarks
- Tuning knowledge
src/inferrsi/knowledge - Benchmarks
Evidence and results
- Dashboard model
src/inferrsi/apps/views/dashboard_data.py - Dashboard views
src/inferrsi/apps/views/dashboard_experiments.py - Optimization story
src/inferrsi/apps/views/optimization_story.py - Knowledge retrieval view
src/inferrsi/apps/views/retrieval_projection.py - Result delivery
src/inferrsi/apps/delivery
Other components
- Engineer or agent
- Engine checkout
- Model service
Connections 24
- Engineer or agent → CLI intake: starts experiment
README.md - Engineer or agent → Agent plugins: uses agent
README.md - CLI intake → App workflows: routes tasks
- Agent plugins → App workflows: submits tasks
- App workflows → Campaign manager: runs campaigns
README.md - App workflows → Tuning knowledge: consults knowledge
README.md - App workflows → Benchmarks: uses tasks
README.md - Campaign manager → Host preparation: prepares host
- Campaign manager → Execution and serving: dispatches attempts
src/inferrsi/harness/manager/_service_stages.py - Campaign manager → Quality evaluation: requests evaluation
src/inferrsi/harness/manager/_service_stages.py - Campaign manager → Run and evidence records: records rounds
src/inferrsi/harness/manager/_service_stages.py - Search engine → Candidate selection: selects candidates
src/inferrsi/harness/manager/search/engine.py - Search engine → Run and evidence records: stores campaign
src/inferrsi/harness/manager/search/engine.py - Execution and serving → Engine checkout: runs workload
- Execution and serving → Model service: sends requests
- Service stages → Execution and serving: executes stages
src/inferrsi/harness/manager/_service_stages.py - Service stages → Quality evaluation: evaluates stages
src/inferrsi/harness/manager/_service_stages.py - Service stages → Run and evidence records: records service IO
src/inferrsi/harness/manager/_service_stages.py - Run and evidence records → Dashboard model: supplies evidence
src/inferrsi/apps/views/dashboard_data.py - Dashboard model → Dashboard views: projects experiments
src/inferrsi/apps/views/dashboard_data.py - Dashboard model → Optimization story: builds narrative
src/inferrsi/apps/views/dashboard_data.py - Dashboard model → Knowledge retrieval view: projects retrieval
src/inferrsi/apps/views/dashboard_data.py - Dashboard views → Result delivery: renders results
README.md - Engineer or agent → Result delivery: reviews dashboard
README.md