Repository navigation
Add deterministic benchmark suite and Monitor view - #5
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a deterministic, locally-judged benchmark suite (implemented via an embedded Starlark interpreter and Codex app-server turns) and introduces a new Benchmark UI tab to run and inspect results across visible model/reasoning-effort combinations. It also renames the existing Stopwatch UI and implementation to Monitor, updates documentation accordingly, and bumps the project/tooling versioning (including CI Go version).
Changes:
- Add a deterministic benchmark engine (task catalog, Starlark verification, app-server orchestration, and API-equivalent cost estimates).
- Add a Benchmark UI view with responsive controls, sorting, filtering, and scrolling; wire hotkeys and event streaming into the TUI model.
- Rename Stopwatch to Monitor throughout UI/docs/tests and bump version/Go toolchain references.
Reviewed changes
Copilot reviewed 23 out of 24 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Documents Monitor rename and adds detailed benchmark behavior, controls, and pass/fail rules. |
| main.go | Extends demo fetcher to expose benchmark runner behavior for the UI. |
| main_test.go | Updates version expectation for --version output. |
| internal/version/version.go | Updates fallback version and refines version selection to avoid pseudo-versions. |
| internal/version/version_test.go | Updates fallback version test and adds selection/pseudo-version test coverage. |
| internal/ui/view.go | Routes rendering to Monitor or Benchmark full-width views based on selected style. |
| internal/ui/view_test.go | Verifies Monitor and Benchmark view components render under themes/styles. |
| internal/ui/theme.go | Adds new meter styles (Monitor, Benchmark) and updates style naming. |
| internal/ui/tabs.go | Updates tab labels for Monitor and adds Benchmark tab with responsive spacing logic. |
| internal/ui/tabs_test.go | Updates tab label expectations and monitor-dot behavior tests. |
| internal/ui/monitor.go | Renames and adapts Stopwatch rendering/layout logic to Monitor. |
| internal/ui/monitor_test.go | Updates lifecycle/graph/clickability tests for Monitor behavior. |
| internal/ui/model.go | Adds benchmark state machine, hotkeys, scrolling/sorting, cancellation, and monitor renames. |
| internal/ui/model_test.go | Updates style-cycling and hit-geometry tests for new styles. |
| internal/ui/benchmark.go | Implements the Benchmark view layout, controls, results table, sorting, filtering, and hit-testing. |
| internal/ui/benchmark_test.go | Adds comprehensive tests for Benchmark view rendering and interactions. |
| internal/codex/live_usage.go | Updates comment wording from Stopwatch to Monitor. |
| internal/codex/client.go | Updates comment wording from Stopwatch to Monitor. |
| internal/codex/benchmark.go | Adds app-server orchestration for benchmark turns, usage capture, and cost estimation. |
| internal/codex/benchmark_test.go | Adds extensive tests for benchmark execution, parsing, pricing, and verifier behavior. |
| internal/codex/benchmark_tasks.go | Adds benchmark task catalog, prompts, and Starlark verifiers (LRU/expression/path/etc). |
| go.sum | Adds/updates dependency checksums for new benchmark/Starlark-related deps. |
| go.mod | Bumps Go version and adds direct dependencies for ansi + Starlark. |
| .github/workflows/ci.yml | Updates CI to use Go 1.25.x. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
Codexometer can now compare visible Codex model/reasoning combinations with deterministic, locally judged coding tasks instead of relying on another model for evaluation. The Monitor name also better describes the continuously sampled local token telemetry view.
Impact
Benchmark turns are opt-in and consume the user's prevailing Codex quota. Run All displays the exact turn count and requires confirmation. Submitted code executes in an embedded, capability-free Starlark interpreter with source, result, and execution-step limits.
Validation
go test -race -cover ./...go vet ./...gofmt -l .git diff --checkcodexometer v0.2.0