claude-code-el-coderabbit
CodeRabbit event source for the el plugin. Poll for new code reviews, comments, and thread replies on your pull requests as background event
Open source Open in the app JSON README (API)
About
CodeRabbit event source for the el plugin. Poll for new code reviews, comments, and thread replies on your pull requests as background events in Claude Code. When CodeRabbit posts a review or comment on a PR, it fires a task notification with the review details — letting your agent respond to code review feedback automatically. Supports thread reply detection for multi-turn review conversations. Requires the el event listener plugin and a GitHub repository with CodeRabbit enabled.
Details
- Kind
- Plugins
- Topic
- Version control
- Publisher
- mividtim
- Origin
- marketplace
- Category
- ferramentas
- Last push
- 2026-03-11T16:02:48Z
- Repository state
- ativo
- Language
- Python
- License
- MIT
- Added
- 2026-08-30 01:48:58
- Updated
- 2026-08-30 01:48:58
- Origin id
mividtim/claude-code-el-coderabbit/claude-code-el-coderabbit
README
# claude-code-el-coderabbit
Community event source for [claude-code-event-listeners](https://github.com/mividtim/claude-code-event-listeners) that polls for new [CodeRabbit](https://coderabbit.ai) activity on a GitHub pull request.
## Install
```bash
# From the marketplace (recommended — auto-discovers, pulls in el as dependency)
claude plugin marketplace add mividtim/claude-code-el-coderabbit
claude plugin install el-coderabbit
# Or manually register the source
git clone https://github.com/mividtim/claude-code-el-coderabbit.git
/el:register ./claude-code-el-coderabbit/sources.d/coderabbit.sh
```
## Usage
```
/el:listen coderabbit 1316
```
Pass a PR number to start polling. When CodeRabbit posts a review, inline comment, thread reply, or top-level comment, the listener exits with the event details.
### With a timestamp filter
```
/el:listen coderabbit 1316 2025-01-15T10:30:00Z
```
Only detect activity **after** the given timestamp. Useful for re-subscribing after processing an event — use the `TIMESTAMP` from the previous output as the new baseline.
### Environment variables
| Variable | Default | Description |
|----------|---------|-------------|
| `REPO` | Current `gh` repo | GitHub repo in `owner/name` format |
| `POLL_INTERVAL` | `30` | Seconds between API polls |
## Output Format
```
---EVENT---
TYPE thread_reply
TIMESTAMP 2025-01-15T10:36:15Z
PATH src/syndication/syndication.controller.e2e-spec.ts
COMMENT_ID 2784545640
IN_REPLY_TO 2784537786
THREAD_NODE_ID PRRT_kwDOIhsEuM5tlN32
BODY
@mividtim Thank you for the clarification. You're right...
```
### Event types
| TYPE | When | Extra fields |
|------|------|-------------|
| `review` | CodeRabbit posts a full review (APPROVED, CHANGES_REQUESTED, COMMENTED) | `STATE` |
| `comment` | CodeRabbit posts an initial inline review comment | `PATH`, `COMMENT_ID` |
| `thread_reply` | CodeRabbit replies to an existing review thread | `PATH`, `COMMENT_ID`, `IN_REPLY_TO`, `THREAD_NODE_ID` |
| `issue_comment` | CodeRabbit posts a top-level comment (walkthrough, summary) | — |
All events include `TIMESTAMP` and `BODY`.
### Thread reply workflow
The `thread_reply` event type enables automated CodeRabbit thread management:
1. CodeRabbit posts `CHANGES_REQUESTED` review with inline comments
2. You reply in-thread with fixes or pushback
3. Start the listener: `/el:listen coderabbit 1326 <timestamp>`
4. CodeRabbit replies in thread → listener fires with `TYPE thread_reply`
5. Read the `BODY` — if CodeRabbit accepts, resolve the thread:
```
gh api graphql -f query='mutation { resolveReviewThread(input: {threadId: "PRRT_..."}) { thread { isResolved } } }'
```
Use the `THREAD_NODE_ID` from the event output as the `threadId`.
6. Resolving all threads triggers CodeRabbit to post an `APPROVED` review
## Typical workflow
```
Push code → start listener → CodeRabbit reviews →
listener fires → read comments → make fixes / push back →
re-subscribe → CodeRabbit replies in thread →
listener fires → resolve accepted threads →
CodeRabbit approves → merge
```
After processing each notification, re-subscribe with the `TIMESTAMP` from the output:
```
/el:listen coderabbit 1316 2025-01-15T10:35:22Z
```
## Requirements
- [claude-code-event-listeners](https://github.com/mividtim/claude-code-event-listeners) plugin installed
- [`gh` CLI](https://cli.github.com/) (authenticated)
- [`jq`](https://jqlang.github.io/jq/download/)
## License
MIT