How gloutchov/localagentbenchmark works
LocalAgent Benchmark is an offline benchmark for comparing Ollama models acting as coding agents through Pi. Users configure or discover models, select benchmark cases, execute isolated repetitions, grade and integrity-check outcomes, then inspect reports or the offline dashboard. The graph preserves the guided funnel, personal case authoring, thinking controls, OS sandboxing, metrics, exports, and dashboard capabilities documented in the README. Some links are documented capabilities rather than inspected call sites; these are marked dashed where implementation wiring was not shown.
Main entry points: runner.py Run orchestration · pi_adapter.py Pi adapter · cli.py CLI · guided.py Funnel orchestration
Components 22
User entry points
- CLI
src/localagent_bench/cli.py - Guided GUI
src/localagent_bench/guided_ui.py - Funnel orchestration
src/localagent_bench/guided.py
Configuration and cases
- Configuration
src/localagent_bench/config.py - Case manifests
src/localagent_bench/case_sdk.py - Benchmark scenarios
cases
Benchmark execution
- Run orchestration
src/localagent_bench/runner.py - Pi adapter
src/localagent_bench/pi_adapter.py - OS sandbox
src/localagent_bench/sandbox.py - Thinking policy
src/localagent_bench/thinking.py - Ollama client
src/localagent_bench/ollama.py
Evaluation and reports
- Task grading
src/localagent_bench/grading.py - Integrity checks
src/localagent_bench/integrity.py - System metrics
src/localagent_bench/system_metrics.py - Reports and ranking
src/localagent_bench/report.py - Run comparison
src/localagent_bench/comparison.py
Results interfaces
- Privacy-bounded data
src/localagent_bench/dashboard_data.py - Local results app
src/localagent_bench/dashboard_app.py - Offline dashboard UI
dashboard/js/core.js
Other components
- Benchmark user
- Pi agent runtime
- Ollama service
Connections 31
- Benchmark user → CLI: runs commands
README.md - Benchmark user → Guided GUI: starts funnel
README.md - CLI → Configuration: loads settings
src/localagent_bench/cli.py - CLI → Run orchestration: starts runs
src/localagent_bench/cli.py - CLI → Case manifests: manages cases
src/localagent_bench/cli.py - Guided GUI → Funnel orchestration: dispatches funnel
src/localagent_bench/guided_ui.py - Guided GUI → Configuration: loads settings
src/localagent_bench/guided_ui.py - Funnel orchestration → Run orchestration: orchestrates runs
src/localagent_bench/guided.py - Funnel orchestration → Privacy-bounded data: prepares results
src/localagent_bench/guided.py - Configuration → Case manifests: discovers cases
src/localagent_bench/config.py - Case manifests → Benchmark scenarios: validates manifests
src/localagent_bench/case_sdk.py - Run orchestration → Configuration: uses settings
src/localagent_bench/runner.py - Run orchestration → Case manifests: loads case specs
src/localagent_bench/runner.py - Run orchestration → Pi adapter: runs agent
src/localagent_bench/runner.py - Run orchestration → Task grading: grades outcomes
src/localagent_bench/runner.py - Run orchestration → Integrity checks: checks integrity
src/localagent_bench/runner.py - Run orchestration → Reports and ranking: writes reports
src/localagent_bench/runner.py - Run orchestration → Ollama client: warms models
src/localagent_bench/runner.py - Run orchestration → OS sandbox: selects isolation
src/localagent_bench/runner.py - Run orchestration → Thinking policy: sets policy
src/localagent_bench/runner.py - Pi adapter → OS sandbox: builds launch
src/localagent_bench/pi_adapter.py - Pi adapter → System metrics: collects metrics
src/localagent_bench/pi_adapter.py - Pi adapter → Thinking policy: applies policy
src/localagent_bench/pi_adapter.py - Pi adapter → Pi agent runtime: invokes runtime
- Pi agent runtime → Ollama service: queries models
README.md - Reports and ranking → Run comparison: supports comparisons
- Reports and ranking → Privacy-bounded data: exports run data
README.md - Benchmark user → Local results app: opens results
README.md - Local results app → Privacy-bounded data: loads run data
src/localagent_bench/dashboard_app.py - Privacy-bounded data → Offline dashboard UI: supplies dashboard
README.md - Funnel orchestration → Ollama client: discovers models
README.md