Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 12 min read Article easyNovice

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

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.

Assumes: LLM basicstool calling

Related posts

  • You Should Write An Agent

    Fly.io mediumAdept

    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. A few dozen lines of Python against the OpenAI Responses API produce a working tool-using agent that decides on its own to ping multiple Google hosts. MCP is barely a technology, just a plugin interface for agents you don't control, and context engineering is a real, legible programming problem of budgeting tokens across sub-agents, tools and summaries. Agent design leaves open problems around nondeterminism, grounding, inter-agent interchange formats and cost, and each design iteration takes about 30 minutes, so engineers should build one themselves.

  • How we built Linear Agent

    Linear mediumAdept

    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. Because the agent has many shallow product tools rather than a few deep ones like a coding agent, capabilities are packaged as "system skills" (metadata, prompt fragment, tools) that are preloaded from context or loaded on demand to keep context small. Linear deliberately avoided exposing the SDK, CLI or GraphQL API, trading breadth for predictability. A custom harness on a durable workflow engine supports dynamic tool injection that preserves the provider prefix cache, contextual tool-call approval, and suspending a parent agent while sub-agents run asynchronously.

  • From model to agent: Equipping the Responses API with a computer environment

    OpenAI mediumAdept

    OpenAI's Responses API now pairs with a shell tool and hosted container workspace so models can run multi-step agent workflows. The API orchestrates the loop itself: it streams command output back to the model, runs multiple commands concurrently in separate sessions, and truncates large outputs while keeping their beginning and end. Native compaction carries long-running sessions across context-window limits. The containers stage files and SQLite databases instead of stuffing prompts, route network egress through a sidecar proxy with allowlists and domain-scoped secret injection, and load versioned 'skills' bundles (SKILL.md plus resources) that the model explores via shell commands.

  • The Art of Loop Engineering

    LangChain easyNovice

    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. Each level maps to a LangChain primitive (create_agent, RubricMiddleware, LangSmith Deployment triggers or Fleet channels, LangSmith Engine), illustrated with an internal docs-writing agent. Verification trades extra latency and cost for quality, and human-in-the-loop checkpoints are recommended at every level for sensitive actions. The argument is that compounding value lies in the outer event and improvement loops.

  • Unrolling the Codex agent loop

    OpenAI mediumAdept

    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. The initial prompt is assembled from three parts: instructions from config or bundled model files, a tools list (shell, update_plan, web_search, MCP tools), and ordered input items. Those input items cover sandbox permissions, developer instructions, aggregated AGENTS.md user instructions (32 KiB limit), skills and environment context. Responses stream back as SSE events, and reasoning and function-call items are fed back into later requests, so prompt length grows and context-window management becomes a core harness responsibility.

The quest for software engineering knowledge.

Look:
Layout: