How peetuvu/thesis-agent-benchmark works
This repository is an LLM coding-task benchmark harness. A user selects a task, architecture, and model; the runner builds a task context, runs the architecture through a provider, applies generated edits in a temporary task copy, evaluates them, and records run results. Separate analysis tools aggregate, rescore, and inspect benchmark outcomes. The graph reflects documented workflow and sampled call sites; some executor internals and provider implementations were not excerpted, so their links are omitted or marked unverified.
Main entry points: executor.py Run executor · cli.py Command interface · base.py Provider interface · rescored.py Rescored data
Components 27
Run orchestration
- Command interface
runner/cli.py - Run and task config
runner/config.py - Run executor
runner/executor.py - Task sandbox
runner/sandbox.py - Run logger
runner/logger.py
Agent strategies
- Architecture contract
architectures/base.py - Single agent
architectures/single_agent.py - Sequential pipeline
architectures/sequential.py - Prompt and code parsing
architectures/utils.py
Model access
- Provider interface
providers/base.py - Model registry
providers/models.py - Model pricing
providers/pricing.py - Anthropic adapter
providers/anthropic.py - OpenAI adapter
providers/openai.py
Benchmark tasks
- Calculator task
agent-bench/tasks/calculator/calculator - Diff apply task
agent-bench/tasks/diffapply/diffapply/applier.py - Markdown table task
agent-bench/tasks/mdtable/mdtable/formatter.py - Snake game task
agent-bench/tasks/snake/snake/game.py - URL shortener task
agent-bench/tasks/urlshort/urlshort
Result analysis
- Result aggregation
scripts/aggregate_results.py - Stage analysis
scripts/analyze_stages.py - Failure classification
scripts/classify_failures.py - Run rescoring
scripts/rescore_runs.py - Rescored data
scripts/rescored.py
Other components
- Benchmark user
- Anthropic API
- OpenAI API
Connections 26
- Benchmark user → Command interface: starts run
README.md - Command interface → Run and task config: builds config
runner/cli.py - Command interface → Run executor: starts run
runner/cli.py - Run executor → Run and task config: resolves task
runner/executor.py - Run executor → Architecture contract: runs architecture
runner/executor.py - Run executor → Task sandbox: uses sandbox
runner/executor.py - Run executor → Run logger: records results
README.md - Architecture contract → Provider interface: uses provider
architectures/base.py - Single agent → Prompt and code parsing: parses output
architectures/single_agent.py - Sequential pipeline → Prompt and code parsing: builds prompts
architectures/sequential.py - Sequential pipeline → Provider interface: requests completions
architectures/sequential.py - Provider interface → Anthropic adapter: implemented by
providers/anthropic.py - Provider interface → OpenAI adapter: implemented by
providers/openai.py - Anthropic adapter → Anthropic API: calls API
- OpenAI adapter → OpenAI API: calls API
- Command interface → Model registry: resolves model
runner/cli.py - Run executor → Model pricing: estimates cost
runner/executor.py - Run executor → Calculator task: benchmarks task
README.md - Run executor → Diff apply task: benchmarks task
README.md - Run executor → Markdown table task: benchmarks task
README.md - Run executor → Snake game task: benchmarks task
README.md - Run executor → URL shortener task: benchmarks task
README.md - Result aggregation → Rescored data: reads rescored data
scripts/aggregate_results.py - Stage analysis → Rescored data: reads run data
scripts/analyze_stages.py - Failure classification → Stage analysis: uses analysis
scripts/classify_failures.py - Run rescoring → Rescored data: produces scores
scripts/rescore_runs.py