---
title: "Patterns & Practice"
canonical: "https://anchor.is/the-context-window/issue/1/how-agents-work"
publication: "The Context Window"
publisher: "The Context Window"
language: "en-US"
guide: "https://anchor.is/the-context-window/llms.txt"
permalink: "https://anchor.is/the-context-window/issue/1/how-agents-work"
issue: 1
section: "how-agents-work"
description: "How AI systems are actually built — from a single prompt to autonomous agents."
authors: ["Leigh Garrity"]
updated: 2026-05-12
articles: 15
---

# The Context Window

> Know what you're walking into.

[Read on the website](<https://anchor.is/the-context-window/issue/1/how-agents-work>)

## Issue 1 — Patterns & Practice

How AI systems are actually built — from a single prompt to autonomous agents.

### The Complexity Ladder

- [The Deployment Pattern Matters More Than the Model](<https://anchor.is/the-context-window/issue/1/how-agents-work/article/15615/markdown>) — By [Leigh Garrity](<https://anchor.is/the-context-window/team/48/markdown>) · Published 2026-05-09 · Format: Section Opener

Most AI initiatives your buyers describe are workflows wearing agent vocabulary, carrying governance overhead they never needed. Anthropic's complexity ladder — from single LLM calls to genuine autonomous agents — has become the most stable framework for sorting what's real from what's mislabeled. Each rung raises different identity questions. Your IDAM instincts are reliable through about the third one. This section maps the territory after that, pattern by pattern, starting with where the familiar mental models stop working.

- [Your Buyer Pays by the Token, and They Already Chose Where](<https://anchor.is/the-context-window/issue/1/how-agents-work/article/15620/markdown>) — By [Leigh Garrity](<https://anchor.is/the-context-window/team/48/markdown>) · Published 2026-05-09 · Format: Concept Explainer

When your buyer says they're "using Claude," they almost certainly aren't calling Anthropic. They're calling Claude through Bedrock, Azure AI Foundry, or Vertex AI — same model, same per-token rate, completely different compliance and procurement story. The hyperscaler won this decision before AI entered the conversation.

- [What You Get When a Lab Releases the Weights and What It Costs to Run Them Yourself](<https://anchor.is/the-context-window/issue/1/how-agents-work/article/15619/markdown>) — By [Leigh Garrity](<https://anchor.is/the-context-window/team/48/markdown>) · Published 2026-05-09 · Format: Concept Explainer

When a buyer says they're evaluating Llama or DeepSeek for internal deployment, they're describing an infrastructure decision with specific consequences for identity and access. "Releasing the weights" gets treated as synonymous with open source, which creates real problems once procurement and legal get involved. The licenses aren't interchangeable, the GPU requirements are steep, and the dominant serving framework ships with no authentication by default.

- [Naive RAG vs. Production-Grade RAG](<https://anchor.is/the-context-window/issue/1/how-agents-work/article/15617/markdown>) — By [Leigh Garrity](<https://anchor.is/the-context-window/team/48/markdown>) · Published 2026-05-09 · Format: Technical Comparison

When a buyer says "we built a RAG pipeline," they could mean a weekend prototype that answers questions about embedded PDFs or a multi-stage retrieval system with hybrid search and document-level authorization. You'll hear both claims on calls, sometimes from the same account. The difference between them is where conversations get interesting.

- [Workflows vs. Agents — The Distinction That Earns You the Room](<https://anchor.is/the-context-window/issue/1/how-agents-work/article/15618/markdown>) — By [Leigh Garrity](<https://anchor.is/the-context-window/team/48/markdown>) · Published 2026-05-09 · Format: Technical Comparison

Anthropic drew the sharpest technical line between workflows and agents: workflows follow paths you designed; agents choose their own. That distinction governs authorization, cost, and how the system fails. Most buyers who say "agent" are describing a workflow. The AE who can name which one they actually need, and explain why it matters for auditability and blast radius, earns a different kind of conversation. This piece covers the five workflow patterns, the agent failure mode nobody mentions in demos, and field-ready language for each.

- [Copilots Have Your Permissions. All of Them.](<https://anchor.is/the-context-window/issue/1/how-agents-work/article/15616/markdown>) — By [Leigh Garrity](<https://anchor.is/the-context-window/team/48/markdown>) · Published 2026-05-09 · Format: Concept Explainer

Microsoft 365 Copilot doesn't get its own permissions. It gets the user's. Every SharePoint site, every Teams channel, every OneDrive folder they can access — Copilot searches all of it on every prompt. The authorization boundary hasn't moved. But the AI exercises the full granted permission set simultaneously, which means every overshared folder and every stale group membership from a 2019 migration is now active exposure.

- [Function Calling, MCP, and Skills Are Layers, Not Choices](<https://anchor.is/the-context-window/issue/1/how-agents-work/article/15621/markdown>) — By [Leigh Garrity](<https://anchor.is/the-context-window/team/48/markdown>) · Published 2026-05-09 · Format: Technical Comparison

Function calling, MCP, and Skills keep showing up in the same buyer sentences, usually without clear boundaries between them. They're layers in a single stack, each operating at a different altitude: the model formats the request, MCP transports it, Skills decide whether it should happen at all. That distinction buys real credibility in a CAIO conversation.

- [Cloud API vs. On-Device Inference — Let the Buyer's Constraint Decide](<https://anchor.is/the-context-window/issue/1/how-agents-work/article/15622/markdown>) — By [Leigh Garrity](<https://anchor.is/the-context-window/team/48/markdown>) · Published 2026-05-09 · Format: Technical Comparison

Every AI model runs somewhere. Your buyer's constraint decides where. Cloud API inference sends prompts to a provider's GPUs over the network. On-device inference keeps everything on hardware the buyer controls. The moment a public sector buyer says "that data can't leave our network," you're in this conversation whether you planned to be or not.

- [Recap — Deployment Patterns Cheat Sheet](<https://anchor.is/the-context-window/issue/1/how-agents-work/article/15614/markdown>) — By [Leigh Garrity](<https://anchor.is/the-context-window/team/48/markdown>) · Published 2026-05-09 · Format: Recap

You just read eight articles. Your head is full. This is the structure that makes it stick.

### Quick-Scan Dashboard

AI systems get assembled in layers. Each layer solves a problem the one below it couldn't handle, which is the reasonable part. The less reasonable part is that each layer also introduces its own failure mode, its own governance surface, and its own vocabulary that your buyer already expects you to speak fluently.

These six cards cover the architecture patterns landing in public sector conversations right now. The complexity ladder and why Anthropic says to stay as low on it as possible. Where regulated buyers actually deploy models and the shortcut that explains why. Open weights, RAG failure modes, the workflow-versus-agent distinction that most buyers get backwards, and what MCP leaves dangerously unfinished.

Scan before the call. Skip what doesn't apply.

- **Six Rungs From Prompt to Agent** — [Source](<https://www.anthropic.com/news/building-effective-agents>) — Published 2026-05-09

Tag: Architecture Ladder

Anthropic's operating principle: find the simplest solution possible, and climb only when it breaks. Single prompt → RAG (adds live data) → workflow (adds orchestrated steps) → tool use (adds real-world action) → agent (adds autonomous planning) → multi-agent (adds delegation). Every rung up costs you latency, money, and governance headaches. Climb reluctantly.

- **Regulated Buyers Choose Hyperscalers for the ATO** — [Source](<https://aws.amazon.com/bedrock/>) — Published 2026-05-09

Tag: Deployment Posture

Bedrock, Azure AI Foundry, and Vertex AI inherit the hyperscaler's FedRAMP/HIPAA/SOC posture. Direct model APIs authenticate with static keys, route over public internet, and live outside CloudTrail. Yes, the per-token cost is higher and model versions lag. Buyers accept that trade because the ATO already exists. One less fight with the authorizing official.

- **Open Weights Ship Parameters, Not Infrastructure or Ops** — [Source](<https://www.digitalapplied.com/blog/self-host-frontier-models-tco-analysis-2026>) — Published 2026-05-09

Tag: Open Weights

"Releasing the weights" means distributing trained model parameters. Not training data. Not alignment procedures. Not the vendor's safety guardrails. The capability gap with proprietary models has narrowed to 5–10 benchmark points. The ops gap has not. Self-hosting breaks even above roughly 1.2B tokens per month, and that math conveniently ignores the $250K+ inference engineer you'll need to hire. In practice, most self-hosting plans quietly turn into Bedrock deployments.

- **Four Ways RAG Fails While Looking Confident** — [Source](<https://bigdataboutique.com/blog/from-prompt-engineering-to-context-engineering>) — Published 2026-05-09

Tag: RAG Failures

Poisoning: wrong data gets into the index. Distraction: irrelevant chunks drown the relevant ones. Confusion: contradictory sources produce hedged nonsense. Clash: the system prompt and retrieved content give the model conflicting instructions, and the model picks one without telling you which. Practitioner estimates put naive retrieval failure around 40%. That figure is not peer-reviewed. The output looks authoritative regardless.

- **Most Buyers Saying Agent Actually Need a Workflow** — [Source](<https://www.anthropic.com/news/building-effective-agents>) — Published 2026-05-09

Tag: Pattern Distinction

Anthropic draws the line cleanly. Workflows orchestrate LLMs through predefined code paths. Agents let the model dynamically direct its own process and tool usage. If the sequence is predictable enough to diagram on a whiteboard, it's a workflow. Agents earn their complexity only when the path genuinely cannot be planned in advance. The autonomous version compounds errors, costs more, and resists testing. Most buyers who say agent need a workflow.

- **MCP Solves Connectivity, Not Authorization. It Shows.** — [Source](<https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/update-on-exposed-mcp-servers-the-threat-widens-to-the-cloud>) — Published 2026-05-09

Tag: MCP Security

Trend Micro's July 2025 scan turned up 492 MCP servers running without client authentication or encryption. Tool poisoning is already a demonstrated attack class: malicious instructions hidden in tool descriptions slip into the agent's context as trusted content. OWASP has an MCP Top 10 in beta. Authorization remains optional in the spec. The protocol standardizes how agents connect to tools. Whether they should be allowed to is, apparently, someone else's department.

## Other sections in Issue 1

- [AI Foundations](<https://anchor.is/the-context-window/issue/1/the-language/markdown>)
- [Models & Vendors](<https://anchor.is/the-context-window/issue/1/the-identity-layer/markdown>)
- [Under the Hood](<https://anchor.is/the-context-window/issue/1/signal/markdown>)
- [The Plumbing](<https://anchor.is/the-context-window/issue/1/placeholder/markdown>)

## More

- [Publication guide](<https://anchor.is/the-context-window/llms.txt>)
- [Issue archive](<https://anchor.is/the-context-window/issues/markdown>)
