---
title: "Harness, Scaffold, and the AI Agent Terms Worth Getting Right"
description: "A glossary of AI agent terms that are often conflated. The model is a stateless LLM."
url: "https://swe.quest/articles/harness-scaffold-and-the-ai-agent-terms-worth-getting-right-0e5aba5b0f70e57a"
canonical: "https://huggingface.co/blog/agent-glossary"
source: "Hugging Face"
published: "2026-05-25"
difficulty: "easy"
kind: "Article"
reading_minutes: 12
tags: ["ai-agents","llms","model-training"]
---

# Harness, Scaffold, and the AI Agent Terms Worth Getting Right

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-05-25, 12 min read, Article. Original: [https://huggingface.co/blog/agent-glossary](https://huggingface.co/blog/agent-glossary)

## Summary

A glossary of AI agent terms that are often conflated. The model is a stateless LLM. Scaffolding is the behavior-defining layer around it: system prompt, tool descriptions, output parsing and context management. The harness is the execution loop that calls the model, runs tool calls and decides when to stop, and an agent is model plus harness. Further entries cover context engineering, policy, tool use, skills and sub-agents, plus RL training terms (environment, trainer, rollout, reward and rubrics), with pointers to TRL's GRPOTrainer, OpenEnv and Verifiers.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)

## Prerequisites

- LLM basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- tool calling

## Keywords

Claude Code, Codex, TRL, GRPOTrainer, OpenEnv, Verifiers, lm-evaluation-harness

## Related posts

- [You Should Write An Agent](https://swe.quest/articles/you-should-write-an-agent-1b4d0eb48fb350d8.md): Fly.io · 2025-11-06 · Medium · 10 min read · AI agents, LLMs, Python
  An LLM agent is just a loop around a stateless chat API: keep a list of messages, replay it on every call, and when the model emits a function\_call, run the tool and append its output.
- [How we built Linear Agent](https://swe.quest/articles/how-we-built-linear-agent-e2a4906b36843c76.md): Linear · 2026-08-10 · Medium · 7 min read · AI agents, LLMs, System design
  Linear Agent is constrained by boundaries rather than scripted paths: a fundamentals-focused system prompt, tools designed so invalid actions are impractical, and an explicit model of Linear's product concepts.
- [From model to agent: Equipping the Responses API with a computer environment](https://swe.quest/articles/from-model-to-agent-equipping-the-responses-api-with-a-computer-environment-102e043c05e5f9e2.md): OpenAI · 2026-03-11 · Medium · 10 min read · AI agents, LLMs, Sandboxing & isolation, System design
  OpenAI's Responses API now pairs with a shell tool and hosted container workspace so models can run multi-step agent workflows.
- [The Art of Loop Engineering](https://swe.quest/articles/the-art-of-loop-engineering-1c4cd354dba11ffe.md): LangChain · 2026-10-29 · Easy · 6 min read · AI agents, LLMs, Evaluation
  Agent systems can be structured as four stacked loops: the basic agent loop (model calls tools until done), a verification loop where a deterministic or LLM grader checks output against a rubric and retries with feedback, an event-driven loop where crons, webhooks or Slack channels trigger background runs, and a hill-climbing loop where an analysis agent mines production traces to rewrite prompts, tools or graders.
- [Unrolling the Codex agent loop](https://swe.quest/articles/unrolling-the-codex-agent-loop-9f9b82453a544efc.md): OpenAI · 2026-01-23 · Medium · 16 min read · AI agents, AI for coding, LLMs, Developer tools
  Codex CLI's agent loop repeatedly sends a prompt to the Responses API, executes any tool calls the model requests, and appends their outputs until the model returns an assistant message that ends the turn.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
