Brew, sip, code, repeat

An AI Agent Is Just a Loop

Claude asked for fourteen tool calls. My code ran every one of them. That gap between asking and doing is the key to understanding agents. An agent is a loop. The model asks for tools and your code decides whether to run them and when to give up. To see that loop up close, I built a console app that sorts messages from a made-up dead-letter queue into categories based on their content. The app uses Anthropic’s official C# SDK and no agent framework. The full code is on GitHub. There is also a Java version built on Anthropic’s Java SDK. This post walks through the C# version.

Pasted Text Injection: The Words in Your Prompt Aren't Always Yours

Pasting a build log into an AI assistant feels like the safe way to use one. You provide the text and the AI isn’t pulling in content from sources you didn’t choose. Unfortunately, the Claude Opus 5.5 system card reports that early versions of the model were more likely than older models to follow instructions hidden in exactly that kind of text. In a coding test, one early version acted on the planted instructions in 52% of attempts.

The Model You Pick Isn't Always the Model Answering

When I pick a model for an AI agent, I usually pick the newest one. It’s the most capable, it’s often the same price as the model it replaces or cheaper, and according to Anthropic’s own testing it’s among the hardest to fool. But one of Anthropic’s own prompt-injection tests shows that picking the right model isn’t the whole story. The newest Opus model was never fooled on the requests it answered itself, yet more than half of the attack attempts still succeeded. The newest model wasn’t the problem. The handoff to an older one was.

Minimal vs. Controller-Based APIs

When it comes to building APIs in ASP.NET Core, developers often find themselves weighing the benefits of Minimal APIs against the more traditional Controller-based APIs. Both approaches offer unique advantages and challenges, making it vital to choose the right one for your project. This guide provides a concise comparison of each method, highlighting their pros and cons to help you make an informed architectural decision. 🚀 Minimal APIs Introduced in .NET 6, Minimal APIs bring a fresh perspective to building HTTP APIs by reducing boilerplate code and enabling lightweight applications, particularly suited for microservices.