DeepSeek Harness and pi: Two Agent Design Philosophies
An article published by the AngryCode WeChat account defines an agent harness as the execution layer that turns text generation into tool-driven action through agent loops, context assembly, tool execution, memory and permissions. It contrasts DeepSeek Harness's plugin-oriented design, in which components including the loop can be replaced, with pi's fixed minimal kernel and limited extension points. The article also cites SWE-agent's reported SWE-bench results for the same GPT-4 Turbo, rising from a 1.31% RAG baseline to 12.47% after redesigning the agent-computer interface, and says mini-swe-agent's README reports more than 74% on SWE-bench Verified.
The cited results indicate that context and interface design can materially affect task success without changing the underlying model. The product details and benchmark figures come from a single secondary article.
同一个模型,放进聊天框里只会一问一答,放进 Coding Agent 里却能改文件、跑命令、连续干几十轮活。中间多出来的那套东西是什么? 那套东西叫 harness(挽具,缰绳,执行框架)。它是模型之外的全部代码:跑循环的、装配上下文的、执行工具的、管记忆的、管权限的。 现在有两家公司把这套代码开源了出来,设计哲学正好相反:一家说"一切皆插件",连循环本身都能换掉;一家说"最小内核",功能少到刻意不做子任务。读懂这场分歧,才算读懂 harness。
本文收录于微信公众号:愤怒的代码 AngryCode
0x00、harness 这个词,本义是挽具
harness 在英文里的本义是"挽具"——套在马身上那套皮具。马有力量,但光有马拉不了车:得有缰绳、马鞍、车辕,把马的力量导到车上,马才拉得动货。这个词从造出来起,指的就是"把力量导出来用的装置"。
机器学习语境里,harness 先用来指评测架。EleutherAI 的 lm-evaluation-harness 是典型:一套固定装置,把任意一个模型卡进去,接上 benchmark,按统一流程跑评测、报分数。模型在这里是被测的"马",harness 是把它固定住、把力导出来的架子。
#DeepSeek Harness#pi#mini-swe-agent#SWE-agent#GPT-4 Turbo#SWE-bench#SWE-bench Verified#Cordis#Model Context Protocol