Writing

Breaking the Fourth Wall: Visualizing the Interconnected World Behind My AI Agents

Making the invisible world of AI agents feel like a city you can explore.

Preston Kwei6 min read

When I try to explain what my AI agents can do, most people assume I’m exaggerating. My agents order my coffee, answer my phone, and keep track of the people in my life.

Take my morning coffee. I don’t send a message. My agents know where I am and what I usually do in the morning, so Cosmos, my browser agent, opens the coffee shop’s website and prepares my usual order. But before spending any money, he sends me an approval request through Slack. I approve it, and Cosmos places the order. From my side, that’s a single tap. Everything in between is invisible.

Almost everything an agent does happens behind a chat window, so all anyone sees is the result. The chat window works like a fourth wall: you see the performance, never what happens backstage. Every new capability makes them easier to use and a little harder to understand.

So I tried something different. I turned my agents into a city you can explore.

The Problem

Over the past several months, I’ve been building and living with an army of personal AI agents to handle different parts of my life. What started as a small collection of agents has grown into a network of 58 interconnected services, including agents, tools, databases, and integrations.

Hiding the steps in between is the whole point. Nobody wants to watch an agent click through a checkout page. You want to say “order my coffee” and get coffee.

But I felt the cost of that hiding myself. As the system grew, I started losing track of how everything fit together. I knew what each piece did on its own, but not how they worked together. My coffee would get ordered, and I couldn’t tell you which agent had actually placed the order. The architecture lived in code, scattered across services and repositories, and the logs only showed one step at a time.

Agents make this harder because they don’t follow a script. A normal workflow runs the same steps every time. An agent decides for itself how to handle a task, so two similar requests can take completely different paths through the same system. A single flowchart can’t show that, which is why I needed a way to see everything my agents could reach and the different paths they might take.

Those hidden steps are where things could go wrong, like an agent spending money or speaking on my behalf. They’re also where the impressive part happens, like an agent navigating a real website and knowing to stop and ask before it pays. From the outside, a capable agent and an exaggeration look exactly the same.

If I was losing track of my own agents, someone without a technical background had no chance.

Diagrams and the First Prototype

I started by generating architecture diagrams with Mermaid, a tool for creating diagrams from text. But as my system grew, the diagrams stopped working. My agents share so many tools and integrations that putting everything in one diagram turned into a mess of crossing lines. Breaking it into smaller diagrams didn’t help much. Each one could show a single sequence, but none showed how it fit into the rest of the system or how the same pieces might get used differently for another task.

A Mermaid architecture diagram of the whole agent system: about 50 boxes for agents, services and databases, connected by so many crossing lines that the connections are impossible to follow.
One diagram of the whole system. You’re not supposed to be able to follow it.

Growing up, I spent a lot of time playing games like The Sims, where entire worlds could be explored through buildings, neighborhoods, and the people moving between them. You never controlled every move. You gave a Sim something to do, then watched them walk across the house, get distracted, and figure it out on their own. Looking back, it was a game about watching autonomous agents, and it never felt confusing. I wanted my agents to feel like that. Instead of panning through a complex architecture diagram, what if you could explore the system like a city?

So I built one. Each building would represent an agent, service, or piece of infrastructure, while illuminated pathways would trace the actual tool calls and interactions between them. A timeline would let someone follow those interactions throughout a day, seeing how different parts of the system worked together on a single request.

Getting it right, though, took a few tries. The first prototype revealed a problem. Although the architecture now had a physical form, it was still overwhelming. Dozens of buildings, labels, controls, and connections competed for attention. In trying to make the entire ecosystem visible, I’d ended up recreating much of the complexity that made the original diagrams so difficult to understand. Making everything visible hadn’t made any of it understandable.

The first prototype of the agent city: an isometric map with dozens of labeled gray buildings for agents, services and databases, a sidebar of stats and rules, and rows of scheduled jobs and request buttons around the edges.
Version 1: every service, job and connection on screen at once.

The Second Version

For the next version, I stopped trying to show everything. The first prototype was essentially an inventory of every service and background process. It was accurate, but it couldn’t show what happened when I asked for something.

That meant deciding what to leave out. Background plumbing that only matters to me, like health checks and internal handoffs, faded away. Technical names became human ones. Instead of a map you had to study, the city became a backdrop for stories. Each request became a moment in my day on a single timeline, and when one plays, everything not involved fades, so you can follow one agent’s decisions from start to finish. The timeline isn’t a live feed. These are examples of things my agents actually do, rebuilt to show how a request moves through the system.

The second version of the agent city: an isometric town of illustrated buildings for agents, services and databases, with no text labels. A small figure of Preston stands at the top, and a dotted path traces one request through the city.
Version 2: fewer labels, human names, and one request at a time.

Someone doesn’t need to know what an API is to understand that an agent retrieves information from one service, passes it to another, and uses the result to get something done. When the coffee order plays, you can watch Cosmos’s approval request reach me, then see him continue once I approve it.

You can explore the full interactive visualization here.

Trust

The more my agents could do, the more it mattered that people could see how. When Cosmos orders coffee, he’s spending my money. When Lola makes calls for me, she’s speaking for me. Say she calls a restaurant to push my reservation to 7. I want to know what she’s allowed to say, and when she has to check with me first. If you can’t see how that happens, you either don’t trust it or trust it blindly.

Most of the work on this city turned out to be deciding what to show, and when. When people can watch an agent ask for permission before spending money, or follow the steps it takes to complete a task, the capability stops sounding like hype. It becomes something they can understand and imagine using themselves.

A chat interface might be enough to tell an agent what to do, but it shouldn’t be the only way to understand what happens next.