Skip to content

feat: report agent state and session id to the herdr app - #129

Merged
GraemeF merged 1 commit into
mainfrom
worktree-yard-2z29
Nov 25, 2026
Merged

GraemeF merged 1 commit into
mainfrom
worktree-yard-2z29

Conversation

@GraemeF

@GraemeF GraemeF commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Under the herdr app, Claude Code reports its own state over OSC 7501 only when the terminal answers its startup probe within two seconds, so a slow start such as a resume with a large transcript never shows as an agent. The plugin's mod now writes the same states from Claude Code's own events to the session's tty, and records the session id on the terminal as the hc label claude.session. It does nothing outside an app terminal or under herdr.

The design gains a section on this, and its contract for outside consumers now names the label.

The tty write and the label were checked by hand against herdr-core 0.1.21: a report written by a process with no controlling terminal showed in hc get as reported and blocked, and hc label set the session id that hc get read back. The mod itself has not run under the app yet.

@GraemeF
GraemeF marked this pull request as ready for review November 25, 2026 14:28
@GraemeF
GraemeF merged commit ff2a4b7 into main Nov 25, 2026
2 checks passed
@GraemeF
GraemeF deleted the worktree-yard-2z29 branch November 25, 2026 14:28
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