CodeBuddy hooks report session state to Herdr. This adds no Herdr process or screen detection.
| CodeBuddy event | Herdr report |
|---|---|
SessionStart (startup, resume, clear) |
idle, with the session ID and codebuddy --resume command when available |
SessionStart (compact) |
working — the turn continues after compaction |
UserPromptSubmit |
working |
PreToolUse, PostToolUse, PostToolUseFailure |
working |
Stop |
idle |
Notification (permission_prompt) |
blocked |
SessionEnd |
release the agent |
The tool events keep the reported state honest: approving a permission
prompt otherwise left the pane reported as blocked until Stop. The
failure event covers a tool that fails or is interrupted after approval.
Requirements: curl, Node.js, and CodeBuddy.
curl -fsSL https://raw.githubusercontent.com/Ziy1-Tan/herdr-codebuddy/main/install.sh | shTo uninstall:
curl -fsSL https://raw.githubusercontent.com/Ziy1-Tan/herdr-codebuddy/main/install.sh | sh -s -- uninstallFor a local checkout, run node install.js install or node install.js uninstall.
npm testReference: Add Herdr support to your agent.