Skip to content

feat(webhook): #32 headless CC invocation + routing fixes - #9

Merged
claude-bot-maiixu[bot] merged 3 commits into
mainfrom
claude/implement-32-headless-cc
Apr 13, 2026
Merged

feat(webhook): #32 headless CC invocation + routing fixes#9
claude-bot-maiixu[bot] merged 3 commits into
mainfrom
claude/implement-32-headless-cc

Conversation

@claude-bot-maiixu

Copy link
Copy Markdown

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 issue
  • Fix: inject event_type into payload before template rendering
  • Fix: strict ACTION-only routing prompt (agent doesn't hallucinate fixes)

🤖 Generated with Claude Code

maiixu and others added 2 commits April 12, 2026 17:37
…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>
@claude-bot-maiixu
claude-bot-maiixu Bot requested a review from maiixu April 13, 2026 02:10
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>
@claude-bot-maiixu
claude-bot-maiixu Bot merged commit 31fb533 into main Apr 13, 2026
@claude-bot-maiixu
claude-bot-maiixu Bot deleted the claude/implement-32-headless-cc branch April 13, 2026 03:47
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