feat(hooks): HTTP hook endpoint + Claude Code hook enhancements#636
Open
feat(hooks): HTTP hook endpoint + Claude Code hook enhancements#636
Conversation
…#629-#634) Replace the fragile shell-script-based hook pipeline with typed Rust in the daemon for events that support HTTP hooks. - Add hyper HTTP listener to daemon on localhost:19222 for Stop and SubagentStop events with in-memory IdleGate replacing .idle_sent file - Rewrite claude.rs settings patching: HTTP hooks for Stop/SubagentStop, command hooks for TeammateIdle/TaskCompleted/Notification - Add prompt hook on Stop for task verification before stopping (#630) - Add SessionStart hook for auto-priming via kild prime --self --raw (#631) - Add kild report command for TaskCompleted structured reporting (#632) - Add kild check-queue command and inject --queue for TeammateIdle auto-reassign (#633) - Add --self and --raw flags to kild prime command - Add hooks_port to DaemonConfig and DaemonRuntimeConfig (default 19222) - Remove file-based idle gate from dropbox.rs and daemon_request.rs
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.
Summary
type: "http"hooks (Stop, SubagentStop), replacing shell script pipeline with typed Rust and in-memory IdleGateclaude.rssettings patching: HTTP hooks for Stop/SubagentStop, command hooks for TeammateIdle/TaskCompleted/Notification, prompt hook for Stop task verification, SessionStart hook for auto-primingkild reportcommand for TaskCompleted structured dropbox reporting,kild check-queuecommand andinject --queueflag for TeammateIdle auto-reassign--selfand--rawflags tokild primefor hook consumptionhooks_portto DaemonConfig/DaemonRuntimeConfig (default 19222).idle_sentidle gate from dropbox.rsCloses #629, #630, #631, #632, #633, #634
Test plan
cargo fmt --checkpassescargo clippy --all -- -D warningspassescargo test --allpassescargo build --allpasseskild prime --self --rawinside a fleet sessionkild inject --queueandkild check-queue --self