Skip to content

[BUG] subagents too slow and cost more tokens #4911

Closed as duplicate
Closed as duplicate

Description

@SamPeng87

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
  • Google Vertex AI
    • Other:
  • Claude CLI version: 1.0.64
  • Operating System: macos
  • Terminal: iTerm2

Bug Description

I am unable to investigate the cause, as the agents provide no debug information to let me know. However, from the statistics, the sub-agents consume an excessive number of tokens.
For the same task, in the main task with clear clearing, it is only 2-3k tokens, at most no more than 10k. But for the sub-agents, it is 160K, 3m.

that task only writes one file, reads some files and context. The context is large, but I believe the way context is passed with the main control window must be different.

  Done (12 tool uses · 153.8k tokens · 3m 32.2s)                                                                                                                                                                                     

Activity

  1. SamPeng87 commented on Aug 1, 2025

    @SamPeng87
    Author

    I am very curious whether subagents inherit the main agent's thinking mode. For example, if I use "think hard" in a slash command, will the subagents also activate "think hard"?

  2. github-actions commented on Aug 1, 2025

    @github-actions
  3. added
    duplicateThis issue or pull request already exists
    and removed
    bugSomething isn't working
    platform:macosIssue specifically occurs on macOS
    on Aug 15, 2025
  4. github-actions commented on Aug 15, 2025

    @github-actions

    This issue has been automatically closed as a duplicate of #4527.

    If this is incorrect, please re-open this issue or create a new one.

    🤖 Generated with Claude Code

  5. github-actions commented on Aug 23, 2025

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  6. locked as resolved and limited conversation to collaborators on Aug 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions