Skip to content

feature: ability to distinguish Claude Code subagent traffic within abctl #1047

Closed

Description

@esnible

Users often ask Claude Code to do work that starts subagents. Sometimes one agent can be very slow or costly.

This issue is to investigate if there is enough data in inference requests to break out traffic by subagent.

If the data exists in a form Cortex can be extended to recognize, we will use this issue to propose ways to inspect and troubleshoot Claude Code traffic when multiple subagents are involved.

Related: #1018 , giving good titles to Claude Code traffic.

The header x-claude-code-agent-id is used for POST https://ete-litellm.ai-models.vpc-int.res.ibm.com/v1/messages?beta=true
For example, x-claude-code-agent-id: a1a2e36cb5946f31c.

This correlates with ~/.claude/projects/-Users-snible-src-cortex-authbridge-cmd-authbridge-proxy/da0dbb12-552f-499d-a627-438db9f20019/subagents/agent-a1a2e36cb5946f31c.meta.json, and that file includes {"agentType":"general-purpose","description":"Find worktrees for merged PRs","toolUseId"...

Activity

  1. added
    high priority
    on Sep 17, 2026
  2. self-assigned this
    on Sep 17, 2026
  3. added
    enhancement
    on Sep 17, 2026
  4. moved this from New/ToDo to In progress in Rossoctl Issue Prioritizationon Sep 18, 2026
  5. esnible commented on Sep 22, 2026

    @esnible
    MemberAuthor

    The x-claude-code-agent-id can be related to the session ID we already have. It should be straightforward to read some of Claude's history into abctl, to show the relationship between an abctl session ID and subagents:

    └── -Users-snible-src-rossoctl
        └── 154dc445-3874-4e6b-a8fb-78f93a83e6ca  Start two subagents. Tell one that `when reviewing a PR, prefer executing over reasoning.`. Tell the other `when reviewing a PR, prefering reasoning over execution`. Tell both `...  (active 26m, last use 21h ago)
            ├── agent-a0974b0b8591dc76b  general-purpose: PR review (execution-first)  (active 26m, last use 21h ago)
            └── agent-a21728bb34d27cb12  general-purpose: PR review (reasoning-first)  (active 26m, last use 21h ago)```
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhigh priority

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions