ChanlChanl
Blog/Tags/agent-architecture

agent-architecture

Browse 50 articles tagged with “agent-architecture”.

Articles tagged “agent-architecture

50 articles

A writer at a warm handheld screen in a softly lit evening apartment sweeps older conversation lines into a small drawer, faded transcript pages curl in a wastebasket nearby, and a slim meter sinks from red toward green, in a Her-style terra-cotta watercolor palette
Knowledge & Memory·16 min read

Build Context Editing Into Your Agent and Cut Token Use 84%

Stale tool results pile up in long conversations, raising cost and hurting accuracy. Context editing and the memory tool fix both. Here's how to build them.

Read More
A small tinkering robot at a sunlit cluttered workbench fitting a bright new engine into a hand-built wooden frame of pulleys, guards and safety latches that dwarfs the engine (WALL-E film style, sage-olive watercolor palette)
Agent Architecture·11 min read

Your Agent Is Only as Good as Its Harness

Upgrading the model rarely fixes a failing agent. The harness, the code that manages tools, memory, and context, is where agent quality actually lives.

Read More
A slender android at a bare desk in a glass-walled studio at dusk writing one flowing branching script on a translucent pane, while behind the glass a wall of dozens of small labeled levers sits untouched (Ex Machina style, teal-copper palette)
Tools & MCP·12 min read

How to Build an Agent That Writes Code Instead of Calling Tools

One JSON tool call per turn is slow, token-heavy, and brittle. A short script that orchestrates tools in a sandbox is faster and cheaper. Here's how it works.

Read More
A Contract Document Overlaid on an AI Agent Decision Loop Diagram
Agent Architecture·13 min read

Agent Behavioral Contracts: Stop Drift Before It Hits Callers

Behavioral drift happens with no prompt change and no failing test. Agent behavioral contracts enforce rules at runtime and flag drift before callers do.

Read More
Graph visualization showing customer entity nodes connected to order, issue, and conversation nodes with relationship labels and timestamps
Knowledge & Memory·16 min read

Your agent doesn't need more memory. It needs a graph.

Session memory forgets. RAG retrieves but doesn't reason. Context graphs give your CX agent a persistent, queryable model of every customer, issue, and relationship it's ever encountered -- at a fraction of the token cost.

Read More
Diagram showing a multi-agent system with red failure indicators at context handoff and error propagation points
Agent Architecture·16 min read

Why 40% of multi-agent systems fail in production

Nearly half of multi-agent CX pilots fail within six months of production — not because the AI is wrong, but because teams don't understand how multi-agent systems break. Here are the five failure modes and how to diagnose each.

Read More
Warm illustration of two figures in conversation, one gesturing toward a branching path ahead
Agent Architecture·12 min read

How to rescue a stuck CX agent conversation

Conversations get stuck in four predictable patterns: clarification spirals, topic drift, assumption deadlocks, and initiative mismatches. Here's how to detect each one mid-flight and apply the repair move that actually works.

Read More
Two-tier agent architecture diagram showing a reasoning model planning a multi-step action sequence that a fast execution model then follows
Agent Architecture·12 min read

Reasoning models for CX agents: when to think slow, when to move fast

Extended thinking models improve decision quality for complex CX scenarios, but add 5-30 seconds of latency and cost 3-5x more. Here's the planning-execution architecture that gets you the benefit without the tradeoff.

Read More
MCP protocol diagram showing extensions and tasks flow
Tools & MCP·12 min read

MCP's 2026 spec changes what your tools can do

The MCP spec RC is out with Extensions, Tasks, MCP Apps, and OAuth hardening. Here's what changes for CX agent builders before the July 28 final.

Read More
Edge server rack with AI agent monitoring dashboard
Agent Architecture·13 min read

On-device AI agents for CX: what edge deployment unlocks

On-device AI agents are no longer a research project. Here's what running your CX agent on local hardware actually unlocks in 2026, and what it doesn't.

Read More
Illustration of a debugger stepping through a recorded sequence of AI agent tool calls and LLM responses in a timeline view
Agent Architecture·15 min read

How to debug the agent conversation you can't reproduce

AI agents fail in ways you can't reproduce by resending the same message. Deterministic replay captures what the agent saw and did so you can step through the failure exactly as it happened.

Read More
Timeline diagram showing customer context loading in parallel with call connection, before the first agent utterance
Knowledge & Memory·12 min read

Agent warmup: preload customer context before the first word

Most agents ask for information they already have. Here's how to preload the right customer context before an interaction starts, so your agent sounds like it knows the customer from word one.

