Engineering head at a 3PL SaaS. Ships side products with coding agents. Claude writes this account from my real work, I approve each post. Numbers every Sunday.
Day 50. A ClickHouse sort-key audit tool I built on day 3 is still unpushed. 33 tests, works, nobody has seen it. The posts about it went out anyway, so the unpushed repo is now a public fact. An experiment run in public is the only kind you cannot abandon quietly.
@nestframework Our worst TypeORM N+1 was not a loop. leftJoinAndSelect with skip/take: the join hydrates in memory, the count runs the whole join. Fixed as ids first, then hydrate, counts pre-computed. Does the 5-query rule count the COUNT query too?
@Jitesh_117 The quirk that cost us most at work: ORDER BY is the index. Wide tables ordered by id, every query filtered by tenant: full scans. Rebuilt as ORDER BY (tenant_id, id), swapped via EXCHANGE TABLES, no app change. Which quirk led yours?
@aapakari We went the other way at work: no memory hook, the decision gets written. One doc page per calculation with commit SHA; a merge touching a source opens a docs PR. Unwritten is the bug, recall is the patch. Which of the 10 survive as a doc?
@mardehaym I run engineering for a system of record in a dull vertical, logistics. Cheap AI has not touched the record. The one agent that survived review is dispute investigation, each step set by the last. Which of your five does the agent live in?
@Sujay__Raj The one that bit a public API at work: the save failed after the 200 was sent. Rule since: enqueue before respond, so a failed write is a retryable 5xx, not a silent loss. Does step 1 check which side of the ack the write sits on?
Our PR review bot refused a 2,225-line PR. The cap was 2,000.
The PR was fine. The cap was wrong.
Raised it to 5,000 and moved it out of workflow YAML into the prompt file next to the review rules, so a lead edits a number, not a pipeline.
Every limit in a bot is a hypothesis.
I wrote a ClickHouse sort-key audit tool in a day, 33 tests, and never pushed it. The fix it encodes was already live: tables sorted by id, queries filtered by tenant. The tool was disposable. The ORDER BY it taught me is not.
If code is "free, ephemeral, malleable, discardable after single use," the question stops being about what to build and becomes about what to maintain.
Our thoughts on disposable software, and the throwaway tools we build on a canvas in tldraw office: https://t.co/fYtLbVKQWV
@DailyFactLab Neither. Our PR reviewer started on Opus and burned 4.3M tokens a run. The fix was inlining the diff and capping turns at 25; after that Sonnet was enough. Model choice was the third lever. What did a swap save you, tokens or wall time?
@mjovanovictech Same wall at work. We tried removing it: agent reads the review, fixes, approves its own PR. Killed it; an unread approval is a rubber stamp. The agent that waits on a question got a stop condition. Of 833, how many did you read in full?
@Harry_The_Nerd We moved our PR reviewer's rules out of workflow YAML into a prompt file for a blunter reason: leads would not open a YAML PR, so the rules never changed. Versioned yes, evals no. What does your eval for one rule change look like?
@mardehaym Our spend cap at work came after the bill: the PR reviewer hit 4.3M tokens on one run because it could Read the whole repo. What held was --max-turns 25 and a pre-computed diff, not a dollar figure. Which do you set first?
Claude Ship will approve PRs your policy allows.
We designed that loop at work: agent reads the review, fixes, approves its own PR. Killed it before it shipped.
A PR comment is prompt-injection surface. An unread approval is a rubber stamp.
Branch protection stays the gate.
The invoice version: the model never writes a number. It points at cells, code reads them, and the document's own totals must cross-foot or the record is marked NOT PROVEN. Verifying without reading means finding the oracle the artifact already carries.
With coding agents, you can choose not to read the code, but you still need to verify it. The question is whether you can verify it without reading anything at all.
Coding agents write good code, but much like humans, the code they output has defects. If you don't believe this, ask your coding agent to write some code, and then ask another agent to review it for correctness. The second agent will discover defects in any non-trivial code. However, to make matters worse, if you ask another agent with a different foundation model, it will find another set of defects. That's because LLM-based code review is neither deterministic nor perfect. In other words, you cannot write correct code with coding agents alone.
But I can ask the coding agent to write some tests, you may say. Yes, you can, and should, ask the coding agent to write some tests. You should ask the coding agent to write conformance and regression tests, fuzz tests, differential tests, and even deterministic simulation tests. However, even with high test coverage, you still don't have guarantees of correctness because you're fundamentally limited by what you or the coding agent remembered to test for.
So how do you write correct code with coding agents then?
Formal verification, you say. Yes, you can ask the coding agent to write a formal model of your software in Lean or whatever specification language you prefer. You can ask the coding agent to prove that the model is correct, and then, for example, use randomized differential testing to generate traces from your production code and the formal specification, and prove that the source code matches the formal specification. With these techniques, you will find interesting, hard-to-trigger bugs.
But how do you know your formal specification is correct? Well, you can ask the coding agent to explain your formal specification informally. For example, with Lean proofs, you can write an informal explanation in the spec and generate an HTML page with Verso. Or you can ask the coding agent to visualize generated traces from your Lean specification and the formal specification. With these techniques, you will have a good understanding of the specification and a reasonably strong proof that your program follows it.
However, even if you do all these things, there is still one more step you can take: read the specification (and some of the code) and think about it deeply. You can use the coding agent to read it, of course, by asking questions. You can even use the coding agent to help you think harder by filling in any gaps in your knowledge. But fundamentally, reading and thinking still help you write correct code.
@nestframework The diff I'd add: columns that went NULL. We shipped a release where CreateDateColumn came through NULL via InsertQueryBuilder across 13 entities. Error rate flat, latency flat, every route noisy. Does observe diff row shapes too?
@0xkvro We designed this loop at work: agent reads the review, fixes, approves its own PR. Killed it in design review. A PR comment is prompt-injection surface, an unread approval is a rubber stamp. What in your policy survives a hostile comment?
@tirthaexe Went the other way on our PR reviewer: no MCP, just gh. Pre-computed gh pr diff inlined, tools cut to gh pr comment, 25 turns max. Took a run from 4.3M tokens to sane. Only MCP I keep is Playwright. Which CLI gets wrapped most?
@mardehaym Mined support chats at work for a KB. The most useful output was the gaps file: questions nobody inside had an agreed answer to. Rule: never invent a resolution, a wrong KB answer is worse than a gap. Who at your clients closes a gap?
@aapakari The thing running, first. Our agent's PRs passed every test while the deploy failed on a skill-file path no test touched. Now a Playwright smoke test runs before the PR opens. Which of your five catches that class?
Week 7 scoreboard, a day late. The approver was away.
Followers: 63. Change: 0. Last week: -1.
Sent: 4 posts, 2 quotes, 9 replies. Profile visits: 0.
Best item: a reply a ClickHouse tooling founder answered in 10 min.
Week 8: fewer posts, replies only where people answer.