feat: capture all 25 Claude Code hook events for complete headless coverage#45
Merged
scotthavird merged 2 commits intomainfrom Apr 11, 2026
Merged
feat: capture all 25 Claude Code hook events for complete headless coverage#45scotthavird merged 2 commits intomainfrom
scotthavird merged 2 commits intomainfrom
Conversation
Previously only 12 of 25 hooks were installed. Added the missing 13: - StopFailure, PermissionDenied - TaskCreated, TaskCompleted, TeammateIdle (agent teams) - InstructionsLoaded, ConfigChange, CwdChanged, FileChanged - PostCompact, WorktreeCreate, WorktreeRemove - Elicitation, ElicitationResult (MCP) Also updated README with complete event type table and headless mode documentation including the --bare limitation and --settings workaround. Refs #44 AI-Tool: claude-code AI-Session: d2758b26-b1c4-40fd-94cb-61f497c2110e
5 tasks
- PreCompact, PostCompact, WorktreeCreate, WorktreeRemove are session- level events with no tool context; use makeHook not makeMatcherHook - Add missing subagent_stop row to README event types table Refs #44 AI-Tool: claude-code AI-Session: d2758b26-b1c4-40fd-94cb-61f497c2110e
Contributor
Author
Conversation Transcripts
Full conversation context including problem discovery, solution design, and implementation decisions. To load in a future session: gh gist view 63490157b111484b986112e7dd21796b --raw |
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
PromptConduit was only installing 12 of Claude Code's 25 hook events. This PR adds the missing 13, giving users complete event capture across all Claude Code features — including agent teams, MCP interactions, context compaction, worktrees, and headless/CI workflows.
Closes #44
Companion PR (platform): promptconduit/platform#100 (link TBD — created in parallel)
Changes
cmd/install.go—buildClaudeCodeHooks()StopFailure,PermissionDenied,TaskCreated,TaskCompleted,TeammateIdle,InstructionsLoaded,ConfigChange,CwdChanged,FileChanged,PostCompact,WorktreeCreate,WorktreeRemove,Elicitation,ElicitationResultTRACKED_EVENTSin the platform adapter now auto-derives from the map keys (no separate list to keep in sync)README.mdclaude -pcompatibility and the--barelimitation with--settingsworkaroundCode Walkthrough
Before vs. After —
buildClaudeCodeHooks()All new hooks use the same
makeHook(5000)ormakeMatcherHook(5000)helpers — zero new infrastructure, purely additive.Headless Mode (
--bare) LimitationThis is documented in the README. The
--baremode is expected to become default for-pin a future Claude Code release, making this documentation critical.Testing
make buildpasses cleanlyAgent Review Context
cmd/install.go(the only functional change),README.md(docs)Checklist
make build)promptconduit install claude-code