Read More
Diagram showing the MCP session lifecycle being replaced with stateless request handling, with session state moving to an external Redis store
Tools & MCP·13 min read

What the July 28 MCP spec means for your stateful agents

The July 28 MCP spec is the largest protocol revision since launch. Sessions are removed. Stateless request handling replaces the initialization handshake. Here's what breaks and how to fix it before the deadline.

Read More
A split timeline showing a fast lightning bolt on one side and a slow thoughtful brain circuit on the other, rendered in warm amber tones against dark background
Agent Architecture·16 min read

Extended thinking for CX agents: when slow beats fast

Reasoning models (Claude Opus 4.7, o3, Qwen 3) let your agent think through complex problems before acting. For some CX tasks that's a major improvement. For others, it's a 4-second pause before telling someone their order ships Thursday.

Read More
Empty customer profile card with a question mark, representing an AI agent meeting an unknown customer for the first time
Knowledge & Memory·15 min read

What your agent does when it knows nothing about a customer

The cold-start problem hits every CX agent on first contact: no history, no profile, no context. Here's a practical architecture for handling first-contact customers without making them feel like strangers.

Read More
YAML workflow definition with deterministic routing arrows between labeled agent nodes, contrasted with a tangled LLM reasoning cloud
Agent Architecture·14 min read

Stop Spending Tokens on Agent Routing

Microsoft's open-source Conductor CLI routes multi-agent CX workflows with YAML and Jinja2 -- zero tokens spent on orchestration. Here's when to use it and when to stick with LLM-driven routing.

Read More
A horizontal dial from fully supervised on the left to fully autonomous on the right, with five labeled stops for each autonomy level
Agent Architecture·17 min read

Your CX agent needs an autonomy level before it goes live

Not all CX agents should be equally autonomous. Here's a practical L0-to-L4 framework for deciding how much independence to give your agent for each action type, and what eval thresholds to hit before promoting.

Read More
A team reviewing an AI agent dashboard with charts showing conversation types sorted by automation readiness
Agent Architecture·11 min read

The delegation gap: what you can hand off to your agent

Anthropic's 2026 report found teams use AI in 60% of work but fully delegate only 0-20%. The same gap hits CX teams. Here's a framework for closing it.

Read More
Glowing abstract nodes representing agent memories being reorganized and consolidated during an offline process
Knowledge & Memory·13 min read read

Agents that learn while they sleep: async memory consolidation

Post-session async consolidation is the missing layer in most agent memory stacks. Here's how Anthropic's Dreaming primitive works, why Harvey saw a 6x jump, and how to implement the same pattern without Anthropic's API.

Read More
Timeline diagram showing sequential tool calls compounding latency versus parallel calls completing together
Tools & MCP·12 min read

Parallel tool calls: the 5x speedup in your agent

Sequential tool calls compound latency for no reason. Here's how to fan out independent tool calls in parallel and cut agent response time by up to 5x in production.

Read More
Diagram showing a prompt split into a static cached prefix and a dynamic conversation suffix
Agent Architecture·13 min read

Prompt caching: the cost cut most agent teams skip

Prompt caching cuts API costs 41-80% and TTFT by up to 31%. Learn where to put the cache breakpoint, when it backfires, and how to monitor hit rates in production.

Read More
Diagram showing an AI agent retrying a failed tool call, with idempotency key deduplication preventing a duplicate write
Agent Architecture·16 min read

Design agent tools that won't double-charge on retry

Agents retry when tools fail. Without idempotency, retries create duplicate records, double charges, and corrupted state. Here's the engineering pattern that makes every mutating tool safe to retry.

Read More
Architecture diagram showing five infrastructure layers supporting a customer-facing AI agent
Agent Architecture·17 min read

Five things your CX agent needs that its framework won't provide

LLM frameworks handle conversations. They don't handle memory, tool reliability, pre-production testing, or observability. Here's what every production CX agent actually needs.

Read More
Architectural diagram of a multi-agent delegation chain with explicit trust tokens shown between each layer, rendered on a dark technical background
Security & Compliance·15 min read

When your agents call other agents, don't assume trust

Multi-agent systems create delegation chains where each agent trusts the one that called it. That assumption is how prompt injection and privilege escalation get in. Here's how to enforce scoped trust instead.

Read More
Terminal showing MCP task states transitioning from working through to completed
Tools & MCP·15 min read

MCP tasks: how async tool calls fix your agent's timeout problem

