claude-devtools
claude-devtools copied to clipboard
[BUG] Missing `/advisor` support
Describe the bug
Missing support for the new Claude Code /advisor feature.
To Reproduce Steps to reproduce the behavior:
- Enable
/advisorin Claude Code. - Generate a session in which the model decides to defer to the advisor tool.
- Open the session in claude-devtools
- See missing advisor output in the session log.
- See missing advisor usage in session summary at the top of the turn
Expected behavior
- Advisor output (and model used) should be visible in the log.
- Advisor usage summary should be part of the turn summary (e.g.
"13 tools called, 2 messages, 1 subagent, 2 advisor") -- While advisor is a "tool" it should probably be treated as a separate metric, so "13 tools called" should not include advisor calls.
Screenshots
As can be seen, the agent called the advisor yet no advisor output appears in the devtools.
Desktop (please complete the following information):
- OS: Windows
- Browser: Chrome
- Version: 0.4.10
Advisor calls and their advice text show in transcript JSON. Verified on real .jsonl files.
Two blocks per advisor call
1. The call — server_tool_use block:
| Field | Value |
|---|---|
| Block type | server_tool_use (NOT regular tool_use) |
name |
"advisor" |
input |
{} (always empty — no params) |
id |
srvtoolu_... (server-tool prefix) |
| Extra | assistant message gets top-level advisorModel field, e.g. "claude-opus-4-8" |
2. The advice — advisor_tool_result block:
| Field | Value |
|---|---|
| Block type | advisor_tool_result |
tool_use_id |
matches the srvtoolu_... from the server_tool_use |
content |
{ "type": "advisor_result", "text": "<full advice text>" } |
| Lives in | assistant-role message |
The advice text is persisted, in content.text.
Find them
# calls
grep -l '"name":"advisor"' ~/.claude/projects/*/*.jsonl
# advice results
grep -l 'advisor_tool_result' ~/.claude/projects/*/*.jsonl
Filter to real calls (not system-prompt echo) by requiring the block type:
b.get("type") == "server_tool_use" and b.get("name") == "advisor" # the call
b.get("type") == "advisor_tool_result" # the advice