Skip to content

Claude Code hooks (2/4): build check on Stop#7241

Open
edmundmiller wants to merge 1 commit into
hooks-1-editorconfigfrom
hooks-2-build-check
Open

Claude Code hooks (2/4): build check on Stop#7241
edmundmiller wants to merge 1 commit into
hooks-1-editorconfigfrom
hooks-2-build-check

Conversation

@edmundmiller

Copy link
Copy Markdown
Member

Part 2 of the Claude Code engine-development hooks stack. Targets hooks-1-editorconfig
(PR #7240) — review/merge that one first.

This PR — Build check (Stop + SubagentStop)

  • hooks/check-build.sh: when Claude or a subagent finishes responding, run make compile
    to catch syntax/compilation errors early.
  • On failure: blocks and feeds a parsed error summary back to Claude (falling back to the
    tail of the output when no error lines match) so it fixes the breakage before yielding.
  • Bash; matches on hook_event_name Stop/SubagentStop; parses the payload with jq.

Stack

  1. EditorConfig formatting — Claude Code hooks (1/4): EditorConfig formatting #7240
  2. (this PR) Build check
  3. Test runner
  4. IntelliJ IDEA formatter

🤖 Generated with Claude Code

When Claude or a subagent finishes, run `make compile` to catch
syntax/compilation errors early; on failure, block and feed a parsed
error summary back to Claude (falling back to the tail of the output
when no error lines match). Synchronous/blocking by design so Claude
reacts to breakage before yielding. Written in Bash; matches on
hook_event_name Stop/SubagentStop and parses the payload with jq.

Stacked on hooks-1-editorconfig.

Signed-off-by: Edmund Miller <edmund.miller@seqera.io>
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