Writing

Notes on building operational products.

Articles and notes on building operational products: CRMs, booking systems, internal tools, and the Next.js patterns that keep them reliable in production.

June 12, 2026·5 min read

Building Forge: Postgres-Orchestrated LLM Batch and Realtime Jobs Without a Queue

Forge runs LLM batch and realtime jobs across OpenAI and Anthropic with two Node daemons that share nothing but a Postgres database. No queue, no IPC, no shared worker process — the database does the coordinating. Here is how that architecture works and what I learned building it.

aillminfrastructurepostgresarchitecture

May 23, 2026·9 min read

Hexagonal DDD from Day One: Building Matcha to Be Built by Agents

Matcha is a multi-tenant WhatsApp booking platform built as a hexagonal-DDD monorepo from day one — a structure chosen so a team of agents could produce and maintain it, keep full context in one place, and depend on nothing I don't control.

architecturedddmonorepomulti-tenancyai-agents

May 22, 2026·13 min read

TDD by Construction: How the Vimbus Loop Validates Its Own Code at Scale

A validation layer wrapped around an autonomous code-generation loop: static task validation before any agent runs, split browser verification and re-grounded hexagonal rules while it runs, and a codebase audit that marks nothing done without a traced, tested path.

testingtddautomationaiarchitecture

May 21, 2026·7 min read

Evaluation-Driven Development: Shipping an AI Booking Agent You Can Trust

I was fixing Matcha's booking agent one conversation at a time, with no metric to tell me whether a change helped or quietly regressed. The fix: evaluate the whole agentic flow with openevals — golden fixtures, multi-turn simulated users, an adversarial safety floor — and promote a change only when the numbers say it's better.

aiai-agentsevaluationtestingllm

May 20, 2026·8 min read

Idempotent WhatsApp Webhooks in NestJS: Receiving Messages You Can't Process Twice

How Matcha handles inbound WhatsApp Cloud API webhooks in NestJS — a verify-token handshake, HMAC signature checks, and a unique index that makes a retried delivery a no-op.

nestjswebhooksintegrationbackend

May 19, 2026·8 min read

Ports and Adapters in NestJS: A Domain That Doesn't Know About Mongo

A deep-dive into hexagonal architecture in Matcha's NestJS backend: ports, Symbol() tokens, and one repository with two interchangeable adapters.

nestjsarchitecturehexagonalddd