Gecko logoGecko: A Simulation Environment with Stateful Feedback for Refining Agent Tool Calls

1Australian National University 2CAMEL-AI.org 3Eigent.AI 4CSIRO's Data61 5Aipotheosis Labs, Inc.
Accepted at ICML 2026 ยท Main Conference
TL;DR

Refine agent tool-use plans in stateful simulation before real execution, reducing real-tool trial-and-error while improving tool-call performance.

Gecko lets a planning agent refine tool calls with simulated tools before a real-tool agent executes the task

Gecko builds simulated tools from the available tool definitions. The planning agent uses them to try tool calls, receive feedback, and refine its plan before real execution. The refined plan then guides the real-tool agent when it calls the real tools.

Why Simulate Before Execution?

Real feedback helps

Tool-use agents often need execution feedback to fix wrong tools, malformed arguments, or incomplete plans.

Real retries are risky

Repeated calls to real APIs can hit rate limits, add cost, or trigger irreversible side effects such as sending emails or placing orders.

Gecko gives pre-execution feedback

Gecko validates calls, simulates schema-conforming responses, tracks task state, and judges whether the user objective is satisfied.

How Gecko Works

Gecko turns tool definitions into simulated tools, then runs candidate tool calls through validation, response synthesis, task-state estimation, and task-level feedback.
Gecko components transform tool definitions, user requests, and candidate tool calls into simulated tools, responses, and feedback

Task State

Task state records the cumulative effects of simulated tool calls, so Gecko can reject later calls that conflict with earlier effects and judge completion against the final state.

A calendar example showing Gecko updating state after a simulated booking and rejecting a conflicting event

GATS: Iterative Refinement with Gecko

GATS uses Gecko as a simulated refinement runtime for agent tool use. A planning LLM explores candidate tool-call trajectories in Gecko; failed attempts return feedback for the next try, while a trajectory marked successful by Gecko is passed as in-context guidance to a real-tool agent.
GATS refinement pipeline GATS initializes a Gecko session, explores simulated tool calls, judges the task, sends solved trajectories to real-tool inference, and synchronizes state. Unsolved attempts loop back for another simulated try. Gecko Session Initialization Exploration in Gecko Task-Level Judgment Solved Not solved Guided Real-Tool Inference State Synchronization

Gecko Session Initialization

Load tool schemas, task context, and the current simulated state.

Exploration in Gecko

A planning LLM tries candidate tool-call trajectories with simulated tools.

Task-Level Judgment

Gecko updates task state, judges completion, and returns feedback if the task is not solved.

Guided Real-Tool Inference

A solved simulated trajectory is passed as in-context guidance to the real-tool agent.

State Synchronization

Real execution results are synchronized back to Gecko for the next turn.

Example: Refinement with Gecko Feedback

A concrete Gecko example where simulated attempts expose argument and task-state errors before real-tool execution

In this example, Gecko first catches an invalid tool argument, then detects that a seemingly valid trajectory leaves the file in the wrong directory. The final simulated trajectory is used as guidance for real-tool execution.

Results

Consistent Gains Across Benchmarks

GATS consistently improves different planning LLMs on BFCLv3 and τ2-bench by refining tool calls in Gecko before real-tool execution.

GATS improves tool-calling performance across BFCLv3 and tau squared benchmark tasks
Show BFCLv3 full table

BFCLv3 Main Evaluation

Method comparison on BFCLv3. We select eight most important metrics from BFCL website. Overall accuracy is the average of average Non-live single turn, average Live single turn, and Multi-turn. GATS consistently improves various planning LLMs.

