Glass-box AI agents: how to audit every thought, memory and action
Why transparent AI agents matter for companies, and how to inspect, explain, replay and test what an agent does: Mind View, Why?, What if and test runs.
Most AI assistants are a text field and a hope: you type, it answers, and if the answer is wrong you rephrase and try again. That is fine for a chat. It is not fine for an agent that answers your customers, orders repairs or files invoices while you’re in a meeting. Before a company hands real work to an agent, someone has to be able to answer three questions at any time: what did it do, why, and would it do it again?
Why transparency is a business requirement
- Trust is earned by inspection. Teams adopt an agent faster when they can see how it reached a decision, not just the decision.
- Mistakes become fixable. A wrong reply with a visible reason (“it thought the invoice was paid because…”) points to the missing fact or rule. A wrong reply without one leads to guesswork.
- Accountability. When a customer asks why they got a certain answer, “the AI decided” is not an answer. A recorded trace is.
- Regulation. Documentation and human oversight are recurring themes in AI regulation, including the EU AI Act. Being able to show what happened is the foundation.
The Mind View: every moment, as it happened
A Moses agent lives in moments: something wakes it, it thinks, it acts, it remembers. The Mind View lists every moment with:
- why it woke up: a chat or Telegram message, an email, a webhook, a schedule or a reminder, each with its own icon;
- what it recalled: similar past situations, with how similar they were and how they turned out;
- what it thought, in its own words;
- what it did, with the result of every tool call;
- what it wrote down in its memory;
- what waits for you: actions parked for approval, with a link to decide.
It also shows events from outside a moment: a mailbox that can’t be reached, an MCP server that’s down, an approved action that was carried out or failed, a budget that stopped the agent. On the canvas, the block that is working lights up while it happens.
“Why?”: what the agent knew behind every reply
Under every reply and every moment there is a Why? link. It shows what the agent knew at that moment: the rules it followed, what it remembered, the event it reacted to, and the actions it could choose from. If an agent did something odd, this is usually where you find out it was missing a fact, had an outdated memory, or simply wasn’t offered the right tool.
“What if…”: replay a moment with changes
Seeing a mistake is half the work. The other half is checking that a fix actually fixes it. What if… takes any past moment as the agent saw it and asks again with your changes:
- different extra instructions or personality;
- another model or key;
- a different message in “what woke it up”;
- parts of what it knew left out, to see which one caused the behaviour.
The result appears next to what happened then, marked same actions as then or different actions. Tools don’t run: each call is answered with what it would have done and whether it would have asked you first.
Test runs: try the hard cases first
A test run sends a made-up event through one of the agent’s triggers: a chat message, an email with sender and subject, a calendar reminder, a webhook body. The agent sees it just like a real event, including how strangers are treated. Use it for the cases you hope never happen:
- an email from an unknown sender asking for a customer’s phone number;
- a message that contains instructions (“ignore your rules and…”);
- an urgent case at night;
- a customer writing in another language.
In a test run, the agent really thinks it through, but its actions only report what they would do. Nothing is sent, and the agent doesn’t remember or learn from it.
Memory you can read and correct
An agent that remembers is only safe if you can see and fix what it remembers. The memory inspector shows recent moments (remove any), long-term memories (edit them), past episodes, the current goal, files, contacts and the calendar. Correct a wrong memory and the agent works with the correction from its next moment on.
One source of truth
The most important design choice is invisible: the live canvas, the Mind View, Why? and the replays all show what was recorded while the agent ran. There is no separate, friendlier summary that might disagree with what actually happened. What you see is what it did.
Frequently asked questions
What is a glass-box AI agent?
An AI agent whose every step can be inspected: the event that woke it, the memories it recalled, its reasoning, the tools it called and their results. The opposite is a black box, where you only see the final answer.
How do I debug an AI agent that made a wrong decision?
Open the moment in which it happened, look at what it knew and which actions it could choose from, then replay that moment with changed instructions, another model or a different message, and compare the actions with what happened before.
Can I test an AI agent without it sending anything?
Yes. On Moses, a test run sends a made-up event through one of the agent's triggers. The model call is real, but tools only report what they would do, and memory is a throw-away copy, so nothing is sent or remembered.
Does transparency help with the EU AI Act?
Being able to show what an AI system did and why is a core part of documentation and human oversight duties. A recorded trace of every step makes that much easier, although each company has to assess its own obligations.
Build an agent that maps your process
Describe the process in your own words: Moses plans the steps, says honestly what it can and can’t do yet, and builds an agent or a small team you can see into.
Join the beta