arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.14445cs.SEcs.AIcs.HC
收藏

tap:一种用于异构LLM智能体协作的基于文件的协议

tap: A File-Based Protocol for Heterogeneous LLM Agent Collaboration

HUA Labs(HUA实验室)

Minseo Kim

AI总结:

提出tap协议,通过文件优先设计实现不同厂商LLM智能体(如Claude和Codex)在共享代码库上的协作,无需共享内存或相同运行时,实验表明异构模型对审查缺陷发现率更高。

摘要:

现有的多智能体软件开发系统提出了多种智能体协作形式,包括基于角色的协作和自动化代码审查。然而,许多系统假设共同的运行时、中央对话服务器或相同的API系列。在这些假设下,来自不同供应商的LLM智能体无法轻易地从各自的执行环境中直接交换消息,同时在共享代码库上分配开发和审查工作。本文提出了tap,一种基于文件的协作协议,允许Claude(Anthropic)和Codex(OpenAI)在无需共享内存或相同运行时的情况下协作开发同一个代码库。tap的核心是文件优先设计,它将带有元数据的Markdown文件作为原始消息保存,结合文件检查路径(文件通信,第一层)和针对Claude与Codex的实时通知路径(实时通信,第二层),并通过独立的git工作树隔离工作。即使实时通知失败或接收者重启,消息文件仍然可用,相同的内容可以再次检查。在为期27天、37次生成的自应用操作中,tap被用于开发和审查自身,我们收集了209个与tap相关的拉取请求和717个操作工件。对375个审查工件的分析显示,记录至少一个缺陷或请求更改的审查比例在异构模型对中为69.8%,在同构模型对中为53.1%。这些结果表明,结合基于文件的消息保存和实时通知的tap在实际生产仓库中运行,并且结合异构模型和执行环境可以拓宽审查视角。tap作为开源npm包@hua-labs/tap(v0.5.2)发布。

英文摘要:

Existing multi-agent software development systems have proposed many forms of agent collaboration, including role-based collaboration and automated code review. However, many systems assume a common runtime, a central conversation server, or the same API family. Under these assumptions, LLM agents from different vendors cannot easily exchange messages directly from their own execution environments while dividing development and review work on a shared codebase. This paper presents tap, a file-based collaboration protocol that allows Claude (Anthropic) and Codex (OpenAI) to collaborate on one codebase without shared memory or an identical runtime. The core of tap is a file-first design that preserves markdown files with metadata as original messages, combines a file inspection path (file communication, Tier 1) with real-time notification paths for Claude and Codex (real-time communication, Tier 2), and isolates work through separate git worktrees. Even if real-time notification fails or a receiver restarts, the message file remains available and the same content can be inspected again. In a 27-day, 37-generation self-applied operation where tap was used to develop and review itself, we collected 209 tap-related pull requests and 717 operational artifacts. An analysis of 375 review artifacts showed that the share of reviews recording at least one defect or requested change was 69.8% for heterogeneous model pairs and 53.1% for homogeneous model pairs. These results show that tap, which combines file-based message preservation with real-time notification, operates in a real production repository, and that combining heterogeneous models and execution environments can broaden review perspectives. tap is distributed as the open-source npm package @hua-labs/tap (v0.5.2).

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

↑