Harness
Also: agent harness · 執行框架 · harness 是什麼
The layer of code wrapped around a model: assembling context, calling the model, parsing output, running tools, gating permissions, feeding results back.
When you will meet it
The same model in different harnesses performs very differently. When you choose a tool, you are largely choosing a harness.
An analogy
A horse and its harness. The horse has power, but without the harness that power cannot pull a cart. The model is the horse; the name is literal.
Minimal example
harness 負責的事(模型一件都不做):
· 決定這次要送哪些上下文進去
· 把可用工具清單描述給模型
· 解析模型回傳,判斷是文字還是工具請求
· 真的去執行工具,並在受限環境裡執行
· 把結果接回上下文,再問一次
· 決定什麼時候停So "the AI did something wrong" usually means a link in the harness failed, not that the model is broken.
1/8User request
The task arrives in plain language. The harness has to turn it into something a model can act on.
Step 1 of 8 User request
What people get wrong
- Confusing harness with framework. A framework (like LangChain) is a parts box for building a harness; the harness is the running thing you built.
- Assuming a new tool means a new model. Many tools share the same models; what differs is the harness.
Related terms
Next
- AI Agent 是什麼:從 ChatGPT 到會自己做事的 AI12 minChinese only
- The Ultimate Comparison of 7 AI Agent Loop Engineering Architectures: From while(true) to Multi-Agent Orchestration35 min
Read further
7 大 AI Agent 循環工程架構終極對比:從 while(true) 到多智能體編排