Repository navigation
feat(widgets): add an Agent Name widget - #842
Open
nateainsworth wants to merge 3 commits into
Open
nateainsworth wants to merge 3 commits into
nateainsworth wants to merge 3 commits into
Conversation
nateainsworth
force-pushed
the
feat/agent-name-widget
branch
from
December 1, 2026 21:30
fdf8637 to
19e7d91
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
An Agent Name widget shows the name other sessions use to message one another. Raw value mode shows just the name. The widget hides when Claude Code hasn't written a name for the session.
Why
With agent teams, sessions message each other by name, but nothing on screen shows which name belongs to which terminal. Without it, you either rename every session to something you'll remember, ask each session for its name, or your agent ends up messaging every agent just to find the one working in a certain worktree or on a certain branch.
This name is different from the other two names a session can have:
Fix login redirect.--agentis the agent definition a session was started with.Demo
Each terminal shows its own name:
You read the name off the other terminal and tell this session to message it:
How
Claude Code writes
<config>/sessions/<pid>.jsonfor each running session, withsessionId,name,bridgeSessionIdandupdatedAt. Remote Control Status already reads these files, so the scan becomes shared:Settings
This adds a new widget type,
agent-name. Older ccstatusline releases skip it and leave the settings file unchanged.Testing
bun run lintis clean andbun run buildsucceeds.bun test: 4411 pass. Eight tests fail, and the same eight fail onmainon my machine: 7 context window override tests and 1 line bars test.getAgentName: matching, missing or empty names, newest-wins, and malformed, wrong-typed or.keyfilesgetRemoteControlStatus: newest-wins, and wrong-typed fields