AIセキュリティポータル K Program

PandaProbe: Agents That Learn from Mistakes by Revising Their Own Rules

Share
Abstract
As frontier models grow more capable, AI agents carry out longer workflows, use a wider range of tools, and read or modify critical data. In settings such as health care, defense, and finance, a single wrong action can be costly, and interactions across steps can produce failures that developers did not anticipate. We present PandaProbe, an open-source platform that combines tracing, evaluation, and reflection to help agents learn from such failures. When an evaluation flags a failure, the PandaProbe SDK returns the evidence to the same agent, which can examine its actions and propose a revision to its operating rules. The agent cannot approve its own revisions. A revision reaches later executions only after validation, which compares verified outcomes from matched executions with and without the change or, through forward validation, how often subsequent sessions are flagged. Accepted rules remain available for retrieval and can themselves be revised when new failures expose their limits, so the agent refines its guidance across sessions without retraining the model. We compare a baseline agent with the same agent using PandaProbe across four open-weight models, all three $τ^2$-bench domains, and a 10-task Terminal-Bench sample, with four trials per task, relying primarily on forward validation to preserve each benchmark's original setup. In all 16 paired comparisons, PandaProbe achieved a higher mean benchmark score than the baseline and solved a larger fraction of tasks on all four trials ($\mathrm{pass}^4$). First-trial success improved in eight comparisons. On $τ^2$-bench retail, Kimi K2.5's $\mathrm{pass}^4$ rose from 7.9% to 21.1%. On the Terminal-Bench sample, GPT-OSS 20B's mean score rose from 0.2360 to 0.3148, a 33.4% relative gain. These gains came with 2.81x the baseline's reported model spend and a median 7.22x increase in time per trial.
Self-refine: Iterative refinement with self-feedback
A. Madaan, N. Tandon, P. Gupta, S. Hallinan, L. Gao, S. Wiegr-eff, U. Alon, N. Dziri, S. Prabhumoye, Y. Yang
Published: 2023
Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces
Mike A. Merrill, Alexander G. Shaw, Nicholas Carlini, Boxuan Li, Harsh Raj, Ivan Bercovich, Lin Shi, Jeong Yeon Shin, Thomas Walshe, E. Kelly Buchanan, Junhong Shen, Guanghao Ye, Haowei Lin, Jason Poulos, Maoyu Wang, Marianna Nezhurina, Jenia Jitsev, Di Lu, Orfeas Menis Mastromichalakis, Zhiwei Xu, Zizhao Chen, Yue Liu, Robert Zhang, Leon Liangyu Chen, Anurag Kashyap, Jan-Lucas Uslu, Jeffrey Li, Jianbo Wu, Minghao Yan, Song Bian, Vedang Sharma, Ke Sun, Steven Dillmann, Akshay Anand, Andrew Lanpouthakoun, Bardia Koopah, Changran Hu, Etash Guha, Gabriel H. S. Dreiman, Jiacheng Zhu, Karl Krauth, Li Zhong, Niklas Muennighoff, Robert Amanfu, Shangyin Tan, Shreyas Pimpalgaonkar, Tushar Aggarwal, Xiangning Lin, Xin Lan, Xuandong Zhao, Yiqing Liang, Yuanli Wang, Zilong Wang, Changzhi Zhou, David Heineman, Hange Liu, Harsh Trivedi, John Yang, Junhong Lin, Manish Shetty, Michael Yang, Nabil Omi, Negin Raoof, Shanda Li, Terry Yue Zhuo, Wuwei Lin, Yiwei Dai, Yuxin Wang, Wenhao Chai, Shang Zhou, Dariush Wahdany, Ziyu She, Jiaming Hu, Zhikang Dong, Yuxuan Zhu, Sasha Cui, Ahson Saiyed, Arinbjörn Kolbeinsson, Jesse Hu, Christopher Michael Rytting, Ryan Marten, Yixin Wang, Alex Dimakis, Andy Konwinski
Published: 2026
Reflexion: Language agents with verbal reinforcement learning
N. Shinn, F. Cassano, A. Berman, A. Gopinath, K. Narasimhan, S. Yao
Published: 2023
Share