DEV Community

Cover image for 4 Things I Do Differently Now That AI Writes My Code
Julio Daniel Reyes
Julio Daniel Reyes

Posted on Originally published at blog.nemesiscodex.org AI-assisted

4 Things I Do Differently Now That AI Writes My Code

An AI agent writes almost all of my code now. I describe what I want, it does the work, and I review what comes back.

Once writing code got this cheap, I started building things I'd never have bothered with before.

If you already use a coding agent and want to get more out of it, here are the four things I do differently. There's also a video with the full demos below.

Watch the video on YouTube

TL;DR

Once an agent writes the code, most of my work is figuring out what I actually want and spelling it out clearly

  1. Give your agents the context they need. Keep it in a meta repo (or a "home" repo): a repo with no app code, just plain files describing how your projects fit together.
  2. Change the software you use. Forking or extending a tool you use every day is cheap now.
  3. Build the tool that doesn't exist. Niche problems are finally worth solving. One-time use? single user (you)? It doesn't matter anymore.
  4. Review your conversations, not only the code. Run a retrospective skill like /retro.

The first thing I do differently sounds the least exciting, but it is worth it:

1) Give your agents the context they need

Picture a grocery delivery app called "Basket". Its code lives in multiple repos: the API, the web app, the mobile app, a payments service, and the docs.

A ticket comes in: customers want to add a tip after their groceries arrive. That one feature touches at least 3 repos: the API stores the tip, payments charges it, and the web app needs a button. They stay separate for good reasons, since each one has its own checks, releases, and pull requests.

Now open the agent in the web repo. It only sees the web code. It doesn't know the payments service exists. So you explain the whole system again, in every new conversation.

You don't need a memory feature to fix that. A few plain files the agent reads at the start are enough, and you can open them, fix them, and use them with other agents too.

So I create a meta repo: a folder with no application code at all. Its main file is AGENTS.md, an instruction file the agents reads automatically at the start of every conversation. It lists every repository, where it lives on disk, what it owns, and how the pieces connect. For example, "payments is the only service that charges a card" and "the web app only talks to the API".

Ticket: add a tip
  -> meta repo (AGENTS.md) plans first
       -> basket-api thread
       -> basket-payments thread
       -> basket-web thread
Enter fullscreen mode Exit fullscreen mode

Every task starts there. I paste in the ticket, and the agent works out which repos it touches and tells me the plan before it changes anything. Then it starts a new conversation in each of those repos. I run my agents in T3 Code, a desktop app for coding agents where each conversation is a thread and an agent can start new threads itself. Each one works on its own copy of the code, on a new branch, so my main checkout stays untouched.

I also ask the meta repo questions that cross repos, like how a refund moves through the whole system, because the agent there already knows where to look. It keeps my preferences and my playbooks (the step-by-step procedures I reuse) too, and it gets better the more I use it.

Important: Each new thread knows nothing about the conversation in the meta repo. The first message the agent sends to it has to be self sufficient: the ticket, what this repo should change, what it should leave alone, and which other threads are working next to it.

The same idea works for almost any system with multiple pieces. I have another project, called fleet, that describes each of my computers and the apps, services, and agent skills I want on it. (The idea is from Theo) When I want to change a machine, I start the conversation there.

Make your own

Create an empty project in T3 Code, add your real repos as projects too, and paste this prompt. Swap in your own repo names:

This is a meta repository. Create an AGENTS.md file for it. This repository knows about the other Basket projects:

- basket-api
- basket-web
- basket-mobile
- basket-payments
- basket-docs

I will start threads here. AGENTS.md should know what each project does and what it is used for. When I give a requirement or start a task, use T3 Code to start new threads in the repository (or repositories) where the change applies.

Also add a CLAUDE.md containing only @AGENTS.md, fill in each repository's T3 project ID, and add work/ to .gitignore.
Enter fullscreen mode Exit fullscreen mode

The agent reads each repo to fill it in. The CLAUDE.md line is just a pointer, so Claude Code reads the same AGENTS.md without a second copy. The work/ folder is scratch space for the agents, so their temporary files never get committed. Read what the agent wrote, fix what's wrong, and commit it.

Then keep it growing. Every time you correct the agent, add that rule to the file, so it has it next time. If you use an agent app that can't start threads for you, drop the T3 Code lines from the prompt and list each repo's path on disk instead: the file still gives the agent the whole system, and you start each repo's conversation yourself.

2) Change the software you use

Say you use an open source tool every day, and it gets one thing wrong. Before, you had two choices: open an issue and wait, or live with it.

Keeping a fork meant learning someone else's codebase first, and that was time I didn't have.

Now an agent reads that codebase for me. When a tool gets in my way, I fork it and change it.

