Writing
Engineering stories about what breaks, what it costs, and how to make it better.
Read how real incidents happen, what the fixes actually changed, and the trade-offs behind the systems I build. RSS
Two speculative layers in a voice RAG system
Build · 2026
The fast path answers from BM25-retrieved passages without a hosted LLM. An async recovery path checks uncertain answers, drafts alternatives in parallel and synthesizes across passages when needed. · 3 min
Why choose zerd, and where it loses.
Building zerd · 2026
The case for choosing zerd over a general coding agent, argued from what the agent can't be trusted to do. Proof instead of assertion, the cost of a wrong claim against the cost of a check, model choice as a real lever, and the places where another agent is the better buy. · 9 min
zerd is a coding agent that checks its own work, then shows you the evidence.
Building zerd · 2026
What zerd is and what changed in the rewrite. The name, the Rust rewrite, one binary instead of a Python project, and the parts that moved into code: the pre-run backup swap that tells a pre-existing failure from one you caused, the signature guard, the citation check, and the model repair layer that lets a cheap model do real work. Plus the limits. · 7 min
We stopped writing prompts. Now every task starts with a form.
How we work · 2026
On tunyt, every AI task now starts with a file called prompt.yaml, filled in before the session begins. What each field is for, why the approval field matters most, and what internal testing showed about tokens, with the number I'm not publishing yet. · 4 min
426 commits in ten days: how I built a coding agent, and what I had to undo
Building melon · 2026
The build log of melon, my coding agent. The first bug that decided the architecture, the day I deleted my own guard rails, a review pipeline I cut and rebuilt, a head-to-head with Claude Code that ended 10/11 each, and what it did to my most important contract. · 11 min
melon is a coding agent that has to prove every claim it makes.
Building melon · 2026
What melon is, and what changed since the first six-hour version. What changed: "done" became a status the code decides, reviewers now get cross-examined, I removed rails that weren't paying rent, and the memory only keeps what can't be invented. Plus the list of things it still can't do. · 8 min
An agent asked me a question. I never saw it. So I built an app that hangs from the notch.
Building Bubble · 2026
Coding agents stop and ask you things, and the question is always in the tab you're not looking at. Bubble is a macOS app that drops the question out of the notch so you can answer it without finding the tab. The decisions behind it, what it refuses to do, and what it still can't. · 4 min
Harness engineering is not a joke. I have the failed runs to prove it.
Building melon · 2026
I built a coding harness in six hours and it beat my tools on small tasks. Then I tried to shrink its context, lost, tried again, and gave it a bug that would take me two hours by hand, and lost that too. What I tried, what failed, what I did next, and what I still haven't won. · 5 min
I built a coding agent in six hours. It argues with me the way I argue with myself.
Building melon · 2026
melon is a harness built around one person's way of working. One agent writes, one criticises, one judges, and most of it runs on the cheapest models that can do the job. What six hours of building taught me, what it costs in tokens, and what I haven't proven yet. · 5 min
People said my photo was AI. So I built a camera that can prove it wasn't.
Building Veris · 2026
A real photo of mine got called fake, and I had no way to prove otherwise. Veris is the camera I built because of it. It signs every photo inside its own hardware, and anyone can check it on Ethereum in under a second. How I built it, the trade-offs, and the problem no camera like it has fully solved. · 3 min
I spent a whole night looking for money that was never missing
Incident · tunyt's second event
At tunyt's second event, three people paid and never got their tickets. I fixed that by hand. Then Razorpay showed money our dashboard didn't, and I spent the night in a spreadsheet I didn't know how to use. What caused it, the call that saved the customers, and how we reconcile now. · 4 min
The obvious fix would have worked. That's why I didn't take it.
Incident · July 2026
In July 2026 one dashboard with fourteen queries saturated tunyt's Postgres. Adding an index would probably have made the graph go green. I put budgets around the whole database instead. The seven decisions, the maths behind them, and why I'd make the slower call again. · 4 min
We gave users a choice. That was the bug.
Product decision · 2026
The hardest problem on a recent tunyt event had no stack trace. Nothing crashed, every line of code did what we wrote, and people still got stuck. Four decisions about team payments, why we made each one, and the one we got wrong. · 4 min
The most dangerous change I ever shipped was a cleanup
Incident · 1 May 2026
On 1 May 2026 a one-line tidy-up moved our queue sweepers into startWorker(). CI was green. Thirty seconds after the deploy, production was down. Why the change looked right, why CI couldn't see the problem, and the question I ask before every change like it now. · 3 min
The bug that scared me most never reached a single user
Near miss · early tunyt
In tunyt's early days, during our own testing, an event dashboard showed one host another host's data. The application code was fine. The bug was a regex in an nginx cache rule, in a layer that didn't exist on my laptop. How I looked in every wrong place first, and how I think about caching now. · 3 min
I'll never read most of the code tunyt runs on. Here's how I sleep anyway.
How we work · 2026
Five people, a mobile app, a web app, a CRM, AI infrastructure and design, all at once, with coding agents writing a lot of the code. Reviewing everything was never going to scale. Writing my judgment down did. How that system works and why each part exists. · 4 min
Answering out loud in four Indian languages, in 20 to 30 ms, on 512 MB
Build · 2026
A voice assistant that answers questions in four Indic languages from real documents. The target is under 200 ms; the production extractive step has measured around 25 ms after speech-to-text when Render and Qdrant share a region. Why the fast path never calls a hosted LLM, and how async recovery works on a 512 MB host. · 3 min
Why I ran a ticketing backend on two Raspberry Pis
Load test · October 2025
Tixin, the pilot that became tunyt, ran on a Kubernetes cluster I built by hand on two Raspberry Pi 5s, and held about 16K requests a second in a load test. Why I built it that way, what CQRS costs, and why I don't quote 16K as capacity. · 3 min
Our traffic grew seven times and we got faster. I don't fully trust that.
Measured · June to August 2026
tunyt went from 69K to 485K requests a week while latency nearly halved and the error rate fell from 2.84% to 0.32%. What we measured, how to read those numbers, what we changed, and the claim I won't make. · 4 min
I trained an AI to lie to another AI
Build · OpenEnv Hackathon India 2026
PHANTOM is an environment where an AI defender contains a live breach while an adversary AI feeds it fake security logs in real time. Why the attack goes through the logs, why both sides learn at once, and why I used GRPO, a curriculum and an LLM as the judge. · 2 min
The scarcest thing we own is a database connection
How we work · 2026
On tunyt the resource that has hurt us most is database connections, more than CPU, memory or instances. Why Postgres makes them scarce, the one equation behind every rule we have, and four rules that come out of it. · 4 min
I trained a language model that writes by filling in blanks
Build · 2025
Most language models write one token at a time, from left to right. I trained a small masked diffusion model on TinyStories that starts from a page of blanks and fills them over several passes. It learned the sound of a children's story, but not how to keep one going. Here's what worked, what didn't, and what I still need to test. · 7 min
The bug where nothing was wrong
How we work · 2026
No error, no alert, no failing test. People just saw old ticket types for up to ten minutes. Why cache-aside breaks in the writer you add six months later, the race most people never notice, and how we cache on tunyt. · 3 min
I keep building worse versions of software that already exists
Builds · 2025
Redis in Go, a load balancer in Bun, a gRPC mesh, an SFU, a small OS in C. None of them will replace the original, and they're not meant to. What I rebuild, what I don't, and how it changes the way I run tunyt's stack. · 4 min