Model Overall Acc Non-live single turn Live single turn Multi-turn
simple parallel multiple irrelevance simple multiple irrelevance base
State-of-the-art reference models
ToolACE-2-8B73.1288.0092.5092.5095.4170.9379.0184.8049.00
watt-tool-70B79.2798.2585.5094.0084.1686.0483.4768.4868.00
xLAM-2-70b80.9694.7592.0094.5083.3377.1371.1374.4877.50
Baseline models and our proposed method
GPT-4.1-nano58.8582.2578.5075.0080.8365.1158.9772.2232.00
+GATS67.5993.2588.5095.0081.2577.1369.8080.3837.50
GPT-4.1-mini66.2091.5084.5088.0078.3379.4570.9468.7040.00
+GATS73.8496.2588.0095.5084.5884.4974.5480.8350.50
GPT-4o76.9392.7592.5092.5084.1681.0078.5378.4561.00
+GATS84.6296.5095.0095.5095.8384.1081.0193.4272.00
GPT-5-thinking61.9478.0084.0076.0092.9161.6257.4589.7033.50
+GATS66.0885.0090.5083.0093.7567.4463.2490.3836.50
Gemini-2.5-pro66.4486.2569.0086.0091.6677.9062.2089.6839.50
+GATS70.4492.2575.0089.0092.5080.6267.9991.8344.00
Gemini-3.0-pro-preview79.9794.5091.0094.0082.5087.6080.4473.1969.00
+GATS85.1997.0093.0095.5094.1785.9382.3489.5973.50
Deepseek-V370.4097.0092.0094.0080.4186.0479.4872.5641.00
+GATS72.9097.2592.0095.5083.7588.7581.7678.7943.50
Qwen-3-14B73.7895.5092.5095.0084.5886.0480.8177.4448.00
+GATS78.6096.7593.5095.0092.5087.5983.0091.5054.00
Show τ2-bench full table

τ2-bench Main Evaluation

Method comparison on τ2-bench. We report success rate under τ2-retail and τ2-airline subsets and average accuracy (Overall).

Model τ2-retail τ2-airline Overall
State-of-the-art reference models
Claude Opus 481.8%60.0%70.9%
Claude Sonnet 475.0%55.5%65.3%
Kimi-K2-Instruct70.6%56.5%63.6%
Baseline models and w/ GATS
GPT-4o62.9%45.5%54.2%
+GATS69.3%52.0%60.7%
GPT-5-mini73.5%57.0%65.3%
+GATS78.5%65.0%71.8%
GPT-5-thinking81.6%63.0%72.3%
+GATS84.6%68.0%76.3%
Gemini-3.0-pro-preview85.1%72.5%78.8%
+GATS88.2%76.5%82.3%

Comparison with Test-Time Scaling Baselines

GATS is compared with Reflexion, Merge-to-one, Self-Refine, Best-of-N, and Majority Voting. Real-tool calls count benchmark tool calls only; simulated Gecko calls are excluded.

Test-time scaling comparison on tau squared airline with GPT-5-mini
Test-time scaling comparison on BFCLv3 multi-turn base with GPT-4o

FAQ

What new research possibilities are enabled by Gecko?

Gecko can act as a verifier for tool-call data synthesis: given tasks, tool definitions, and tool-call sequences, it can simulate outcomes and return task-level feedback for filtering or correction. Gecko can also convert supervised tool-call datasets into reinforcement-learning environments: tool schemas define the action space, simulated execution gives observations, and judge-based checklist evaluation provides reward signals for offline or online training.

What are the current limitations?

Gecko is not a high-fidelity replacement for arbitrary real tools. It is most useful when tool schemas and task context provide enough information for informative simulation. For hidden external databases, hybrid execution can use real read-only tools while simulating state-changing actions.

Citation

@misc{zhang2026gecko,
  title={Gecko: A Simulation Environment with Stateful Feedback for Refining Agent Tool Calls},
  author={Zeyu Zhang and Guohao Li and Zhenchang Xing and Alexandros Apostolopoulos and Yu Lin Lee and Liang Zheng},
  year={2026},
  eprint={2602.19218},
  archivePrefix={arXiv},
  primaryClass={cs.SE},
  url={https://arxiv.org/abs/2602.19218},
}