Matching Matters: A Fair Quality-Efficiency Benchmark for Command-Line Agents

Han Chi, Jiaxin Qi, Yan Cui, Baisheng Lai, Jianqiang HuangarXiv 2026

TL;DR

This paper introduces AGENTMETER, a novel evaluation framework that benchmarks large language model (LLM) agents by treating the model and its command-line interface (CLI) as a unified configuration rather than testing the LLM in isolation. By introducing a multi-dimensional metric (AMS) that balances task quality, execution cost, and expensive failures, alongside a trajectory-grounded prompt optimization framework (AGENTMETER-OPT), it provides a deployment-realistic and fair assessment of command-line agents.

What Problem Does This Paper Address?

LLM-based agents frequently interact with operating systems, files, and development tools via Command-Line Interfaces (CLIs). However, current agent benchmarks typically evaluate LLMs using a single, fixed CLI and focus almost exclusively on binary success rates. This approach suffers from two major flaws:

  1. It ignores deployment efficiency: Completion-only metrics treat a concise, low-cost success exactly the same as a highly convoluted, expensive one that barely crosses the finish line.
  2. It overlooks the "matching effect": A CLI dictates how tools are exposed, how history is managed, and how errors are handled. Changing the CLI while keeping the model fixed can completely alter an agent's execution trajectory and final performance.

Additionally, static benchmark task descriptions can introduce bias, inadvertently favoring certain LM-CLI pairs due to specific wording choices rather than general task-solving capability.

Methods

The authors propose two core contributions to address these limitations:

1. AgentMeter Score (AMS)

Instead of a simple pass/fail metric, AMS integrates three complementary components calibrated across task difficulty strata (Easy, Medium, Hard):

  • Task Quality (TQ): Graded task success to reward partial progress.
  • Area Under the Budget-Quality Curve (AUBQC): Measures how efficiently quality is achieved under calibrated token/financial cost budgets.
  • Expensive Failure Rate (EFR): Penalizes catastrophic runs that consume massive resources but yield zero reward.

2. AGENTMETER-OPT

A trajectory-grounded optimization framework designed to mitigate description bias. It analyzes an agent's execution trajectory to diagnose description-related friction and uses a critic model to rewrite the task description. It clarifies ambiguities without changing the underlying task semantics (enforced by a strict task-preservation gate). To ensure a fair comparison, targets are evaluated under a balanced Pooled condition, where every candidate configuration contributes equally to the evaluation set.

Datasets

The authors compile a Full Benchmark of 80 executable command-line tasks sourced from three existing benchmarks: SkillsBench, Terminal-Bench, and DA-Code. To enable scalable evaluation across large experimental grids, they construct a balanced 30-task Core Subset stratified by task difficulty. For the AGENTMETER-OPT experiments, a fixed 16-task subset is utilized.

Key Insights and Ideas

  • No CLI is universally optimal: A CLI that works wonders for one model might cripple another. For instance, changing the CLI for Qwen3.6-Plus caused its AMS to swing drastically from 0.325 to 0.525. Evaluating models through a single fixed interface conflates model capability with LM-CLI compatibility.
  • Success rate hides the bill: Conventional pass-cost metrics leave multiple competitive choices ambiguous. AMS successfully separates efficient successes from costly, drawn-out failures, providing a unified ranking.
  • Descriptions are not neutral: Small wording variations in task descriptions affect LM-CLI pairs unevenly. Evaluating agents on a single fixed description distribution can completely flip their relative rankings, highlighting the necessity of a pooled, source-balanced evaluation approach.

Key Results

  • Evaluating 28 distinct LM-CLI configurations demonstrated that completion, cost, and quality-efficiency metrics select entirely different leading configurations from the same grid.
Motivation of AMS and performance across LM-CLI pairs on the Core Subset.
  • Under the AGENTMETER-OPT framework, trajectory-conditioned description adaptation (Self) improved both mean reward and AMS across all tested pairs, reducing aggregate costs by 37.9%.
  • Generic, public-only description rewriting failed to achieve similar gains, proving that effective prompt optimization must be grounded in the specific failure trajectories of the LM-CLI pair.

Limitations and Future Work

  • Conditionality: The benchmark rankings are highly conditional on the selected tasks, specific API pricing models, and the execution environment setup.
  • Semantic Verification: The task-preservation gate relies on LLM-based filtering, which cannot formally guarantee absolute natural-language equivalence.
  • Scale: The AGENTMETER-OPT experiments were restricted to a 16-task subset across four pairs as a controlled diagnostic; scaling this to broader pair coverage and repeated trials remains future work.
  • Infrastructure Costs: Reported financial costs focus purely on API tokens and exclude local infrastructure and hosting overhead.

Summary updated

BibTeX
@misc{chi2026matching,
  author = {Han Chi and Jiaxin Qi and Yan Cui and Baisheng Lai and Jianqiang Huang},
  title = {{Matching Matters: A Fair Quality-Efficiency Benchmark for Command-Line Agents}},
  year = {2026},
  eprint = {2606.21140},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.21140},
}
Figure