AI news
AI model reviews
AI tools
How-to guides
Our staffAboutContact

Agentic AI architecture and components in 2026: the parts, the loop and where it fails

Agentic AI architecture explained: the model, tools, memory, control loop and guardrails, the MCP and A2A standards, and why long agent runs fail more than you expect.

Technician inspecting server racks with a handheld tool
Photo: Valentin Lacoste on Unsplash

Agentic AI architecture is the set of parts that lets a language model take actions instead of only answering: a model that decides the next step, tools it can call, memory, a control loop that runs until the goal is met, and guardrails that check what it does. The model gets the attention, but most of the engineering (and most of the bugs) live in the components around it. If you're building or buying an agent, those are the parts worth understanding.

I'll go through each component, the loop that connects them, the open standards now forming around them and a worked example of why long agent runs fail more often than you'd expect.

Agentic AI architecture and components at a glance

Here's the full stack in one table. Not every agent needs every row; a support bot that answers from a help centre might use three of them.

ComponentIts jobTypical implementationCommon failure
ModelReads the state and picks the next actionAn LLM API callPlausible but wrong plan
InstructionsSets the goal, rules and toneSystem prompt, AGENTS.md fileRules ignored deep into a long run
ToolsActs on the outside worldFunction calling, MCP serversWrong arguments, unwanted side effects
MemoryKeeps state within and across tasksContext window, vector store, filesStale or irrelevant recall
Control loopRepeats think, act, observeReAct-style loop, orchestratorLoops without finishing
GuardrailsChecks inputs, outputs and permissionsValidators, approval stepsPrompt injection gets through
ObservabilityRecords what happened and whyTraces, logs, evalsFailures you can't reproduce

The model is the only probabilistic part. Everything else is ordinary software, which is good news: you can test it, version it and put limits on it.

The loop that ties the components together

The core pattern goes back to ReAct, a 2022 paper by Shunyu Yao and colleagues at Princeton and Google that had a model interleave reasoning traces with actions. The model writes a thought ("I need the order date"), calls a tool, reads the result and decides again. That cycle of think, act and observe is still the skeleton of most agents you'll meet.

It's also, as far as I can tell, what people usually mean when they search for "skeleton AI": the bare scaffold of loop, tools and prompt before anything product-specific is added. A separate 2023 technique called Skeleton-of-Thought, presented at ICLR 2024, has a model draft the outline of an answer first and then fill each point in parallel to cut latency.

Anthropic's guide to building effective agents draws the line I find most useful. Workflows are systems where LLMs and tools follow predefined code paths. Agents are systems where the LLM directs its own process and tool use. Both count as agentic systems, and the guide lists five workflow patterns that sit between a single prompt and a free-running agent:

  • Prompt chaining, where each call works on the previous call's output, with code checks between steps.
  • Routing, which classifies an input and sends it to a specialised prompt or a cheaper model.
  • Parallelisation, which splits a task into independent pieces or runs the same task several times and votes.
  • Orchestrator-workers, where a central model breaks down a task it couldn't plan in advance and delegates the parts.
  • Evaluator-optimizer, where one call generates and another critiques in a loop.

Its advice is blunt: find the simplest solution that works, and don't build an agent at all if one well-prompted call with retrieval does the job. I agree. Agents trade latency and cost for flexibility.

The protocols connecting tools and agents

Two open standards now cover the plumbing. The Model Context Protocol (MCP) connects an agent to tools and data. Going by its architecture overview, an MCP host such as Claude Code or Visual Studio Code creates one MCP client per MCP server it connects to. The data layer uses JSON-RPC and defines primitives like tools, resources and prompts; local servers typically talk over STDIO, while remote ones use Streamable HTTP.

The A2A protocol handles the other direction, letting agents built on different frameworks delegate tasks to each other without exposing their internal memory or tools. Its SDKs implement a v1.0 specification across Python, Go, Java, JavaScript, C# and Rust.

Governance has consolidated fast. The Linux Foundation launched the Agentic AI Foundation on December 9, 2025, with MCP from Anthropic, goose from Block and AGENTS.md from OpenAI as its first projects. By October 22, 2026 it had 305 member organisations, and A2A has since joined it too. That surprised me a little; a year ago I'd have bet on a longer protocol war.

Real examples of the architecture in use

The MCP docs give a concrete one. When VS Code connects to the Sentry MCP server (remote, over HTTP) and the local filesystem server (over STDIO), it runs two separate MCP clients, one per connection. Your coding agent can then read an error report from Sentry and open the file that threw it, without anyone writing a custom Sentry integration for that editor.

