# Agent harness

Canonical page: https://www.theglitch.ai/ai-glossary/agent-harness

Everything around the model that makes it an agent: the loop, tools, memory, context management and stopping rules.

[Agent harness, common card \#005 in The Glitch AI glossary: Everything around the model that makes it an agent: the loop, tools, memory, context management and stopping rules.](https://www.theglitch.ai/images/cards/glossary/agent-harness.png?v=dca345d7abcd845f)

GLS 005 · common

Also called: Scaffolding.

For: Builders

## Why it matters

Two products on the same model can differ wildly because of the harness.

## In practice

A harness saves progress notes so a long coding task survives a fresh context window.

## Watch for

Model upgrades can break harness assumptions; retest after switching.

## Related terms

[Context engineering](https://www.theglitch.ai/ai-glossary/context-engineering) · [Agent](https://www.theglitch.ai/ai-glossary/agent) · [Coding agent](https://www.theglitch.ai/ai-glossary/coding-agent)

## Guides that use it

[AI agents, minus the hype.](https://www.theglitch.ai/learn/ai-agents) · [Open-source AI agents worth trying in 2027.](https://www.theglitch.ai/learn/open-source-ai-agents) · [AI coding agents for 2027, compared.](https://www.theglitch.ai/learn/ai-coding-agents-2027)

## Sources

- [Anthropic: Effective harnesses for long-running agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
