Tag:AI Agents

Articles, tutorials, and guides tagged AI Agents.

11 min

Your Model Started Showing Its Work. Now You Have to Handle It.

Reasoning traces are the feature everyone turned on this month and nobody planned for. Handled wrong, they quietly triple your token bill, dump intermediate reasoning full of customer data into your logs, and break your tool loop in a way that looks like the model got dumber. Here is how to treat extended thinking as something you manage at the boundary, not something you print.

Extended Thinking
AI Agents
11 min

Your Agent Called the Same Tool Seventy Times and Billed You for It

A ReAct-style agent calls the same search tool, gets the same unhelpful result, decides another identical call will help, and does it again. Seventy times. It never crashes and never finishes, it just burns tokens going nowhere until a timeout or your bill catches it. A hard step ceiling is a backstop, not a fix. What you want is a guard that notices the agent has stopped making progress and breaks the cycle in seconds.

AI Agents
Reliability
10 min

You Installed a Skill and Your Agent Will Run Whatever Is Inside

You pulled a skill off a registry, your agent read its instructions, and it is now ready to execute whatever code shipped in the folder. Nobody signed it, nobody diffed it, and the manifest that says "read-only" is just a text file the author wrote. Treat every third-party skill as untrusted code and put a gate in front of it: pin and hash it, check what it actually does against what it claims, and run it in a box that can only reach what it declared.

AI Agents
Security
11 min

Your Agent Passes Every Eval and Still Fumbles Real Conversations

Your eval suite is green. Every case passes. Then a real user has a six-turn conversation with your agent and it forgets what they said in turn one, asks for information they already gave, and quietly breaks a policy under pressure. Single-shot evals test a single prompt. Production is a conversation. Drive your agent with a simulated user and you can test the thing users actually do.

AI Agents
Evals
12 min

A Customer Hit a Bug Your Agent Will Never Reproduce

A user sends you a screenshot of your agent doing something wrong. You have the logs, you have the trace, and you still cannot make it happen again, because the model sampled differently and a tool returned something new. You are debugging a ghost. Record every source of nondeterminism during the run and you can replay that exact failure on demand.

AI Agents
Debugging
11 min

Your Agent Makes the User Watch a Spinner for 20 Seconds

Your agent does real work before it answers: it searches, calls three tools, reasons about the results, then writes a reply. From the user's side that is twenty seconds of a spinning circle and no idea whether anything is happening. Stream the steps and the tokens as they land, and the same slow agent starts to feel fast.

AI Agents
Streaming
11 min

Your Agent Retried and Charged the Card Twice

A tool call times out, your agent retries it, and the customer gets billed twice because the first request went through before the response came back. The fix is not fewer retries. It is idempotency keys on every write tool, so a repeated call with the same key returns the first result instead of doing the work again.

AI Agents
Reliability
11 min

Your Agent Has 200 Tools and Picks the Wrong One

Connect enough MCP servers and your agent carries hundreds of tool definitions into every turn. It pays for all of them on every request and still reaches for the wrong one, because the model is choosing from a wall of near-duplicate schemas. The fix is to stop shipping the whole toolbox and retrieve the handful that matches the task instead.

AI Agents
Tools
10 min

Your Agent Kept Working After the User Left

A user closes the tab and your agent keeps going: three tool calls in flight, two subagents still reasoning, tokens still burning for an answer nobody will read. The fix is a deadline that every layer respects and a cancel that propagates down the whole tree, tearing in-flight work down cleanly instead of leaving it to finish alone.

AI Agents
Reliability
10 min

Let Your Agent Ask Before It Does the Irreversible Thing

Most of what an agent does is safe to let run. A few things are not: the refund, the production deploy, the email to a customer. The answer is not to make the agent slower everywhere. It is an approval gate that pauses the run before the risky action, persists the pending decision, and resumes exactly where it stopped once a human says yes or no.

AI Agents
Reliability
10 min

Your Agent Just Leaked One Customer's Data to Another

Input defenses stop bad instructions from getting in. They do nothing about what your agent says on the way out. One generated reply that leaks another customer's data or makes a promise you never authorized is a message you cannot unsend. A fail-closed egress layer that checks every output before it ships is how you keep that message from ever leaving.

AI Agents
Security
10 min

Your Agent Will Do Whatever the Web Page Tells It To

The moment your agent reads untrusted content and can also call tools, a hidden instruction in a web page or email can hijack it. Here is the containment strategy that keeps a landed prompt injection from doing damage.

AI Agents
Security
10 min

Your Agent Keeps Retrying a Tool Call That Will Never Work

Most agent failures in production are not bad reasoning, they are bad tool calls: wrong arguments, expired tokens, timeouts. Here is how to validate, classify, and recover from tool failures instead of retrying blindly.

AI Agents
Tool Calling
10 min

Your Agent Forgets You the Second You Close the Tab

LLMs are stateless, so every new session starts from zero. Here is how to give an agent persistent memory that recalls the right facts across sessions without bloating the context window or the token bill.

AI Agents
Agent Memory
10 min

Your Agent Is One Prompt Doing Six Jobs

A single LLM handling routing, retrieval, reasoning, and execution is easy to prototype and brittle in production. Here is when to break a monolithic agent into an orchestrator-worker architecture, and when not to.

AI Agents
Multi-Agent Systems
10 min

Your Agent Reads 150,000 Tokens Before It Sees the Request

Connect a dozen MCP servers to an agent and you pay for every tool definition on every turn, before the user has said a word. Here is why tool-calling bloats context and how the code execution pattern cuts it by orders of magnitude.

AI Agents
MCP
8 min

Context Compaction for Long-Running AI Agents

Long-running AI agents fail when context grows without bound, blowing up token costs, latency, and reliability. Here is how anchored summarization and server-side compaction keep agents cheap and coherent.

AI Agents
Context Engineering