How we work · 2026
Published · 4 min read
I'll never read most of the code tunyt runs on. Here's how I sleep anyway.
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.
I will never read most of the code tunyt runs on. I lead a team of five. We build a mobile app, a web app, a CRM, the AI infrastructure and the design in parallel, and coding agents write a lot of our code.
The classic way a CTO protects quality is review: read the change, catch the mistake, explain why. That breaks here. I can't read everything. Agents don't remember last month's incident. A new engineer doesn't know which shortcuts we already tried and regretted.
If I can't be in every decision, my judgment has to be. So I wrote it down.
One file per kind of work
We keep a few short documents in the repo: performance, debugging, verification, API conventions, web design and security. Each one opens with its triggers, so you know it applies before you start:
Read this BEFORE writing:
- any new list endpoint, Prisma query or raw SQL
- any new cache read or write, or background worker
- any page-level data fetching
- or when investigating slowness
A rule nobody reads at the right moment might as well not exist. Triggers turn "we have a doc somewhere" into "you're about to write a cache, read this now."
Same rules for people and agents
The files don't care which tool reads them. A person reads them, and so does whatever coding agent is working in the repo. Same rules, same words.
I didn't want a separate AI policy. Two sets of rules drift apart and you end up with two definitions of good. One file means one standard, and when a rule improves, it improves for everyone.
Point at real code
Every rule points at a place in our codebase that already does it right. Paginate like this repository. Batch like this payment function. Cache like this ticket service and call this helper at every write.
"Use cache-aside with invalidation" gets interpreted. "Copy this function and call this helper wherever you write" gets followed, by people and agents.
Evidence before claims
The verification file's top rule: don't say "done", "fixed" or "passes" without the command output in front of you. Every app has its own block of commands, and the final report says what was run and what wasn't.
It matters most with agents, because an agent will happily report a test passed when it never ran it. "I didn't run that" is an acceptable answer. "It passes" without proof isn't.
Some lines are absolute
Agents never run SQL against our database and never read environment files. When a change needs database evidence, the agent writes the query and hands it to a person with a note on what to paste back.
The downside is lopsided. An agent that's too cautious costs a few minutes. One that runs the wrong query against production or leaks a secret into a log costs more than all the minutes it ever saved.
Some traps are written down because we fell into them. A schema change without a migration file looks finished, passes everything and never reaches production. It's in the doc now, with what to do instead.
Every budget has a reason
Connection pools, worker concurrency, cache lifetimes, queue retention and rate limits live in one table. You can change a number, but the pull request has to say why.
Some of those numbers came out of incidents. The analytics worker's concurrency went from five to three after our database saturated in July 2026. Without the table, the next person to see "3" would bump it back to 5 and we'd learn the same lesson twice.
Extend the list
Open performance and audit findings live in two numbered files. If you find a problem that's already listed, reference it. If you fix one, close it.
A team of five can't afford to discover the same problem twice, and agents are very good at rediscovering things with a fresh explanation each time. The numbered list stops us paying for the same insight again.
What it costs
Writing this down took real time, and keeping it current takes more. File paths move and line numbers drift every week, so every doc carries the date it was last checked.
Judgment that lives only in my head scales to the number of pull requests I can read in a day. Written down, it reaches everyone who opens the repo, agents included. I can't read every line, but every line gets written by someone who read the rules.
By Aditya Dutt Pandey, CTO of tunyt