Here are two real examples:

  • A dictation app. An open source Mac app where you hold a key, talk, and it types what you said with a speech model that runs on your machine. I wanted it to use Parakeet Redux, a smaller version of NVIDIA's Parakeet model that's less than half the size to download. The app already had the code to run that kind of model, so the agent just added it to the app's model list and setup screen.
  • CLIProxyAPI. A small server that puts several AI accounts behind one API and spreads the requests across them, so each account reaches its usage limit later. Some of my accounts are for work and some are personal, and the server mixed them together. Each of my tools connects to the proxy with its own API key (one for work, one for personal), so I had the agent give each key its own list of accounts. Now, when every account a key can use hits its limit, the request fails instead of borrowing one from the other side. I also changed its dashboard to show one chart per provider with my burn rate (another idea from Theo). If you try something like this, check each provider's terms first.

Sometimes I don't even need a fork. T3 Code changes every day, so keeping a fork would be painful. Since it's built on Electron (the framework that runs a web app as a desktop app), I had the agent build a small launcher that opens Electron's debugger on my own machine for about a second, loads my extensions, and closes it again. The app's own files never change, so updates keep working. The downside is that for that one second, another program running as me could connect too. A program running as me can already read all my files, so it doesn't add much risk. That's acceptable for me, but it's not a setup I'd recommend to anyone else.

Each extension lives in its own small folder: a streaming mode that blurs my private projects and their thread titles when I share my screen, saved project groups for the sidebar, and my favorite, a silly one that plays a little animation and sound when a thread starts, finishes, or needs me (in the style of Kit Langton's Effect Institute). One even lets me play Doom while the agent works, and pauses the game when the agent needs me.

Caveat: A fork is yours to keep up to date. Keep each change small and in one place, and bring in the original project's updates often. That merge is a job you can give the agent too. And when your change would help other people, offer it back.

3) Build what doesn't exist

Some things I need are too niche for anyone else to bother building. Before, they weren't worth a weekend of code. Now I build them all the time, even if I only use them once!.

A couple of tiny ones:

  • A menu bar app that shows which of my remote machines are online, whether the VPN is on, and lets me start or stop services on them with a switch.
  • Sonar Prompt, a Chrome extension that turns issues from SonarQube (the code-scanning tool we use at work) into one prompt I can hand to my agent.

Others are bigger, like a book reader that reads books to my kid and me as a radio play, with a voice for every character.

Then there is the movie tool I mentioned at the start. We have a kid, and my wife and I wanted to watch movies at night without the TV waking anyone up. We couldn't find anything that let each of us use our own Bluetooth headphones with the same TV. So I built it: the TV stays muted, and my Mac sends the movie's audio to every pair of headphones at once. With headphones that have media buttons, either of us can pause. When my wife wants to ask about a scene, she taps her headphone and we stop right there.

I built it for our living room. It only has to work for the two of us.

Warning: A tool for one person can skip the polish, but it still needs care. If it touches your money, your passwords, or your work accounts, review it like any other code you'd ship.

4) Review your conversations, not just the code

Checking an agent's work usually means reading the code it wrote. But the conversation shows more: the commands that failed, the loops it went around, and what you had to correct.

So I use /retro, a skill from Matt Pocock. Like a team's retro after a sprint, it reads your conversation, finds where the agent stumbled, and suggests fixes to its setup. You pick which ones to apply.

You can run it on the conversation you're in, but it gets more useful when you point it at a whole week of them, because then it finds the mistakes that keep coming back.

Two real examples:

  1. A week of PR review conversations showed the agent setting up the same checkout steps from scratch every time. Now one script handles that.
  2. Across 39 conversations on one project, the agent kept writing commands for bash while my Mac's shell is zsh. That broke commands in about two of every three of them. One conversation shows that once, and you shrug. Across a week, it's clearly a pattern.

The second fix went into the agent's shell settings, not into one more instruction it could skip. A fix can be a rule in the instructions, a change to the environment, or a script. When a tool can catch the mistake, the best fix is a check that fails when the mistake comes back.

Try it:

/retro
Enter fullscreen mode Exit fullscreen mode

Or tell it which conversations to read:

/retro read my last week of conversations
Enter fullscreen mode Exit fullscreen mode

Best Practices

  1. Start with the meta repo. It's the least exciting of the four, and the one you'll use on every task.
  2. Turn corrections into permanent fixes. When you correct the agent, add a rule to AGENTS.md, write a script, or add a check so it sticks.
  3. Feed /retro a full week of conversations. A single chat looks like a one-off. A week of them shows the mistakes that keep coming back.

Conclusion

Writing the code used to eat up a whole weekend, so I skipped anything small. Now that an agent handles that part, I spend my time steering what gets built and tuning the setup around it: a meta repo for context, my own forks when a tool gets in the way and weekly /retro runs on my conversations.

Next time something bugs you, write it down. That's probably your next tool.

If you made it this far, thank you for reading. What's the first tool you'd build, now that it's just a conversation? Let me know, I'd like to see it.

Top comments (0)