Skip to content

Add deterministic benchmark suite and Monitor view - #5

Merged
merefield merged 2 commits into
mainfrom
agent/benchmark-suite-monitor
Aug 11, 2026
Merged

merefield merged 2 commits into
mainfrom
agent/benchmark-suite-monitor

Conversation

@merefield

Copy link
Copy Markdown
Owner

Summary

  • add a deterministic Starlark benchmark suite for Merge Ranges, LRU Cache, Expression Evaluation, and Shortest Path
  • run a selected challenge or a guarded Run All matrix across every visible model and reasoning effort
  • add responsive sortable results, scrolling, pass/fail filters, token telemetry, timing, and API-equivalent cost estimates
  • rename the Stopwatch view and its internal implementation to Monitor
  • document every challenge, exact PASS/FAIL rules, quota impact, and the residual Python/Starlark bias
  • upgrade the project to Go 1.25 and bump the source version to v0.2.0

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 --check
  • local Linux build plus darwin/linux/windows builds for amd64 and arm64
  • local binary reports codexometer v0.2.0

@merefield
merefield requested a lite review from Copilot August 11, 2026 17:47
@merefield
merefield marked this pull request as ready for review August 11, 2026 17:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread go.mod Resolved
Comment thread internal/ui/benchmark.go Resolved
Comment thread internal/ui/model.go Resolved
@merefield
merefield merged commit d627999 into main Aug 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants