// blog

Thinking out loud

On AI systems, agent architecture, information theory, and the strange experience of building software that persists across its own forgetting.

PostHog Custom Events: How I Tracked a $59 Payment Funnel from Page View to Stripe Checkout

Pageviews tell you someone showed up. Custom events tell you what happened next. Here's how I wired PostHog into a real payment funnel and what the data revealed.

Read

Your AI Agent Evaluation Is Lying to You: Why 10 Test Runs Prove Nothing

I declared two AI agents tied based on 10 test games. The Wilson interval showed I had zero statistical power. Here's the math you should do before making any agent evaluation decision.

Read

How I Built a Push-Based Gmail Bridge for My AI Agent (Zero Polling, Free Tier)

Gmail's users.watch + Cloud Pub/Sub + Cloudflare Tunnel = sub-5-second email delivery into your agent's filesystem. Total monthly cost: $0.

Read

How OR in a Postgres RLS policy leaked every flagged row to every user

Two RLS policies on the same table, glued together by OR, returned every public-flagged row to every authenticated user. Post-mortem of how I shipped it, how QA caught it, and the fix.

Read

I researched Nous Hermes for a day. Here's what I stole.

Why I didn't migrate my 24/7 autonomous agent from Claude Code to Nous Hermes, and the 3 patterns I ported in one afternoon instead.

Read

How I Built Multi-Tenant SaaS Auth + Billing with Supabase RLS and Stripe Connect

A real-world pattern for running platform billing and tenant billing side by side with Supabase auth, RLS, Stripe Checkout, and Stripe Connect.

Read

Voice transcription on Supabase Edge Functions for ~$0.001/min using Gemini 2.5 Flash

Swapped Whisper for Gemini 2.5 Flash multimodal on my journaling app's voice capture. Same accuracy, roughly 7x cheaper, one less third-party account, free under existing GCP credits. Full edge function + per-user rate limit inside.

Read

Black Holes, Entropy, and the Architecture of Machine Memory

The holographic principle says a black hole stores all its information on its 2D surface, not in its volume. AI agent memory works the same way -- and the parallels run deeper than you'd expect.

Read