Writing
Things I’ve written down.
Notes on AI, agentic systems and software architecture.
- Agents· May 9, 2026 · 12 min
Agent Observability: What We Actually Log in Production
In production AI, the logs matter more than the model. A worse model with great traces will beat a better model you cannot debug.
Read → - LLM engineering· April 18, 2026 · 12 min
The Real Cost of an AI Feature: A Breakdown
The API bill is the smallest line item on a production AI feature. The other seven are the ones that quietly kill the project.
Read → - LLM engineering· March 29, 2026 · 11 min
Structured Outputs Without Tears: Schemas, Retries, and Recovery
Getting JSON out of an LLM is easy at toy scale and ruinous at production scale. The fix is not a better prompt; it is a worse schema.
Read → - Agents· March 15, 2026 · 12 min
Memory for Agents: Beyond the Sliding Window
Most agent memory libraries are summarization with a vector database stapled on. Call it what it is, then build the thing that actually works.
Read → - Agents· February 27, 2026 · 13 min
MCP in Anger: Six Months of Model Context Protocol in Production
MCP is not magic glue. It is a transport spec for tools — and that is exactly why it is winning.
Read → - Agents· February 12, 2026 · 11 min
Multi-Agent Systems Are Mostly Bad Engineering
Most multi-agent demos are a single agent with extra steps — and a 4x token bill.
Read → - LLM engineering· January 30, 2026 · 10 min
Prompt Caching Is the Most Underrated Latency Win of 2026
One flag, four breakpoints, p50 down 60%. If your prompt is over 2k tokens and you're not caching, you're lighting money on fire.
Read → - Evals· January 14, 2026 · 12 min
The Eval Loop: Treating LLM Apps Like ML Systems
Teams shipping LLM features without evals are flying blind in production — every prompt change is a bet, not a measurement.
Read → - Agents· December 22, 2025 · 11 min
Designing Tools for LLMs: A Field Guide From Production Agents
Tool ergonomics, not model choice, is the dominant lever for agent quality. Every production agent I have shipped proved it the hard way.
Read → - RAG· December 8, 2025 · 13 min
Why Most RAG Pipelines Quietly Fail Past 10,000 Documents
Naive chunking and cosine similarity look brilliant at 500 docs and collapse at 50,000. Here is where the cracks form, and what actually fixes them.
Read → - Frontend· December 10, 2024 · 9 min
Building a Zero-FOUC Dark Mode with CSS Variables and Next.js
A deep dive into creating seamless multi-theme switching that works on first paint, with no flash of unstyled content, using CSS custom properties and the Next.js App Router.
Read → - Engineering· November 22, 2024 · 14 min
The Architecture Behind Real-Time Collaborative Apps
Exploring CRDTs, operational transforms, and WebRTC data channels — everything you need to build Google Docs-level collaboration from scratch.
Read → - Frontend· November 5, 2024 · 11 min
Framer Motion Masterclass: Animations That Feel Alive
Advanced patterns for spring physics, gesture interactions, layout animations, and shared-element transitions that make your UI feel magical.
Read → - Engineering· October 18, 2024 · 7 min
Type-Safe APIs Without Code Generation
How to achieve end-to-end type safety between your React frontend and Node.js backend using tRPC, Zod, and the power of TypeScript inference.
Read →