The AI Can Run the Tests Now, and That Changes the Job
Agents in the terminal read the repo, run the type checker, and fix their own mistakes. MCP lets them read the tools I use. What I hand them, the guardrails I set, and what I still never delegate.
Last year I wrote that AI had stopped being autocomplete for me: I could hand over a component and get back a draft. That draft still came through a chat window. I copied it in, ran the checks myself, pasted the errors back.
This spring the loop closed. Coding agents like Claude Code, which became generally available in May, live in the terminal. They read the files they need, run the type checker and the tests, see what broke, and fix it before handing anything back. The draft I review now has already been through the checks I'd have run.
What changed in practice
The biggest difference isn't speed, it's the kind of mistakes left for me. Wrong imports, type errors, a test that no longer compiles: the agent catches those itself. What reaches me is the stuff that needs judgment. Is this the right behavior? Is this the right place for it?
Write the rules down once
Agents read a project instructions file at the start of every session (CLAUDE.md for Claude Code). Ours says how the project is laid out and what not to do:
- Features live in src/features/*. Route files only import a feature's page.
- All HTTP goes through src/lib/api-client.ts via a feature's *.service.ts.
- Run `pnpm typecheck` before saying you're done.
- Never edit generated files in src/api/generated.It's the onboarding doc I'd give a new teammate, and writing it made our conventions clearer for the humans too.
MCP: read access to the rest of my tools
The other half is the Model Context Protocol, an open standard Anthropic published last November that most AI tools could speak by spring. An MCP server gives the agent a set of tools: query the API spec, read an issue, look at the design file.
The one I use most exposes our API documentation. Instead of me pasting response shapes into the prompt, the agent looks up the real endpoint and writes types against what the backend actually returns. A whole class of "the field is called created_at, not createdAt" bugs disappeared.
The guardrails
An agent that can run commands can also run the wrong ones. My defaults:
- Read-only by default. MCP servers that touch production data get read access only. Writing to an issue tracker or a database is something I approve case by case.
- Commands need approval until I trust them. Running tests and the type checker is pre-approved. Anything that deletes, pushes, or deploys asks first.
- It works on a branch. Never on main, never with my production credentials in its environment.
- Small tasks. "Add a status filter to the orders table" goes well. "Refactor the dashboard" produces a diff nobody can review.
What I still never hand over
The same list as last year, with one addition. I decide the data model, anything touching money or auth, and what to build. And now: I read every diff before it's committed, even when all the checks pass. Green checks mean the code does what the tests say. They don't mean the tests asked the right question.
The job moved. Less typing, more writing briefs and reviewing. It turns out those were always the parts that mattered.
Keep reading
All posts2026
7 min
Code Is Cheap Now. Guardrails Are the Bare Minimum
An agent writes a feature in minutes. Whether it still works next week depends on what checks it the moment it changes. What I treat as non-negotiable now, on the backend, on the web, and on mobile.
testingaiworkflow5 min
Why T3 Code Replaced the Terminal as My Daily Agent Setup
Same agents, same subscriptions, one interface. Threads with their own worktrees, review before commit, approvals from my phone, and a second model one click away. What changed in my day, and what it still doesn't solve.
aiworkflowtooling