How hello2cc handles StatusLine and Subagent context
mainTo ensure compatibility with various Claude Code versions and naming conventions, hello2cc implements robust identity and context resolution:
Subagent Identity Resolution
The system is designed to be resilient to changes in key naming (e.g., camelCase vs snake_case). It recognizes the following identifiers for subagents:
agentIdagent_idagent.id
Transcript Path Resolution
Instead of relying solely on inferring paths from subagents/agent-<id>.jsonl, the system supports direct usage of agent_transcript_path or agent_transcript_path found within transcript records.
Context Window Inference
hello2cc uses inferContextWindowSize() to approximate the context window based on model names, mimicking Claude Code's internal logic. It supports common patterns like:
[1m]opus-4-6sonnet-4-6claude-sonnet-4- It also respects the
CLAUDE_CODE_MAX_CONTEXT_TOKENSenvironment variable.