Academy · Platform · Agents

Agent anatomy

In one line. What an agent actually is under the hood — the model, the persona, the harness, the context — so every tab in the agent editor stops being a form and starts being a decision. You’ll be able to. Reason about agent behavior from first principles: why an agent answers well, drifts, refuses, or burns tokens — and which part of its anatomy to adjust.

The parts

An agent is not a model. A model is a mind for rent; an agent is that mind hired into a job, with a role, materials, equipment and rules. Five parts:

Part What it is Where you shape it
Model The LLM that does the thinking. Swappable — the same agent definition can run on a different registered model, or on Auto routing. A2 · LLMs & services
Persona The plain-language job description: role, task, tone, output contract, refusal rules. This is the highest-leverage text you will write on this platform. Agent Persona tab
Knowledge The collections the agent may read. Grounding and access boundary in one — attach nothing, and the agent knows nothing about your business. Agent Knowledge tab, D1
Capabilities Tools, skills and MCP servers — what the agent can do beyond reading and writing text. A5, A6, A7
Guard rails The rules layered onto every run. A8 · Guard rails

Around those parts sits the harness — the platform machinery that turns a one-shot text model into a worker you can trust with a queue: it assembles the context for each run, executes tool calls, records the trace, scores confidence, and hands results to the lifecycle.

What happens on a run

Every run — playground chat or production document — is the same loop:

  1. Assemble. The harness builds the context: persona, the relevant slices of attached knowledge, the document or question at hand, and the schema it must fill.
  2. Think. The model reasons over that context. If it decides it needs a capability — a lookup, a calculation, a search — it calls a tool, gets the result, and continues.
  3. Answer. The output lands where the run came from: an answer with citations in chat, or schema fields with per-field confidence on a document.
  4. Record. The full trace — inputs, tool calls, output, confidence, cost — is kept, which is why you can inspect any run after the fact.

The playground shows you this loop live; production runs it silently at volume. Same anatomy, same behavior — which is exactly why playground testing predicts production behavior.

Context is the scarce resource

A model reads a finite window of text per run. The harness spends that budget for you — persona first, then the knowledge slices most relevant to the task, then the work itself. Two practical consequences:

  • Relevance beats volume. Attaching ten collections “just in case” doesn’t make an agent smarter; it makes retrieval noisier. Attach what the job needs.
  • The persona is always in the room. It is read on every single run, which is why one precise sentence there outperforms a paragraph of vibes.

Why agents misbehave — a diagnosis table

Symptom Usually means Fix at
Confident nonsense Answering beyond its grounding Persona: require citations, demand refusal when unsupported; check Knowledge attachments
Right answer, wrong format Output contract underspecified Persona: state the format explicitly; schema field descriptions
Ignores its documents Question outruns retrieval, or wrong collection attached Knowledge tab; D6 · Search & indexes
Slow or expensive Over-tooled, or a heavier model than the job needs Capabilities: remove unused tools; Model: try a lighter model — measure in the playground
Inconsistent across runs Task too big for one worker Split it: teams & mesh or a pipeline

One worker, then many

Everything above describes one agent. The platform’s larger patterns are this same anatomy repeated: a team or mesh is agents with a coordination layer; an XFlow is agents with an orchestration layer; an Agentic System is a fleet of them over one domain model. Master the single worker first — the rest is arrangement.

Where to go next

Prefer learning inside the product? The same academy lives in the platform's Learn menu — every screen links to the chapter that explains it.

See the platform live