Understanding agents

From chatbot to a team of agents

An agent is a language model in a loop: it plans, uses tools, checks results – and keeps going until the goal is reached. Here we take apart how sub-agents, skills, MCP servers and a knowledge graph as memory work together – and what the model actually “sees” along the way.

The core idea

The agent loop

An LLM on its own answers exactly once. An agent works in a loop – until the task is done or it gets stuck.

Gather context

What do I already know? What's missing? Conversation history, memories and documents are read.

Plan

Which step gets me closer? Which tool, which sub-agent, which skill?

Act

Call a tool – for example via an MCP server –, run code, search, or delegate.

Check

Does the result fit? Is something missing? Then back to step 1 – otherwise answer.

The building blocks

Who's on the team?

Modern agent systems consist of a handful of clearly separated building blocks. Tell them apart and you'll understand 90 % of product announcements.

LLM

The reasoning engine. Reads the context, writes text – and decides which tool comes next.

Orchestrator agent

The project lead. Breaks the task down, hands work to sub-agents, assembles the results and answers.

Sub-agents

Specialists with their own context window, own prompt and own tools. They work in isolation and only return a distilled result – keeping the main context lean.

Skills

Packaged know-how as a folder: a SKILL.md with instructions, plus scripts and templates. Up front the agent only knows name and description – the rest is loaded when needed.

MCP servers

The standard socket into existing systems: knowledge graph, CRM, files, tickets. A server describes its tools – any MCP-capable agent can use them.

Knowledge graph

Long-term memory: entities and relationships instead of loose text snippets. The agent reads from it – and writes new insights back.

Telling them apart

Agent, sub-agent, skill, MCP – who does what?

What is it? Own context? When in the context? Example
Agent (orchestrator) a loop of model + tools yes – the main context always “Answer the user's question”
Sub-agent a delegated agent with its own task yes – separate from the main context only its result comes back “Researcher: search the knowledge graph”
Skill instructions + scripts (know-how) no – gets loaded into a context name/description always, content on demand “Data analysis: how I build a comparison table”
MCP server interface to a system no – provides tools and data tool descriptions always, results when called “knowledge-graph: search, add_memory”

Rule of thumb: MCP gives the agent hands, skills give it recipes, sub-agents give it focus. The three complement each other: a skill can describe how to use an MCP tool well – and a sub-agent can use skills and MCP tools without cluttering the orchestrator's context.

Model Context Protocol

How the agent talks to existing systems

The Model Context Protocol (MCP) is an open standard, originally introduced by Anthropic and now developed across vendors. The idea: instead of bolting every system onto every agent individually, you build one MCP server – and every MCP-capable agent can use it.

An MCP server wraps a system and offers three things:

  • Tools – functions the model can call (kg_search, crm_find_requests, create_ticket)
  • Resources – readable data such as documents or records
  • Prompts – ready-made templates for typical tasks

Technically it's JSON-RPC: at start-up the agent lists the available tools (tools/list). Their descriptions end up in its context – which is why many connected servers cost tokens before any work is done. When it needs a tool, it sends a call:

{
  "jsonrpc": "2.0", "id": 7, "method": "tools/call",
  "params": { "name": "kg_search", "arguments": { "entity": "Project Atlas", "depth": 2 } }
}

The result comes back as text or structured data – and becomes part of the context. More details: MCP explained.

Agentic RAG

Searching with a plan – and with memory

Classic RAG fetches text snippets once and answers. Agentic RAG lets the agent decide where and how often to search – and with a knowledge graph as long-term memory it gets smarter with every request.

Pipeline

Classic RAG

  • Question → search once → answer
  • Always the same source (usually a vector database)
  • No check whether the hits are good enough
  • Forgets everything after answering

Agent

Agentic RAG + knowledge graph

  • The agent plans: which sources do I need for what?
  • Combines knowledge graph, web and existing systems via MCP
  • Checks the hits and searches again when something's missing
  • Writes lessons learned back into the graph – memory for next time

Why a graph? Relationships like Project Atlas → uses → handwriting search → requested by → customer B can be queried and extended precisely. Vector search stays strong for fuzzy similarity – combining both (often called GraphRAG) usually works best in practice.

Interactive

One run, step by step

One question, two sub-agents, one skill, three MCP servers and a memory. Play the run or step through it – below, the orchestrator's context grows as it goes.

🧪Interaktive Demo · Interactive demo: agent-flow

Interactive

What the model actually sees

In the end, every request to an LLM is one single, long text: the context. Build it yourself – and see why sub-agents, skills and memory are above all one thing: tools to keep that context clean.

🧪Interaktive Demo · Interactive demo: context-window

Takeaways

Three things to remember

Context is scarce

Everything the model should know has to be in the context – and it has a limit. Good agent architecture is mostly context management.

Standards beat one-offs

One MCP server per system, usable by any agent. Skills as folders you can share and version.

Memory makes it better

An agent that writes lessons learned into a knowledge graph doesn't have to work out the same question twice.