Customer support is the classic routing case: general questions, refund requests and technical issues each get their own prompt and tools, and easy questions go to a small, cheap model. More in our piece on AI agents for customer support.

Coding agents use orchestrator-workers most often, because nobody knows in advance how many files a change will touch. The orchestrator reads the repository (often guided by an AGENTS.md file at its root), plans the edits, hands each file to a worker call and runs the tests. If you'd like to see the boxes and arrows, our AI agent architecture diagram walks through the same parts visually.

Benefits and limitations

The benefit is reach. A model with tools can check a live order status, query a database or run a test suite, and a loop lets it recover from a bad first attempt by reading the error and trying again. Tasks that used to need a person clicking between five systems can run end to end.

The cost is reliability, and it compounds. Here's a worked example.

Failure modes and the maths of long runs

Suppose each step of an agent's run (one decision plus one tool call) succeeds 95% of the time, and steps fail independently. The chance that the whole run succeeds is 0.95 raised to the number of steps.

Steps in the task95% per step99% per step
577%95%
1060%90%
2036%82%
508%61%

A 95% step success rate sounds excellent. Over 20 steps, though, it finishes cleanly about a third of the time, which is why I think checkpoints and retries matter more than model choice for long tasks. Real failures aren't fully independent, so treat these as rough numbers; a single bad plan early on can sink every later step, and a good verifier can catch errors before they spread.

Other ways agents break are less about probability:

  • Prompt injection, where text inside a web page, email or document tells the agent to do something its user didn't ask for.
  • Context overflow, where a long run pushes the original instructions out of the model's working memory.
  • Tool misuse, such as a wrong date format or an API call that charges a card twice because nobody made it idempotent.
  • Cost blowouts from loops that retry without a cap.

Practical takeaways for builders

If you're designing an agent, this checklist covers the decisions that matter most.

  1. Start with a workflow. Move to a free-running agent only when you can't map the steps in advance.
  2. Keep tool definitions small and well documented, with clear argument types and examples.
  3. Put hard limits in code: maximum steps, maximum spend and an allowlist of actions.
  4. Require human approval for anything irreversible, like payments, deletions or sending email.
  5. Log every model call and tool result so you can replay failures. Our roundup of AI agent observability tools compares the options.
  6. Use MCP for tool connections unless you have a strong reason not to, since that's where server support is growing.

Honestly, the third point catches more teams than any other. If you'd rather not build at all, our comparison of building versus buying AI agents covers that trade-off, and our guide on how to create an AI agent goes step by step.

The next stage for agent architecture

The parts are standardising faster than the products built on them. MCP, A2A and AGENTS.md all sit under one foundation now, which probably means less custom glue code and more agents from different vendors calling each other. The foundation's October announcement framed the open questions as authentication, verification of actions and accountability when an agent acts for an organisation. Those sound like the right ones to me.

The vendors are also moving up the stack. Anthropic's agent guide now carries a note that much of the tooling it described in December 2024 has changed, and points readers to its Claude Managed Agents documentation instead. My guess is that more teams will rent the loop, memory and sandboxing as a hosted service and keep only the tools and instructions in-house. For the bigger picture, our explainer on what agentic AI is is a good next read.

FAQ

What are the main components of agentic AI architecture?

A model that chooses actions, instructions that set the goal, tools for acting on other systems, memory, a control loop and guardrails. Production systems add observability so you can trace each step.

What's the difference between an AI agent and an agentic workflow?

In a workflow, your code fixes the sequence of LLM calls and tool calls in advance. In an agent, the model decides which step comes next and when to stop. Anthropic counts both as agentic systems and recommends starting with workflows, because they're more predictable, cheaper to run and easier to debug.

Does an AI agent need MCP?

No. You can connect tools through any model's native function calling. MCP is useful because one server works with many hosts, so you write a tool integration once instead of once per app.

What is skeleton AI?

It isn't a single product. In agent discussions, the skeleton usually means the bare scaffold of loop, prompt and tools. Skeleton-of-Thought is a separate 2023 research technique in which a model writes an answer outline first, then expands each point in parallel to reduce response time.

How do AI agents remember things?

Short-term memory is the context window: everything in the current conversation and tool results. Long-term memory is external, usually a database, a vector store searched with retrieval or plain files the agent reads back at the start of each task. Our guide to retrieval-augmented generation explains the retrieval side.

Keep reading