Skip to content

Resolve identity from Claude Code session_name (statusline) - #23

Merged
jpelaez-23blocks merged 1 commit into
mainfrom
feat/statusline-session-name
Aug 18, 2026
Merged

Resolve identity from Claude Code session_name (statusline)#23
jpelaez-23blocks merged 1 commit into
mainfrom
feat/statusline-session-name

Conversation

@jpelaez-23blocks

Copy link
Copy Markdown
Contributor

Adds statusline Priority 2.5: when Claude Code's session_name (set by claude --name) maps to a known agent in .index.json, use it as the identity — validated against the index so an AI-generated title can't shadow the cwd/hint fallbacks. Pairs with AI Maestro launching agents with --name <agent>.

🤖 Generated with Claude Code

Claude Code now exposes the session name (set via `claude --name`, as AI Maestro
does when launching an agent) in the statusline JSON as session_name. Add
Priority 2.5: when session_name maps to a known agent in .index.json, use it as
the identity. Validated against the index so an AI-generated session title can't
shadow the cwd/settings-hint fallbacks. Native, reliable signal that complements
the working-directory resolution.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jpelaez-23blocks
jpelaez-23blocks merged commit 00b2dd7 into main Aug 18, 2026
1 of 2 checks passed
@jpelaez-23blocks
jpelaez-23blocks deleted the feat/statusline-session-name branch August 18, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant