pi-coderabbit
Manual Pi slash command for running the official CodeRabbit CLI.
Package details
Install pi-coderabbit from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-coderabbit- Package
pi-coderabbit- Version
0.1.0- Published
- Jun 30, 2026
- Downloads
- 172/mo · 17/wk
- Author
- r0r-5chach
- License
- MIT
- Types
- extension
- Size
- 8.8 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./index.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
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 --agent
Install
From npm:
pi install npm:pi-coderabbit
Try without installing permanently:
pi -e npm:pi-coderabbit
From a local checkout:
pi install /absolute/path/to/pi-coderabbit
Usage
Run from inside a git repository.
/coderabbit
By 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 changes
The 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 repo
Flags
/coderabbit --plain # use CodeRabbit plain text output
/coderabbit --raw # show raw CLI output, including agent JSON events
/coderabbit diff --plain
/coderabbit repo --raw
Without --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 again
Notes
- 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.