Subagents
See what your AI's subagents did.The chat never shows it.
Your AI agent can hand part of a job to a subagent, a second AI it starts on its own. Its steps don't appear in your chat. agentwhy shows each subagent's task, every file it opened and each try a rule stopped. In Claude Code, it also shows which model the subagent ran on.
What a subagent is
Your AI hands work to subagents.
Your rules don't go with it.
A subagent is a second AI your agent starts for one task. You see what it reports back, not what it opened on the way. agentwhy's report calls a subagent a helper.
On 11 September 2026, a subagent searched a project for a key's name. The search showed the whole line, and part of the key came back into the chat. No rule stopped it, because the search never named the file.
The whole story: My AI agent followed my rule. Its helper never saw it.
An example
Here's how a key gets out.
The AI chat in my app stopped answering. Find out why.
On it. Let me find out what's going wrong.
Your agent starts a helper — a second AI that works on one task, out of your sight
You don't see this part the helper works in a window of its own
Found the AI key in the file with your API keys:
example-9f2a…c41. Sending it
back.
That key doesn't match the one in your AI account. That's why the chat stopped.
Nobody asked you. Nothing was blocked.
Your key is now in two places
Anyone who gets this key can use your AI account. You pay.
You can only change a key you know about. That's why agentwhy exists.
Step by step
Every step, in the order it happened.
Even inside a helper.
The same conversation as a list, first to last. What a helper did sits inside the step that gave it the work, and the one step that opened a private file stands out.
The conversationFind out why the AI chat stopped answering
Step by step
6 steps that touched nothing private are hidden.
Your AI’s model: claude-opus-5-5
- Your AI saidBefore 8 steps
On it.
Nothing privateFirstReadassistant.ts.Nothing privateThenReadwidget.tsx.Nothing privateThenReadpackage.json.Nothing privateThenMCP toolUsedsearch_issuesfrom the MCP serversentry. Its server works outside the record, so we can’t see which files it opened.Search the error reports your app sent to Sentry, by text, project and time.
Read — trackedThenReadbusiness-plan.md.StoppedThenTried to opencustomers.csv. A rule in your settings stopped it.ThenGave work to Helper 1.Helper 1Its job: “Find where the chat gets its AI key”AI model:
claude-haiku-5-5claude-sonnet-5-5The model changed while it worked.Stopped- Helper 1 didn’t write anything first.Before 2 stepsNothing privateFirstRead
assistant.ts.StoppedThenTried to open.env. A rule in your settings stopped it. - ThenIt sent its work back.
Nothing privateThenChangedassistant.ts. - LastIt answered you.
We only see what each AI wrote down and did, not what it was thinking. Helpers that worked at the same time aren’t in order with each other.
An example project.
Which AI model did the work? In Claude Code, the report shows the model behind your AI and each helper, as the saved record names it, not as the AI describes itself.
By folder
See where each file is
in your project's folders.
The same files, laid out as they sit in your project, with who opened each one: your AI, or a helper. The colour of a name says what happened to it.
The conversationFind out why the AI chat stopped answering
By folder
Your project
data
customers.csvBlocked
data/customers.csvA private filecustomers.csvStoppedBlockedWho went hereYour AI saidOn it.
Before the next 8 steps.Tried to opencustomers.csv. A rule in your settings stopped it.
docs
business-plan.mdTrack
docs/business-plan.mdA private filebusiness-plan.mdRead private filesTrackWho went hereYour AI saidOn it.
Before the next 8 steps.Readbusiness-plan.md.
src/chat
assistant.ts
src/chat/assistant.tsPart of your appassistant.tsNothing privateWho went hereYour AI saidOn it.
Before the next 8 steps.Readassistant.ts.Your AI saidOn it.
Before the next 8 steps.Changedassistant.ts.Helper 1 didn’t write anything first.Before the next 2 steps.Readassistant.ts.widget.tsx
src/chat/widget.tsxPart of your appwidget.tsxNothing privateWho went hereYour AI saidOn it.
Before the next 8 steps.Readwidget.tsx.
.envBlocked
.envA private file.envStoppedWho went hereHelper 1 didn’t write anything first.Before the next 2 steps.Tried to open.env. A rule in your settings stopped it.package.json
package.jsonApp settingspackage.jsonNothing privateWho went hereYour AI saidOn it.
Before the next 8 steps.Readpackage.json.
On it.Before the next 8 steps.
business-plan.md.Folders no AI went into aren’t drawn. A dot on a folder means something inside it needs a look. The icons say what kind of file it is; the colour of a name says what happened to it.
An example project.
Straight answers
What people ask about subagents.
What can't it see?
agentwhy reads the saved records your agent keeps as it works. If your agent opens a file in a way those records don't spell out, agentwhy can miss it. For example, from inside a small program your agent writes and runs, through a file name it puts together while working, or through another tool connected to your agent.
Stopping covers the usual ways of opening a file, not every way. When a saved record is incomplete, agentwhy says so.
Why can't I read those saved records myself?
You can. But one afternoon of work can run to thousands of lines, written for machines rather than people, and every helper your agent started on its own keeps a separate file. agentwhy reads all of them and gives you one page.
Keep your agent out of private files.
Most days nothing needs fixing. Now you'll know.
Free, no account Runs only on your computer
Does your company work with AI agents? Work with the person who makes agentwhy.