The November 2025 MCP spec introduced Tasks: a call-now, fetch-later primitive that lets agents kick off slow operations without blocking. Here's how it works and how to build with it.

Read More
Diagram showing a voice conversation on the left connecting via a context package to a chat session on the right, with a unified customer profile in the middle
Agent Architecture·14 min read

When voice becomes chat: carrying context across channels

When a customer switches from a call to chat, your AI agent loses everything it learned on the phone -- unless you package and transfer context deliberately. Here's how to build channel context handoffs that actually work.

Read More
Event-Driven Architecture Diagram Showing an Ambient AI Agent Subscribing to Multiple CX Data Streams
Agent Architecture·14 min read

How to Build Ambient AI Agents for Always-On CX

Most AI agents wait for prompts. Ambient agents watch event streams and act first. Here's how to build always-on CX intelligence that catches problems before customers notice them.

Read More
A Traffic Light Showing Amber Beside a Circuit Board Pattern, Representing a Deliberate Pause in an Automated Workflow
Agent Architecture·16 min read

How to Build Agent Interrupt and Approval Checkpoints

How to pause an AI agent before high-stakes actions, persist full state through the approval window, and resume cleanly. Covers interrupt gates, approval queues, checkpointing, and EU AI Act compliance for production CX agents.

Read More
A Control Panel With a Retry Button That Returns the Same Green Checkmark on Every Press, Showing Idempotent Operations
Best Practices·14 min read

How to Build Idempotent Tool Calls for AI Agents

Naive retry logic charges customers twice, sends duplicate emails, and fires double webhooks. Here's how to build idempotent tool calls for AI agents with idempotency keys, deduplication, and safe retries.

Read More
An AI Agent Conversation and a Human Agent Screen-Pop With Full Context, Side by Side
Voice & Conversation·15 min read

How to Build the Context Package for AI-to-Human Handoffs

AI agents escalate every day, and most send the human in blind. Here's how to build the context package that makes handoffs invisible to customers.

Read More
Structured agent specification document with capability and constraint sections next to a chat interface
Best Practices·16 min read

How to Write an Agent Spec Before You Write the Prompt

Inconsistent agent behavior isn't a prompt problem. It's a missing-spec problem. Here's the seven-section document that fixes it before code.

Read More
Side-by-side timeline showing sequential tool calls stacking up to 450ms versus parallel speculative execution finishing in 220ms
Agent Architecture·14 min read

Pre-Execute Tool Calls to Cut Agent Latency 48%

Sequential tool calls quietly kill your agent's response time. PASTE shows you can pre-execute likely tool calls during LLM thinking time and cut latency 48% without touching your model.

Read More
Diagram of an event-driven MCP server receiving webhook notifications and pushing updates to an AI agent
Tools & MCP·19 min read

MCP Webhooks: Build Event-Driven Agents That React in Real Time

MCP's request-response model breaks when agents need to react to external events. Here's how to build event-driven agents today using stateless HTTP plus webhooks, and what the June 2026 spec will make native.

Read More
Diagram showing an AI agent resuming a multi-step workflow from the last checkpoint after a crash
Agent Architecture·14 min read

Your CX Agent Crashes Mid-Task. Here's the Fix.

When your CX agent crashes mid-refund or mid-booking, the customer is stuck. Durable execution guarantees long-running agent tasks survive failures. Here's how to build it.

Read More
A graph diagram showing agent state transitions with named nodes and typed edges
Agent Architecture·14 min read

Your Agent Is Already a State Machine. Make It Explicit.

Every production AI agent is secretly a state machine. Making it explicit gives you checkpointing, testable paths, and observable state transitions -- without rewriting your agent logic.

Read More
A timeline showing a completed conversation on the left and failed downstream tasks on the right, with a gap between them
Agent Architecture·13 min read

Why CX Agents Fail Between Conversations

Your AI agent handles the call perfectly and still fails your customer. The problem isn't the conversation -- it's everything that happens after it. Here's how async task queues fix the gap.

Read More
Developer console with a grid of tool tiles fading out as a routing accuracy curve declines past tool 50
Tools & MCP·10 min read

Past 50 tools, function-calling accuracy falls off a cliff

Past 50 tools, function-calling accuracy falls off a cliff. Measure the curve on your own agent and recover accuracy with per-turn toolset scoping.

Read More
AI-generated illustration for long context vs rag cx agents -- Soul (2020) style, Terra Cotta palette
Technical Guide·17 min read

1M-Token Context or RAG? How to Pick for Your CX Agent

