feat: integrate Claude Code @simili-bot for AI-assisted PR fixes#106
feat: integrate Claude Code @simili-bot for AI-assisted PR fixes#106
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
📝 WalkthroughWalkthroughAdds Claude Code support: workflow trigger and permission changes, new Claude Code handler that validates commenter association and emits GitHub Actions outputs, command routing to the handler, Issue model enrichment for comment author association, action outputs, and related documentation and workflow examples. Changes
Sequence DiagramsequenceDiagram
actor Author as PR Author
participant GitHub
participant Workflow as GitHub Workflow
participant Simili as Simili Bot
participant Handler as Claude Code Handler
participant GOut as GITHUB_OUTPUT
participant Claude as Claude Code Action
Author->>GitHub: Post comment "@simili-bot <query>"
GitHub->>Workflow: issue_comment / pull_request_review_comment trigger
Workflow->>Simili: Run Simili Bot step
Simili->>Handler: Detect `@simili-bot` trigger
Handler->>Handler: Validate author association (OWNER/MEMBER/COLLABORATOR)
alt Unauthorized
Handler->>GitHub: Post warning comment
Handler->>Workflow: Signal skip triage
else Authorized
Handler->>Handler: Parse query and optional model override (-opus)
Handler->>GOut: Write claude_code_triggered, claude_code_query, claude_code_model_override
Workflow->>Claude: Run Claude Code Action with OAuth token & query
Claude->>GitHub: Push commit / update PR
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Simili Triage ReportNote Quality Score: 9.8/10 (Excellent) Classification
Quality Improvements
Similar Threads
Warning Possible Duplicate (Confidence: 98%) ⏳ This pull request will be automatically closed in 72 hours if no objections are raised. If you believe this is not a duplicate, please leave a comment explaining why. Generated by Simili Bot |
- Add claude_code_handler.go: parses @simili-bot queries, validates author association (OWNER/MEMBER/COLLABORATOR), writes GitHub Actions outputs (claude_code_triggered, claude_code_query, claude_code_model_override) - Modify command_handler.go: detect @simili-bot trigger before slash-commands - Add CommentAuthorAssociation to pipeline Issue struct - Extract author_association from GitHub event JSON in process.go - Update action.yml with Claude Code outputs - Update triage.yml with conditional claude-code-action step - Update example workflow and setup docs - Add CLAUDE.md for repo context Users just add one extra step to their existing simili workflow + the CLAUDE_CODE_OAUTH_TOKEN secret. No separate workflow file needed. Closes #105 Signed-off-by: Kavirubc <hapuarachchikaviru@gmail.com>
2db4e38 to
ec77be0
Compare
…nd docs Signed-off-by: Kavirubc <hapuarachchikaviru@gmail.com>
Description
Integrates Claude Code into simili-bot so PR authors and org members can comment
@simili-bot <query>to trigger AI-assisted code changes.Type of Change
Related Issues
Closes #105
Changes Made
Go Code
internal/steps/claude_code_handler.go(new): Parses@simili-botqueries, validatesauthor_association(OWNER/MEMBER/COLLABORATOR only), detects-opusflag, writes GitHub Actions outputsinternal/steps/command_handler.go: Detects@simili-bottrigger before slash-commandsinternal/core/pipeline/pipeline.go: AddedCommentAuthorAssociationtoIssuestructcmd/simili/commands/process.go: Extractsauthor_associationfrom GitHub event JSONAction & Workflow
action.yml: Added 3 outputs (claude_code_triggered,claude_code_query,claude_code_model_override).github/workflows/triage.yml: Added conditionalclaude-code-actionstep after simili-botDocs
DOCS/examples/single-repo/workflow.yml: Updated example with Claude Code stepDOCS/single-repo-setup.md: Added Step 4 for enabling Claude CodeCLAUDE.md: Repo context file for Claude CodeHow It Works
@simili-bot fix the errorson a PRclaude-code-actionTesting
go build ./...successfullygo test ./...successfullygo vet ./...successfullyUsage
Checklist
Summary by CodeRabbit
New Features
Documentation