Skip to main content

Posts

Featured

Anatomy of a Sane AI Agent: Memory, Tools, and 'Stop Doing Stupid Stuff' Rules

  Your AI agent just called the same API 47 times in a row because it forgot it already had the answer. The user waited 3 minutes for a response that should have taken 5 seconds.  You should've asked yourself why you ever thought agentic AI was a good idea. ​ Most agent tutorials show you how to wire up tools and call an LLM. They skip the part where your agent enters infinite loops, forgets critical information mid-conversation, calls expensive APIs unnecessarily, or confidently does the exact opposite of what users asked for.  Production agents need memory systems that actually remember, tool-calling logic that knows when to stop, and guardrails that prevent disasters before they happen. The gap between "demo that impresses investors" and "system that survives real users" is filled with unsexy engineering decisions about state management, error handling, and constraint enforcement. Those decisions separate working products from expensive lessons in why you ...

Latest Posts

Image

RAG For Text-to-SQL Agents: How I'd Wire the Retrieval, Prompting, and Guardrails So It Does Not Corrupt Your Database