pi-coderabbit
v0.1.0
Published
Manual Pi slash command for running the official CodeRabbit CLI.
Maintainers
Readme
pi-coderabbit
Manual CodeRabbit reviews inside Pi.
pi-coderabbit adds a /coderabbit slash command that shells out to the official CodeRabbit CLI and posts the review back into the current Pi conversation.
It is intentionally manual-only. It never runs automatically after edits, tests, commits, or fixes.
Requirements
- Pi
- Git repository
- Official CodeRabbit CLI available as
coderabbit - CodeRabbit authentication
coderabbit --version
coderabbit auth login
# or, if the CLI asks for agent-oriented auth:
coderabbit auth login --agentInstall
From npm:
pi install npm:pi-coderabbitTry without installing permanently:
pi -e npm:pi-coderabbitFrom a local checkout:
pi install /absolute/path/to/pi-coderabbitUsage
Run from inside a git repository.
/coderabbitBy default this reviews the latest commit only, to avoid accidentally spending CodeRabbit usage on a broad repo review.
Commands
/coderabbit # same as /coderabbit commit
/coderabbit commit # latest commit
/coderabbit diff # uncommitted changes
/coderabbit repo # broad CodeRabbit review of local repo changesThe package runs:
coderabbit review --type committed --base-commit HEAD~1 --agent # /coderabbit, /coderabbit commit
coderabbit review --type uncommitted --agent # /coderabbit diff
coderabbit review --agent # /coderabbit repoFlags
/coderabbit --plain # use CodeRabbit plain text output
/coderabbit --raw # show raw CLI output, including agent JSON events
/coderabbit diff --plain
/coderabbit repo --rawWithout --raw, agent JSON status events are formatted for humans. A clean review shows No findings. instead of raw JSON.
Output
## CodeRabbit Review
Reviewed commit:
<git log -1 --oneline>
Working tree:
<git status --short>
Review:
<CodeRabbit review output>Example workflow
AI makes changes
git add .
git commit
/coderabbit
Review findings
Create follow-up commit(s)
Repeat only when you explicitly run /coderabbit againNotes
- This package uses the official CodeRabbit CLI. It does not call or reimplement the CodeRabbit API.
- GitHub CodeRabbit PR reviews complement this package but are independent of it.
/coderabbit repomay be broader and more expensive than/coderabbit commit; use it deliberately.
