Skip to content

feat(hooks): HTTP hook endpoint + Claude Code hook enhancements#636

Open
Wirasm wants to merge 2 commits intomainfrom
feat/hook-enhancements-629-634
Open

feat(hooks): HTTP hook endpoint + Claude Code hook enhancements#636
Wirasm wants to merge 2 commits intomainfrom
feat/hook-enhancements-629-634

Conversation

@Wirasm
Copy link
Owner

@Wirasm Wirasm commented Mar 4, 2026

Summary

  • Add hyper HTTP listener to daemon on localhost:19222 for Claude Code type: "http" hooks (Stop, SubagentStop), replacing shell script pipeline with typed Rust and in-memory IdleGate
  • Rewrite claude.rs settings patching: HTTP hooks for Stop/SubagentStop, command hooks for TeammateIdle/TaskCompleted/Notification, prompt hook for Stop task verification, SessionStart hook for auto-priming
  • Add kild report command for TaskCompleted structured dropbox reporting, kild check-queue command and inject --queue flag for TeammateIdle auto-reassign
  • Add --self and --raw flags to kild prime for hook consumption
  • Add hooks_port to DaemonConfig/DaemonRuntimeConfig (default 19222)
  • Remove file-based .idle_sent idle gate from dropbox.rs

Closes #629, #630, #631, #632, #633, #634

Test plan

  • cargo fmt --check passes
  • cargo clippy --all -- -D warnings passes
  • cargo test --all passes
  • cargo build --all passes
  • Manual: start daemon, verify HTTP hook endpoint responds on localhost:19222
  • Manual: verify claude settings.json patching with new hook structure
  • Manual: test kild prime --self --raw inside a fleet session
  • Manual: test kild inject --queue and kild check-queue --self

Wirasm added 2 commits March 4, 2026 22:11
…#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
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.

Claude Code Opportunity: Replace shell hook script with HTTP hook → daemon endpoint

1 participant