Ai-Agents

10 articles about ai-agents - lessons from building and scaling real software.

Agent Loops vs. Workflows: The Boundary That Makes AI Reliable

Most AI demos hand one agent the whole job. When the output touches reputation, money, or outbound email, use a workflow instead of an agent loop. Here's where the boundary goes, built with Mastra.

Harness Engineering: The 4 Levers Behind Almost Every Agent Failure

When an agent fails, harness engineering gives you four levers (Context, Tools, Loop, Governance) to find which one broke in under a minute.

Human-in-the-Loop Agent Approvals: A Mastra Pattern

Prompt-based approval gates fail because the model decides whether to ask. Mastra's requireApproval primitive removes that decision entirely. Here's how to implement it.

Harness Engineering: 4 Levers to Diagnose Any AI Agent

Most agent failures aren't model failures. They're harness failures. Here's the 4-lever framework I use to diagnose what broke.

Building Approval Gates AI Agents Can't Route Around

How to wire human-in-the-loop on tool calls — and why system prompt instructions like "always ask before sending" don't actually hold.

Your AI Team Doesn't Need More People — It Needs Agents

What 'supported by a fleet of agents' means in practice: which tasks automate, which don't, and where the ROI breaks down. Evidence from Stripe, Coinbase, Ramp, and Shopify.

Governing AI Agents Without Killing Them: What Actually Works in Production

Most AI agent governance advice targets boards, not builders. Three failure patterns, real TypeScript examples, and what a CTO should do Monday morning.

Shrinking a Production Prompt by 28% With Autonomous Optimization

How I used autoresearch to run 65 autonomous prompt optimization iterations on a production LLM agent, cutting it 28% while retaining 98% output quality.

Four Dimensions of Agent-Ready Codebase Design

AI agents produce better output when the codebase is ready for them. Here are the four dimensions of codebase readiness that account for most of the gap.

How AI Agents Remember Things

AI agents are stateless by default. Here's how memory systems actually work, covering the storage patterns, lifecycle triggers, and architecture behind agents that remember you.