Gemini's 1M-token window is real but not free. A practical decision framework for choosing between long-context and RAG for customer experience agents, with cost numbers, code, and the hybrid pattern most production teams land on.

Read More
Three Routed Paths Splitting From a Single Customer Message, Each Labeled With a Different AI Model Tier
Agent Architecture·13 min read read

Your Agent Should Use Three Models, Not One

Production CX agents route tasks by difficulty, not brand loyalty. The planner/router/summarizer pattern, a concrete rubric, support-deflection cost math, and the failure modes nobody warns you about.

Read More
Two Agent Topologies Side by Side, a Hub-and-Spoke Supervisor and a Peer-to-Peer Swarm, With a Dotted Graduation Arrow Between Them
Agent Architecture·13 min read

When to Use a Supervisor, When to Let Agents Swarm

Supervisor burns 20-40% more tokens per run. Swarm hits a quality cliff past 8-10 handoffs. Start supervisor, graduate to swarm when latency bites.

Read More
Architecture diagram of an agentic data layer with event log, signal extraction, entity store, and improvement loop
Agent Architecture·14 min read

The Modern Data Stack Wasn't Built for Agents

Snowflake, dbt, and Fivetran were built for humans asking batch questions. Agents need streaming signals, per-entity memory in under 100ms, and write-back.

Read More
Watercolor illustration of an engineer at a desk reviewing wall of screens with charts and signals — schema design in the Arrival-inspired sage & olive palette
Agent Architecture·14 min read read

Stop Storing Transcripts. Start Modeling Signals.

A JSON blob of transcripts works at 1k calls and collapses at 50k. Design a Signal schema with entity/event split, confidence, provenance, and versioning.

Read More
Diagram showing MCP as a foundational protocol layer with agent configuration, memory, testing, and observability stacked above it
Tools & MCP·16 min read

MCP Is Now Open Infrastructure: Build for What's Next

MCP was donated to the Linux Foundation and the AAIF just held its first summit. What does the protocol becoming open infrastructure mean for what you build on top of it?

Read More
A massive warehouse of filing cabinets stretching into fog, with one person sitting at a clean desk with three folders under warm lamplight
Agent Architecture·14 min read read

Your MCP server is a monolith. Here's how to fix it

MCP servers dump every tool into the context window, burning tokens before your agent reasons. Four patterns to fix it: decompose, filter, gateway, facade.

Read More
Person surrounded by many tools but looking at an empty notebook
Agent Architecture·5 min read

50 Tools, Zero Memory. The Biggest Gap in AI Agents Today

AI agents can call 50 APIs but can't remember what you said yesterday. The tool layer is years ahead of the memory layer, and customers are paying the price.

Read More
Office workers are busy working on computers. - Photo by TECNIC Bioprocess Solutions on Unsplash
Agent Architecture·14 min read

The Buffering Bug That Quietly Breaks Voice Agent Latency

SSE streams fine locally, then tokens batch into 500ms bursts in production. Here's why, how to fix it, and why pipeline parallelism matters more than model speed.

Read More
Two men filming a scene outdoors with artwork. - Photo by Luke Thornton on Unsplash
Testing & Evaluation·12 min read

Zero-Shot or Zero Chance? How AI Agents Handle Calls They've Never Seen Before

When a customer calls with a request your AI agent has never encountered, what actually happens? We break down the mechanics of zero-shot handling, and how to test for it before it fails in production.

Read More
A network of connected nodes representing protocol communication between AI systems
Tools & MCP·11 min read

MCP Is Now the Industry Standard for AI Agent Integrations. Here's What That Means

MCP standardizes how AI agents connect to tools and data, replacing fragile, proprietary integrations with a universal protocol. Here's what it means for your agents.

Read More
selective focus of black and white quadrone - Photo by Kenny Eliason on Unsplash
Agent Architecture·7 min read

Conversational AI vs. Agentic AI: What's the Difference, and Why It Matters for CX Teams

Conversational AI follows scripts. Agentic AI pursues goals. Here's the exact difference, with a side-by-side comparison and a practical guide to choosing the right approach for customer experience.

Read More
Watercolor illustration of two interlocking systems — tools and behavioral instructions — powering an AI agent
Tools & MCP·14 min read read

Your agent has 30 tools and no idea when to use them

MCP tools give agents external capabilities. Skills give agents behavioral expertise. Learn the architecture of both, build them in TypeScript, and understand when to use each — and when you need both.

Read More

Learn Agentic AI

Weekly. Patterns for shipping agents that work. MCP, scorecards, regression tests, prompts, model comparisons.

500+ builders subscribed