Production-Ai

8 articles about production-ai - 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.

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.

The Observability Layer Your AI Agent Is Missing

Logs tell you what happened. Traces tell you why. The three layers of agent observability, and where silent failures actually live.

AI Agent Evals: The 4 Layers Most Teams Skip

Most teams evaluate AI agents by vibes. Here are the four layers of evals you actually need to ship agents with confidence.

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.