← Writing
I Built a GTA6 Agent
Code7 min read

I Built a GTA6 Agent

I built a GTA 6 agent that ranks trending Twitch videos for missions, guns, and loot, using an agent SDLC of intent, architectural guidance, plan, and evidence.

ShareXLinkedInFacebook

GTA 6 launched the other week, and I spent the long weekend grinding. There are so many missions and ways to earn money that I kept ending up in Twitch instead, scrubbing through highlights for the best guns, the early-game loot, and the missions worth doing, which is a strange way to spend your free time when the game is sitting right there. So I built an agent to do the scrubbing for me, and that's where the real problem starts. Drop a few prompts into a coding agent and let it go, and you get something that works once, maybe. Agents are non-deterministic, so the next run is anyone's guess.

This post shows how I built the-lootup, an agent inside Codex and ChatGPT that ranks trending Twitch videos for missions, weapons, and money, and the agent SDLC behind it that lets me trust what it built. It comes down to 4 things:

  • Write the intent.
  • Add architectural guidance.
  • Make it plan before it codes.
  • Demand evidence.

Let's jump in with the architecture, then take each piece in turn.

Watch the full build on YouTube: intent, architectural guidance, plan, and evidence.

The-lootup architecture: a plugin, an MCP server, and Twitch

Whenever I build an agent, I focus on the one thing I'm trying to solve. Here, that was me stuck in Twitch when I could have been playing. I wanted the good stuff surfaced inside the chat tool I already had open.

The-lootup architecture: the plugin in Codex and ChatGPT talks over MCP to a stateless MCP server on Vercel, which calls the Twitch Helix API in real time, with Postman tests around every call. Below it, the file chain from intent.md to architectural-guidelines.md to plan.md to the evidence folder. The-lootup: a Codex and ChatGPT plugin, a stateless MCP server on Vercel, and real-time calls to the Twitch Helix API, with Postman tests wrapped around every call. The bottom row is the part that matters most: each file feeds the next. (Yes, it's dark mode. It's a GTA agent.)

There are three pieces. The plugin lives in Codex and ChatGPT. It talks over MCP to a remote MCP server running on Vercel, and that server makes real-time calls to the Twitch Helix API. The server is stateless, with no database, and the Twitch credential never leaves Vercel. Nothing stored means nothing for me to babysit.

It could have been a command line. I went with a ChatGPT plugin because that's where I already am. I actually used Claude to build most of it, just because that's my preference.

The bottom row of the diagram is the real story. intent.md feeds architectural-guidelines.md, which feeds plan.md, which feeds the evidence folder. That chain is the SDLC, and the rest of this post walks it in order.

Write the intent before you write a prompt

It's really tempting to just jump in and start dropping in prompts. Slow down. Take a minute and write down what you actually want to build.

I spent quite a bit of time on my intent.md, more than I'd like to admit for a tool whose whole job is finding loot. It covers five things:

  • The problem. Too much of my free time in Twitch looking for guns, loot, and missions.
  • The outcome. A Codex plugin that characterizes videos by weapons, money, and missions.
  • Who it's for. Me, and anyone else losing their weekend to Twitch.
  • The constraints. Twitch data only, installable as a plugin inside Codex, and a remote MCP server with its secrets stored in Vercel.
  • What success looks like. I can ask for the best mission walkthroughs, or something like it, and review the answer right inside my tool.

The constraints start to bleed into the next stage. "Twitch data only" is a product decision. "Secrets in Vercel" is already an architecture decision wearing a product hat.

Add architectural guidance

By now the agent has an intent, and whatever agentic tool you use would happily build the whole thing from it. I still hand it prescriptive guidance for a best practice app, because "happily" and "the way I'd build it" aren't the same thing.

My architectural-guidelines.md lays my own best practices over the intent:

  • Every API call goes through Postman, with complete test coverage and mock servers, using the Postman plugin.
  • Credentials are handled properly, in a Postman vault or as secrets in Vercel.
  • The agent supports a ChatGPT UI extension and stays interactive through prompts in ChatGPT.
  • No database, and it runs as a remote MCP server.

None of this is exotic. It's the list I'd give a new engineer on day one. The difference is that the engineer would remember it next week, and the agent only remembers what's in the file.

Make the agent plan before it codes

With both files in place, I finally get to prompt. The first one is short:

Read the attached intent.md and produce a requirements design spec for the application.

Before any code, I want a plan I can read against the intent and the guidelines. These models are non-deterministic, and a written plan stops the agent reinventing the order of operations every time it runs.

The plan came back contract first and mock first, which is how I always work with the Postman plugin. The contract comes from an OpenAPI spec for the Twitch APIs, and the mocks let me test as I go. Secrets go in first, then contracts and mocks, and only then the Twitch client, the MCP server, and the widget. By the end of phase one, I know the back end runs against an API I trust, before there's a single pixel of UI.

For the UI, I dropped in a screenshot from Rockstar's website for the general vibe and let it take care of the rest. That was the entire design brief. I'm not proud of it, but it worked.

Then I told it to go ahead and build the entire thing.

Demand evidence

I don't take "done" for an answer from a non-deterministic agent, so I make it prove the thing works.

I let it run for a while, added the client secrets it needed in Vercel, and went to see what it had made. Because it built through the Postman plugin, every Twitch endpoint has full test coverage, and the sensitive values sit in a vault instead of in my code.

The proof is a report. I always ask for one, and because it's in the plan, it runs as part of the build: type checking, linting, then the Postman collections against the local stack. On my run it hit an error, fixed it, and ran again until everything went green. That error is exactly why I ask for the report. Without it, I'd have found out the fun way, mid-session, with a mission half done.

From there I deployed to Vercel and installed it as a Codex plugin, and because ChatGPT and Codex are basically the same thing here, it showed up in both. I opened ChatGPT, found the-lootup, and asked for the best early-game missions I should complete.

It went off, looked at what was trending on Twitch, and came back with ranked walkthroughs I could follow, and I went back to gaming.

What I learned

Green doesn't mean the agent will build it the same way every single time. These models are non-deterministic, and no file chain changes that. You get evidence for the run in front of you, and a process that lands in the same place far more often than prompting and hoping. That's a trade I'll take.

  1. Write the intent before you write a prompt, success criteria included.
  2. Add architectural guidance: tell the agent how you'd build it, because it only knows what's in the file.
  3. Make it plan before it codes, and read the plan against the intent before you say go.
  4. Demand evidence: tests on every call and a report that runs inside the build.

Subscribe at quintonwall.com if you want the next one.

ShareXLinkedInFacebook

Subscribe

New posts on AI, developer relations, photography, and the odd long walk, straight to your inbox. No spam.

More on Code

All Code →