arXiv:2607.22917cs.AIcs.LG2026-07被引 1

为长期运行的代码代理团队打造可持久化的工作区,解决状态丢失与协作繁琐问题。

Agent Team Work Zone: An Automated, Persistent Workspace for Long-Lived Claude Code Agent Teams

论文配图:Agent Team Work Zone: An Automated, Persistent Workspace for Long-Lived Claude Code Agent Teams
图 1 · 摘自论文原文
  • 用文件系统保存代理工作状态,实现断点续做和状态恢复
  • 支持团队成员间自动传递文档,减少重复提示编写
  • 有效降低代理协作中的技术债,适合长期开发项目

大型语言模型(LLM)代理显著提升了编程工作流。其中,Claude Code 是最强大的编码代理之一,能够执行复杂任务。然而,现有机制存在四大缺陷:(1) 代理团队无法恢复——一旦进程终止(如终端关闭),各成员积累的工作状态将永久丢失;(2) 状态压缩导致细节模糊——对话压缩成摘要会丢失关键信息;(3) 代理“技术债”累积——用户决策与代理操作被压缩在旧聊天中,难以维护与追溯;(4) 提示编写负担重——任务分配需反复撰写长提示以达预期效果。为此,我们提出 ATWZ(Agent Team Work Zone),一个基于文件系统的操作层,依托 Claude Code 原生的 Agent Teams 功能,将每个代理视为人类员工,将其重要工作状态以文件形式存入专用目录(称作“工作站”),并配套技能、钩子与脚本管理这些文件。通过 ATWZ,代理团队可周期性备份状态,即使在压缩后仍能恢复知识;进程结束后仅需一条命令即可还原团队。该设计大幅缓解了上述技术债问题。此外,代理间可直接传递文档,显著减少提示编写成本。

原文摘要 · Abstract (English)

Large Language Model (LLM) agents have significantly improved coding and programming workflows. Claude Code, in particular, is one of the most powerful LLM coding agents and is capable of conducting complex coding tasks. However, several drawbacks can undermine long-term agentic workflows. (1) Irrecoverable agent teams: The Agent Teams feature is powerful, but the working state accumulated by each teammate is lost and cannot be resumed once the process stops, for example, when a terminal is closed. (2) Compaction erodes working detail: Compaction condenses the conversation into a summary, causing an agent's working details to become vague. (3) Agentic "technical debt": Over time, a user's decisions and the agents' operations become trapped in compacted old chats, making the project increasingly difficult to maintain and review. (4) Heavy prompt writing: Assigning or handing off tasks requires users to repeatedly write long prompts to achieve the expected agentic performance. We propose ATWZ (Agent Team Work Zone), a filesystem-based operations layer built around Claude Code's native Agent Teams that addresses these problems. Its central design principle is to treat each agent and teammate as a human employee and preserve their important working state in files stored in a dedicated directory called a "workstation," together with the skills, hooks, and scripts that use and maintain these files. With ATWZ, an agent team can periodically back up its working state, allowing an agent's knowledge to be recovered after compaction. After a process ends, the team can be restored with a single command. These features also substantially mitigate the agentic "technical debt" described above. Moreover, within ATWZ, agent "employees" can send documents to one another, greatly reducing the effort required to write prompts.

代码代理持久化协作框架

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。