Writing
35 posts, mostly about things that broke and what I learned taking them apart.
Start with a path
Postgres from the wire upSpeak the protocol, proxy it, then see how storage gets branched. · 5 posts
Distributed systems in GoRebuilding the pieces behind S3, Kubernetes and payment pipelines. · 5 posts
Operating systems and sandboxesFrom processes and the kernel to how sandboxed commands really run. · 4 posts
Networking and interceptionTLS interception, peer-to-peer media and terminals over WebRTC. · 3 posts
Build and deploy infrastructureA Vercel-like platform in Rust, and the build tools under it. · 4 posts
AI infrastructure and agentsHow inference is made cheap, then what agents need to be safe. · 6 posts
2026
I Tested Xmax X2.1: Real-Time AI Video at 1080p, With a Latency Reality CheckA hands-on developer review of Xmax X2.1's real-time AI video model: webcam character swapping, measured latency, frame rate, image quality, failure cases, and what the credit system really costs.Nov 29, 2026 · 13 min readHow Neon Branches a Postgres Database Without Copying ItPostgres has no branch command, yet Neon gives you a writable copy of a 1 TB database in about a second. I read Neon's pageserver code, then built a small Go version to check I understood it: page versions keyed by LSN, a branch that is just two pointers, a read path that falls through to the parent, and a garbage collector that has to keep every branch point alive. A randomized test found two bugs in my first version, and both taught me the same rule.Nov 16, 2026 · 17 min readHow I Wrote a Skills Library for Coding AgentsHow to write your first agent skill (SKILL.md), with a template, a full example and a test plan, plus the 17-skill library I built and what each skill does.Nov 2, 2026 · 26 min readCrew: AI Teammates That Share One ComputerA half-assed learning build, vibecoded end to end, so I could see how a Grok Bot-style teammate works on the inside. The architecture decisions are mine. This is how it works and why: every flow and every service, with diagrams.Nov 1, 2026 · 65 min readNavicat Premium 18: A PostgreSQL Developer's Review (Part 1)A hands-on PostgreSQL review of Navicat Premium 18 using Neon: query plans, data masking, SQL editing and schema dumps, compared with my DataGrip workflow.Oct 31, 2026 · 10 min readWhat kgate run actually doesOne command, from the config file to the kernel. What is refused before exec, why a home-directory write is still a launch in the log, and how a Linux host allow list is a filter in a network namespace.Oct 26, 2026 · 8 min readSeatbelt and bubblewrap came firstSeatbelt and bubblewrap are not ideas from a launcher. One is a macOS kernel policy from 2007. The other is a Linux namespace tool from 2016. How each one decides, what I measured on this Mac, and the commands to try them yourself.Oct 25, 2026 · 13 min readA Firewall for Messages Between AI AgentsCoding agents from different vendors can now message each other, which means a prompt injection can travel from one to the next. This is how I built a small network that checks every message before an agent reads it.Oct 23, 2026 · 10 min readQueryGuard: What a Postgres Proxy Has to LearnI built QueryGuard, a Go proxy that stops one Postgres tenant from slowing down everyone else. I thought the scheduling would be the hard part. It wasn't. The hard part was learning what Postgres really does with a message, a transaction, a cancel, a plan and a busy server. This post is eight lessons, the bugs that taught them, and the benchmark behind v1.0.Oct 5, 2026 · 68 min readGovernor: A Resource Governor for Workloads That Fan OutOne request becomes a hundred tasks, each one retries, and all of them call the same database. Governor is a Go daemon that decides how much work a tree of tasks may create. This is the whole design: the tree, atomic charging, leases with fencing tokens, fair queueing, adaptive limits, crash recovery, how it is tested, what it measures, and what it does not guarantee.Oct 3, 2026 · 24 min readMy Notes on 'How macOS Works': Inside Apple SiliconMy plain English notes on the silicon layer of macOS: what is inside an M chip, why caches matter, how cores run instructions, what unified memory changes, and how the GPU and Secure Enclave fit in.Sep 26, 2026 · 20 min readMy Notes on 'How macOS Works': Programs, Processes, and the KernelI watched the first video of Sriniously's macOS internals series and half of it went over my head. So I rewrote it for myself in plain words, with small interactive diagrams: what a process is, why an app icon is secretly a folder, what the kernel does all day, how one keystroke becomes a pixel in 8.3 ms, and where names like NS and XNU come from.Sep 20, 2026 · 16 min readKumoDB, Session 1: I Built a TCP Server That Can Read a Postgres Startup MessageFirst session of KumoDB, a PostgreSQL-compatible proxy inspired by PlanetScale Neki. Process lifecycle, Docker port collisions, Postgres 18 volume layout, graceful TCP shutdown, SSLRequest, length caps, and parsing startup parameters — plus every bug that actually happened.Sep 13, 2026 · 24 min readA Payment Isn't Finished When the Customer PaysCheckout succeeds. The receipt goes out. Then the card network asks for the money back. How do you keep financial state correct when an external system is asynchronous, authoritative, and can reverse a decision you already published?Sep 8, 2026 · 15 min readWebRTC Deep Dive: From Peer to Peer to Global ScaleA full technical breakdown of WebRTC, the protocol behind Zoom, Discord, and Google Meet. Covers why it runs on UDP, the seven protocol layers, NAT traversal with STUN and TURN, the P2P versus SFU scaling problem, and the production gotchas nobody warns you about.Jun 21, 2026 · 16 min readWhy 'AI Will Replace Coders' Is the Wrong ConversationEveryone's arguing about who's ngmi because of AI. The real question is simpler and a lot less comfortable.Jun 14, 2026 · 6 min readHow Nixpacks, buildctl, and BuildKit Actually Fit TogetherThree tools, one deploy pipeline. What Nixpacks plans, what buildctl sends, what buildkitd executes — and why you need two registry hostnames, a Unix socket, and a Dockerfile you never wrote by hand.May 24, 2026 · 14 min readPhase 2: I Rebuilt the Build Pipeline, Hardened Everything, and Broke It AgainAfter the first working preview URL, I threw away the MinIO artifact pipeline, switched to Nixpacks + BuildKit + a local registry, ran a security audit, and spent an evening fixing permission errors that only show up on real projects.May 24, 2026 · 12 min readI Built a Mini Vercel like Clone in Rust in One Day. Here's Every Mistake I Made.57 commits. One day. A working local Vercel clone with GitHub webhooks, a NATS build queue, MinIO artifact storage, and isolated Node containers serving preview URLs — the full story and every bug I fixed.May 17, 2026 · 18 min readTerminal Sharing Over WebRTC: Building Term Bridge with Cloudflare Workers and PTY MultiplexingBuilding a real-time terminal sharing tool that uses WebRTC DataChannels for peer-to-peer PTY streaming, Cloudflare Workers + Durable Objects for signaling, and a 6-digit pairing code to connect two machines in seconds. Line-by-line breakdown of signaling, bidirectional data flow, and the control protocol underneath.May 3, 2026 · 30 min readI Tried Apple's Native Container CLI So You Don't Have To (Yet)Apple shipped a native container CLI with macOS 26 Tahoe. VM-per-container isolation, sub-second starts, no Docker Desktop. I spent a weekend with it and here's what actually works, what doesn't, and whether you should care.May 2, 2026 · 12 min readBuilding a FinTech Platform with Go Microservices as a BeginnerA deep dive into building a local fintech platform with Go, Chi, Kafka, and PostgreSQL — covering the transaction saga pattern, event-driven pipelines, and the subtle bugs that only show up end-to-end.Apr 25, 2026 · 14 min readBook Notes: Principles of Building AI Agents by Sam BhagwatA complete chapter-by-chapter breakdown of Sam Bhagwat's guide to AI agents, from model selection and prompting to workflows, RAG, multi-agent systems, evals, and deployment.Apr 18, 2026 · 15 min readHow Not to Be a Team in the AI AgeWe gave AI everything. We forgot to keep talking to each other. A reflection on what happens to teams when async and AI replace conversation.Apr 16, 2026 · 7 min readHow Aegis Works: Privacy-First PII Redaction with Go WASM and Chrome ExtensionsBuilding Aegis, a browser extension that redacts sensitive data before it reaches AI chatbots. Covers Go WASM compilation, Chrome offscreen documents, content script interception, and the full architecture of a local-first privacy tool.Apr 12, 2026 · 22 min readHow a Man-in-the-Middle Proxy Actually Works: Building Network Interception from ScratchBuilding a MITM proxy in Go to understand HTTP intercession, TLS certificate spoofing, and how to inspect encrypted traffic. Line-by-line breakdown of the concepts that power debugging proxies like Fiddler and Charles.Apr 5, 2026 · 24 min readSummary of Quantization from the Ground Up by Sam RoseA practical, interactive breakdown of quantization: float formats, symmetric vs asymmetric mapping, quality loss, and throughput gains.Apr 2, 2026 · 12 min readBook Notes: Minimal Modeling by Alexey MakhotkinA complete breakdown of Alexey Makhotkin's Database Design Book — every chapter, every principle, every pattern, from logical models to physical schemas.Mar 29, 2026 · 25 min readBook Notes: Clean Architecture by Robert C. MartinA complete breakdown of Robert C. Martin's Clean Architecture — every chapter, every principle, every pattern, with TypeScript and Go code examples throughout.Mar 22, 2026 · 64 min readI Implemented Reed-Solomon Erasure Coding to Understand How S3 Actually WorksEvery explanation I found either hand-waved it as 'basically RAID' or went straight into Galois field theory. So I implemented it from scratch.Mar 21, 2026 · 11 min readI Vibecoded a Mini Kubernetes to Understand the Real OneA stripped-down Kubernetes implementation built in a weekend to preview how the real thing works — reconciliation loops, heartbeats, desired state, and rolling updates explained through code.Mar 19, 2026 · 21 min readUnderstanding Prompt Caching: The KV Cache ExplainedA deep dive into how prompt caching actually works under the hood — from tokenization and attention mechanisms to the KV matrices that make LLMs 10x faster and cheaperMar 16, 2026 · 7 min readHow I Built a Skills Registry to Sync AI Agent CapabilitiesCreating a unified CLI system to manage and synchronize AI skills across 45+ coding agentsMar 8, 2026 · 6 min readHow I Built a Persistent Memory MCP Using Only CloudflareBuilding a production-ready memory system for AI agents without the infrastructure headacheMar 2, 2026 · 10 min read