Writing
systems, databases, and what breaks in production
Articles
19 articles
I’m learning as I go, so the newest posts are the best place to start. The faded ones further down are earlier posts, kept for the record.
November 20268 articles
- How to tell whether your coding agents are saving you work
Count every attempt per accepted change, catch copies by their code and test your reviewer on changes you know are correct. Five small studies on my own agents.
- How to stop AI coding agents duplicating code that already exists
My AI agents built duplicate APIs that review missed. A name check raised mostly false alarms, so I check the code instead, with an API index and a done gate.
- Make your AI coding agent hooks fire once, or they become noise
A hook that reminds your AI coding agents on every edit becomes noise. Mine fired 689 times in a day. Fire once per file, add a merge hook, point at the guide.
- Your AI agents keep patching the same files. Git history shows which ones
Count fix commits per file in git history to find where your AI coding agents keep patching, then have a hook push them to redesign instead.
- How to stop your AI lead agent leaving finished work waiting for review
Finished tasks waited a median 42 minutes for my AI lead agent’s review as it ran its own work. How to measure that wait and make your lead clear reviews first.
- How to cut rework and cost per task with AI coding agents
In one week, rounds of fixes fell from 112 to 65 and my lead agent’s cost per task from $3.92 to $2.54. Three things to try, and how far to trust them.
- How to cut AI coding agent costs: 3 to 5× on real builds, repriced, not rerun
Neo cut Codex tokens 33× on a benchmark. Over nine days of real builds my harness cost a third to a fifth of ordinary Claude Code rates, repriced, not rerun.
- Spotify’s 90% Claude Code saving: how to check what it would save you
· earlier post
Spotify’s shunt plugin cuts big file reads by 90%. In four weeks of my Claude Code transcripts those reads were 0.9% of spend. A script to check yours first.
October 20268 articles
- How to make git the system of record for your AI coding agents
· earlier post
Coding agents forget everything between tasks. Five changes put their rules, results and lessons in git: commit what matters, read rules from main, and read done from git. Plus what git misses.
- How much does your coding agent’s compaction cost, and would a fresh start be cheaper?
· earlier post
Compaction restarted my coding agent at 145,000 tokens, and only 5,000 was its summary. How to measure yours, replay a fresh start, and test it on one agent first.
- OpenCode vs Claude Code on DeepSeek Flash: how to compare harnesses fairly
· earlier post
Five checks for comparing agent harnesses on one model, from moving a DeepSeek Flash agent from OpenCode to Claude Code: cheaper on both projects, no faster, and the baseline you pick changes the story.
- Context engineering for coding agents: five changes that keep sessions small
· earlier post
Long turns, not token prices, drove my agent bill. Five changes that keep coding agents’ context small, from a fresh session per task to a turn cap, mapped to Drew Breunig’s tactics.
- How to brief AI coding agents so review stops catching the same mistakes
· earlier post
Give each AI coding agent a short brief of the rules for its files, send the reviewer the same one, and add lessons only when a review finding repeats.
- How to stop AI coding agents filling your disk, crashing your Mac and looping
· earlier post
My AI coding agents crashed a Mac, filled 450 GB and looped 1,211 times. Five fixes for disk, files and tokens, and one rule: whoever ends the work cleans up.
- A mattress for the six-seat DENZA B8: what to check before you pay
Five checks before you pay for a custom mattress in a six-seat DENZA B8, from a search that ended with an A$4,246 estimate I put on hold.
- PostgreSQL read tables for filtering: layout, joins and index cost (Part 2)
The second part of Filtering at scale: how to split, join and index PostgreSQL read tables for filtering, with a join fix, an index bill and a replica check from Audience Republic.
September 20262 articles
- Keeping PostgreSQL read models current without full refreshes (Part 1)
The first part of Filtering at scale: how Audience Republic kept PostgreSQL read tables current without full refreshes, and the batching, skipped-write and index changes to make in your own design.
- Make JAR deploys over SSH safe with an AI operator, without replatforming
· earlier post
Audience Republic deployed Java JARs to 17 hosts over SSH. Five changes put an AI operator over that deploy, with gates, a one-host canary and per-host checks, and no rewrite.
August 20261 article
- Stop parallel AI agents breaking each other's Docker test databases
· earlier post
Parallel AI coding agents broke my test suite with random database errors. Five changes isolate the container, port, data and boot cost per git worktree, and a test keeps them isolated.