EN — In long-horizon agent runs, artifacts such as experiment logs, code diffs, error traces, and past trajectories quickly outgrow the context window, so a harness should keep durable state in the file system and let the model read, write, and edit files via shell commands instead of carrying the whole workflow in context. The same principle makes subagent parallelism recoverable: outputs stored as files, logs, and status records survive interruptions and can be reasoned over later, while outputs that live only in transient chat context quickly become obsolete and hidden.

中文 — 在长程 agent 运行中,实验日志、代码 diff、错误追踪和过往轨迹等产物很快会超出上下文窗口,因此 harness 应把持久状态保存在文件系统中,让模型通过 shell 命令读写编辑文件,而不是把整个工作流塞进上下文。同样的原则使子 agent 并行可恢复:以文件、日志和状态记录存储的输出能在中断后幸存并供日后推理,而只存在于临时聊天上下文中的输出很快就会过时并被埋没。

Related: