feat(webhook): #32 headless CC invocation + routing fixes - #9
Merged
Conversation
…h#32) Parses ACTION directives from agent responses and executes PR/issue actions via Claude Code headless sessions with bot identity.
…ting prompt
- event_type from X-GitHub-Event header is now injected into payload
before template rendering, so {event_type} substitutes correctly
- Routing prompt rewritten to output ONLY an ACTION line, preventing
the agent from hallucinating code fixes it cannot actually make
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
gh pr merge returns "not mergeable" or "cannot be cleanly created" not "conflict" — extend the detection string list. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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.
Part of maiixu/personal-intelligence#32
Changes
_deliver_github_action(): parse ACTION from agent response, dispatch to merge/address/reply handlers_fetch_pr_context(): fetch PR diff, review comments, linked issue_spawn_cc(): headless Claude Code invocation with bot identity_action_merge_pr(): merge with conflict detection_action_address_comments(): CC addresses comments, optional merge after_action_reply_issue(): CC replies to issueevent_typeinto payload before template rendering🤖 Generated with Claude Code