Skip to content

Tracking token usage in sub-tasks #313

@TianyuDu

Description

@TianyuDu

I have prompted the Claude code to launch sub-tasks and let them run in parallel, which could be helpful when, for example, we use the Claude code to translate an Android package to iOS.

Here is an example prompt:

The TODOs looks good, divide them into subtasks and run them in parallel.

The Claude code will launch sub-tasks like the following, and report the amount of tokens used by each sub-task for me (>100k tokens in total):

Image

But it seems that the ccusage did not capture tokens used by these sub-tasks (only 69k reported for the block):

Image

It would be awesome if these tokens were burned by sub-tasks as well, thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions