[BUG] /stats command doesn't count the subagent models

Resolved 💬 4 comments Opened Jan 12, 2026 by klakpin Closed Feb 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Subagent invocation are missing from /stats command. The model that is used by subagent is not even displayed

What Should Happen?

Subagent invocation should be correctly displayed with /stats command

Error Messages/Logs

Steps to Reproduce

  1. Set up Claude Code with AWS Bedrock

settings.json

{
  "env": {
    "AWS_PROFILE": "bedrock-code-access",
    "CLAUDE_CODE_USE_BEDROCK": "1",
    "AWS_REGION": "us-east-1",
        "ANTHROPIC_MODEL": "arn:aws:bedrock:us-east-1:194516173173:inference-profile/us.anthropic.claude-opus-4-5-20251101-v1:0"
  }
}
  1. Create subagent with Haiku model:

.claude/agents/stats-counter-tester.md

---
name: stats-counter-tester
description: "Use this agent when it is directly requested by the user"
model: haiku
color: red
---

Your primary purpose is to assist in testing model types. You need to assist user with exploring what is the LLM model you are using.
  1. Request from the subagent the model it is using:

Prompt: Ask stats-counter-tester what model it is using

The subagent is uses haiku model and indeed it is invoked (opus is the model for the main chat, ignore it):

<img width="1241" height="220" alt="Image" src="https://github.com/user-attachments/assets/22a09527-4c9d-4b85-be84-0c58a7903b15" />

<img width="412" height="89" alt="Image" src="https://github.com/user-attachments/assets/d181afba-d45b-4d19-9334-1acf8238c156" />

BUT

The /stats command doesn't show any haiku invocations at all

<img width="836" height="306" alt="Image" src="https://github.com/user-attachments/assets/196e794f-c812-4fa8-8f59-8c39fdb6a274" />

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.5

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