feat: add Terminal-Bench adapter and headless agent CLI #198
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.
This commit introduces a headless agent runner and an adapter for the
Terminal-Bench framework, enabling automated, programmatic evaluation of
the agent's capabilities.
The core of this change is a new
AgentSessionclass that encapsulatesthe logic for managing a single workspace session. This refactors logic
out of
ipcMain, allowing the agent core to be used in environmentswithout an Electron UI, such as the new headless CLI.
Key components added:
src/debug/agentSessionCli.ts: A CLI for running an agent sessionheadlessly. It can be driven programmatically and supports JSON output.
benchmarks/terminal_bench/: A Python adapter for Terminal-Bench thatpackages the cmux application, installs it in a task container, and
runs it against benchmark instructions using the agent CLI.
Makefiletargetbenchmark-terminalanddocs/benchmarking.mdtoprovide an easy entrypoint and documentation for running benchmarks.
agentSessionClito ensure itscorrectness.