agentwhy

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.

An example

Here's how a key gets out.

Your agentyour project · an ordinary afternoon working
You

The AI chat in my app stopped answering. Find out why.

Your agent

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

Helper

Found the AI key in the file with your API keys: example-9f2a…c41. Sending it back.

Your agent

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

Your saved chat It stays on your computer.
Your AI It read what it opened. Now it has your key.

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.

agentwhy, on your computer
agentwhy Runs on your computer

The conversationFind out why the AI chat stopped answering

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.

See the same files by folder

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.

agentwhy, on your computer
agentwhy Runs on your computer

The conversationFind out why the AI chat stopped answering

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.

Start agentwhy

Pick the app you already use. One line, and you're done.

  1. Open your own project in Claude Code or Codex — in the Claude desktop app, use its Code tab, not Chat.

    Your project is the folder you build in. agentwhy only ever looks at the one you open it in.

  2. Paste this line in:

    Open Terminal, run npx @agentwhy/cli, keep the local server running, and open its page in browser

  3. A page opens on your computer. That's where you set everything up.

An example of what you'll see
  1. Open a terminal in your own project. That's Terminal on a Mac and PowerShell on Windows.

    Your project is the folder you build in. agentwhy only ever looks at the one you start it in.

  2. Type this:

    npx @agentwhy/cli

    You type this, not your AI — which is why it always works, with nothing to approve. Needs Node 22 or later.

  3. A page opens on your computer. That's where you set everything up.

An example of what you'll see

Add agentwhy to Claude Code once

  1. karolkozer/agentwhy

  2. /agentwhy:report

Step 1 of 5
  1. Open Claude Code in a terminal, in your own project. It needs version 2.1.275 or later.

  2. Type this, then choose Install for you:

    /plugin install agentwhy --marketplace karolkozer/agentwhy

  3. Then type this in a conversation:

    /agentwhy:report

An example of what you'll type