A toolkit for task-aware input preparation

Prepare inputs.
Measure what changes.

Reformulate requests, organize plans, retrieve evidence, ask for clarification, and curate context—then evaluate the resulting agent behavior.

Python 3.10+ · Published package 0.1.0a18

One connected workflow

  1. ConfigureChoose a method, task, backend, and budget.
  2. PrepareCheck inputs and acquire declared dependencies.
  3. ExecuteRun the selected pipeline with saved state and usage.
  4. ScoreApply the task's native scorer and retain execution status.
pip install agentinputlab==0.1.0a18
23 + OPT0pipelines in the paper's main table
5 × 3backbones × interactive arenas
4additional task settings in the paper
27 / 31toolkit methods / benchmark entries

The research

Input preparation is a configuration choice.

Method rankings change across tasks and execution settings. Increasing intervention intensity can reduce utility, while task-level gains and losses can cancel in an aggregate score.

The paper evaluates paired task outcomes, configuration sensitivity, and conditional routing. Official scores measure task outcomes; Valid scores also require successful method completion and the recorded information-access checks. Both are retained in the results below.

Current manuscript

To Optimize or Not to Optimize: When Input Optimization Helps and Hurts LLM Agents

Chuang Zhao · Xiaomeng Li

Method catalog

Five kinds of input intervention.

The published package contains more methods than the paper's 23-method study. Profiles declare their implementation, dependencies, and execution requirements.

Benchmark catalog

Shared interfaces.
Task-specific evaluation.

The paper's main arenas are STATE-Bench, ToolSandbox, and ToolTalk. Additional results cover BRIGHT Earth Science, FiQA-2018, MultiFieldQA-en, and QMSum. The package catalog also includes other tasks.

Dataset / entryTaskPublished catalog sizeNative metrics

Catalog sizes describe upstream sources, not the paper's evaluation sample sizes. Registration is distinct from applicability: use preflight for the exact method, dataset, model, and resource configuration. Data and model weights are acquired separately under their source terms.

Paper main results

Official and Valid,
side by side.

All 23 interventions and the ReAct reference OPT0, across five backbones and three arenas. Each cell shows the same Official and Valid values as the current manuscript.

Official · upper valueValid · lower value
Official and Valid scores for 24 pipelines, five models, and three arenas

Scores are reported on a 0–100 scale. Confirmed failures without native grades contribute zero only to the aggregate; their per-task Official records remain missing. OPT0 is ReAct without input optimization.

Backbones: Q4 = Qwen3-4B; G12 = Gemma4-12B; O20 = GPT-OSS-20B; Q27 = Qwen3.8-27B; DS = DeepSeek-V4.1-flash (10-17 version).

Download the exact aggregate table (JSON) · Manuscript snapshot: 19 November 2026

Get started

Use a saved configuration,
not a hidden setup.

Install and inspect

Install the published release, inspect available profiles, and read its bundled guides.

python -m pip install agentinputlab==0.1.0a18
agentinputlab doctor --offline --json
agentinputlab smoke --json
agentinputlab list --releases
agentinputlab docs configuration

Configure through Studio

The installed package includes a local web interface for generating, importing, editing, and running configurations.

agentinputlab-studio --workflow-root ./studio-workflows

Open the printed /workflows URL. Keep the service on localhost; enter credential environment-variable names, not API keys, in configurations.

Prepare, execute, and score

Start from a configured run.json, choose a supported benchmark, and inspect prerequisites before execution.

agentinputlab workflow init --run-config run.json \
  --benchmark bfcl.v3.simple_python --limit 1 > workflow.json
agentinputlab workflow inspect workflow.json
agentinputlab workflow launch workflow.json --execute \
  --allow-network --output-dir workflow-run

Choose your runtime

Configure a local model, vLLM server, OpenAI-compatible endpoint, or supported provider API. Budget, seed, generation settings, retrievers, and method parameters live in the configuration.

agentinputlab show plan.plan_and_solve.ps_prompt --parameters
agentinputlab config init > run.json
agentinputlab config validate run.json
agentinputlab docs workflows
agentinputlab docs studio-workflows

Execution is local to your environment. This public website presents documentation and paper aggregates. It does not accept API keys or run models. Model-backed workflows use your configured services and resources; prompt-only workflows return an input patch rather than a scored task result.

Saved runs are reusable. Resume uses the saved run configuration and execution records. Completed attempts, including genuine failures, are not repeated. Unsupported combinations and missing resources are reported before model execution.

Cite the research

To Optimize or Not to Optimize: When Input Optimization Helps and Hurts LLM Agents

The manuscript and software have distinct attribution: paper authors are Chuang Zhao and Xiaomeng Li; the published Python package credits Chuang Zhao.