npx tracemetis web --open
Why we wanted a better way to read a trace
An agent hands me a mountain of work. Do I just take its word for it? If the result falls short, how do I find out what it actually did and where things went wrong? The answers are usually somewhere in the trace. I’m far too lazy to read the whole thing myself. But whenever I ask the agent to walk me through it, I get an explanation where I know every word and still have no idea what happened.

I went looking for visualisation tools. Agents had been all the rage for a year, yet I couldn’t find one I liked. Some put a flashy interface on a formatted log that was still painfully dull to read. Others drew a flowchart, but the boxes still told the story one step at a time. I had to run the agent all over again in my head. Lately I’ve seen agents from some less-than-scrupulous companies quietly go off and do their own thing on long tasks. If a job runs for days and the agent goes off track on day one, I’d like to know while there’s still time to do something about it.
Dozens of steps apart, still working on the same thing
We asked AI to help us explore the research, especially how people make sense of what they see. We kept coming back to the way people group actions by goal. Watch someone make breakfast. They crack an egg, slide it into the pan, and flip it. You call the whole thing ‘frying an egg’. Even if they take a phone call, press the button on the coffee machine, and sign for a parcel in between (the egg is fine, I promise), you know what the flip is for. And frying the egg and making coffee both fit under ‘making breakfast’. Read the same sequence as a log and it suddenly sounds odd. Why crack an egg, then answer the phone and collect a parcel?

As models have improved, we’ve seen a single agent take on quite complicated jobs. Read its actions in order and the jumps can be just as baffling. In one real session, an agent spent 128 steps refining a proposal. At steps 13–16 it tried to look something up, but the search was blocked. At steps 40–47 it retried from a different terminal. If I want to know what became of that search, those two stretches belong together. Scrolling down a timeline, I’d have to guess there was a retry later to know I should keep looking. And if the entire session were summed up as ‘completed the research’, how would I know there had been a problem?
There’s a simple experiment in cognitive psychology. Researchers show people a video of an everyday activity and ask them to press a button whenever they think one event has ended. Even without agreeing on anything beforehand, viewers tend to press at much the same moments, especially when the person on screen finishes one thing and turns to the next. Psychologists call this event segmentation. It gave us a place to start. What jobs was the agent working on? We grouped actions that served the same goal, even when dozens of steps separated them in the log. Follow the goal tree upwards and you can see what a step was for. Expand it downwards and you can see how the agent went about it.

From there, the interface began to take shape. First, show me the things the agent worked on. Let me pick one and see what it tried, what happened, and anything unusual worth a closer look. Each click should bring me a little closer to the original evidence. That’s the idea behind the TraceMetis goal tree. The task the user gave the agent sits at the top. Under it are subgoals reconstructed from what the agent actually did. Its opening plan can give you context. To tell whether it ever got started on a particular item, you need to find the corresponding actions in the log.
Some actions only make sense in hindsight
Once we started building, something proved harder than drawing the tree. When an action first happens, its purpose is often unclear. An agent opens a dependency manifest. Is it tracing calls through the login module or looking for a missing API? After it checks the version and upgrades the toolkit, we can look back at that first read and say with more confidence which branch it belongs to.

So the tree has to allow revisions. TraceMetis turns log entries into numbered actions and sends them to the model in batches. With each batch, the model can add a goal or use fresh evidence to revise an earlier assignment. The program checks that every action in the batch has a place, that the goals it references exist, and that the parent–child links don’t form a cycle. Deciding why this step belongs here is still the model’s judgement. We keep the action numbers on the evidence cards so you can look at the same record and make up your own mind.
Long logs forced another design decision. In a 476-step engineering session spanning multiple modules, we found 13 subgoals sitting at the same level after 11 batches. The model could go back and tidy them up, but it rarely did so on its own. We gave that work a step of its own. Once a branch goes quiet and has accumulated enough subgoals, the model revisits it. In that run, it grouped 12 of the 13 subgoals into four stages. Someone taking over the task can now read those four stages first and decide where to dig in.
Reviewing a task with the goal tree
What we ended up with is a workbench you can follow while the agent is still running. It reads raw logs from WorkBuddy, Claude Code, Codex, Cursor, Antigravity, and Pi. We later drew a comic, The Agent’s Night Shift, to show why that matters. In the comic, a login-module refactor changes 40 files and breaks three tests. Open the ‘Upgrade toolkit’ branch and a side effect comes to light. The toolkit moved to v3, and login sessions that used to last 24 hours now expire after one. The card links to the three steps where it happened. The developer has somewhere concrete to start looking.

Once we could draw these trees, we wanted to know what the people who had actually run the tasks made of them. We asked 14 regular agent users to bring us their own sessions, 142 in all. We reconstructed goal trees with six models, hid the model names, and asked the person who ran each session to compare the trees in pairs. For each tree, we also asked whether it made the agent’s work easier to understand than reading the raw log. Across 948 individual tree ratings, 78.7% of the answers were ‘yes’. For sessions with more than 450 actions, that figure rose to 86.8%.


Video walkthroughs
We made two videos to show how to use TraceMetis and how it works.
Demo
How it works
Project website, paper and code
Give it a try, pass it along to a colleague who might find it useful, and let us know what you think!
You can also download the full paper as a PDF.