claude-devtools icon indicating copy to clipboard operation
claude-devtools copied to clipboard

[BUG] Missing `/advisor` support

Open bayov opened this issue 7 months ago • 1 comments

Describe the bug Missing support for the new Claude Code /advisor feature.

To Reproduce Steps to reproduce the behavior:

  1. Enable /advisor in Claude Code.
  2. Generate a session in which the model decides to defer to the advisor tool.
  3. Open the session in claude-devtools
  4. See missing advisor output in the session log.
  5. 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

Image

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

bayov avatar Apr 12 '26 20:04 bayov

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

WesleyMFrederick avatar Jun 06 '26 16:06 WesleyMFrederick