34 ms·
An agent harness is what enables the user to seamlessly interact with both a model and tool calls. Claude Code is an agent harness. ┌────────────────────────
by rahimnathwani 9mo ago
An agent harness is what enables the user to seamlessly interact with both a model and tool calls. Claude Code is an agent harness.
┌────────────────────────────┐
│ User │
└──────────────┬─────────────┘
│
▼
┌────────────────────────────┐
│ Agent Harness │
│ (software interface) │
└──────┬──────────────┬──────┘
│ │
▼ ▼
┌────────────┐ ┌────────────┐
│ Models │ │ Tools │
└────────────┘ └────────────┘
Here's an example of a harness with less code: https://github.com/badlogic/pi-mono/blob/fdcd9ab783104285764a4b770c39b7811be5f570/packages/agent/src/agent-loop.ts#L104 https://github.com/badlogic/pi-mono/blob/fdcd9ab783104285764...