arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.14237cs.AI
收藏

Good to Go:LOOP技能引擎:通过一次录制和确定性重放实现99%的成功率并减少99%的token使用

Good to Go: The LOOP Skill Engine That Hits 99% Success and Slashes Token Usage by 99% via One-Shot Recording and Deterministic Replay

Artificial Intelligence Research Center, Bengbu Medical University(蚌埠医科大学人工智能研究中心);CHARMMIRAEL Biotech Co., Ltd(CHARMMIRAEL生物科技有限公司)

Xiaohua Wang, Kai Yu, XuXiao Liang, Liang Wang, Chao Han

AI总结:

LOOP技能引擎通过一次录制和确定性重放,实现99%的成功率和99%的token减少,解决重复周期性任务中大语言模型的不确定性与高成本问题。

摘要:

部署AI代理执行重复周期性任务暴露了关键矛盾:大语言模型(LLMs)在工具编排方面具有无可匹敌的灵活性,但其内在的随机性导致不可预测的失败,而重复调用会带来极高的token成本。我们提出了LOOP SKILL ENGINE,一个通过一次录制和确定性重放方法,实现周期性代理任务99%的成功率和99%的token减少的系统。在首次运行时,代理执行任务并完整记录工具调用轨迹,随后通过贪婪长度递减的模板提取算法将记录转换为参数化的、无分支的Loop Skill——一个确定性执行计划,能够捕捉任务的功能意图,同时参数化时间相关和结果相关的变量。所有后续执行均不依赖LLM:引擎通过实时值解析模板变量并确定性重放工具序列。我们证明了两个定理:(1)重放确定性——经过验证的Loop Skill的步骤序列在所有后续执行中保持不变;(2)写入安全性——通过递归锁和原子文件替换对持久化配置的并发访问进行串行化。在覆盖5分钟至24小时周期的代理任务基准测试中,Loop Skill Engine将每月的token消耗减少93.3%至99.98%,并将执行延迟降低8.7倍,同时消除输出非确定性。多层降级策略确保任务永不停滞。我们将其作为buddyMe开源代理框架的一部分发布。

英文摘要:

Deploying AI agents for repetitive periodic tasks exposes a critical tension: Large Language Models (LLMs) offer unmatched flexibility in tool orchestration, yet their inherent stochasticity causes unpredictable failures, and repeated invocations incur prohibitive token costs. We present the LOOP SKILL ENGINE, a system that achieves a combined 99% success rate and 99% token reduction for periodic agent tasks through a one-shot recording, deterministic replay paradigm. On its first run, the agent executes the task with full LLM reasoning while the system transparently intercepts and records the complete tool-call trajectory. A greedy length-descending template extraction algorithm then converts this recording into a parameterized, branch-free Loop Skill -- a deterministic execution plan that captures the task's functional intent while parameterizing time-dependent and result-dependent variables. All subsequent executions bypass the LLM entirely: the engine resolves template variables against real-time values and replays the tool sequence deterministically. We prove two theorems: (1) Replay Determinism -- the step sequence of a validated Loop Skill is invariant across all future executions; (2) Write Safety -- concurrent access to persistent configuration is serialized through reentrant locks and atomic file replacement. Across a benchmark of periodic agent tasks spanning intervals from 5 minutes to 24 hours, the Loop Skill Engine reduces monthly token consumption by 93.3%--99.98% and cuts execution latency by 8.7x while eliminating output non-determinism. A multi-layer degradation strategy guarantees that tasks never stall. We release the engine as part of the buddyMe open-source agent framework.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