You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feature: ability to distinguish Claude Code subagent traffic within abctl #1047
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.
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"...
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)```
Activity
esnible commentedon Sep 22, 2026
The
x-claude-code-agent-idcan 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:Feat: Record Claude Code subagent ids on session events (#1459)
Feat: Harvest Claude Code subagent labels from meta.json
Feat: Section rows in agentop's table
Feat: Collapsible subagent blocks in the events pane
Docs: Subagent blocks in the events pane
Fix: Render an expanded subagent block's rows together under its header