grepper-dev
v0.2.2
Published
Grepper CLI - Local code review powered by AI
Maintainers
Readme
grepper-dev
Local code review powered by AI. Review your code changes before pushing, right from your terminal.
Installation
npm i -g grepper-devOr use directly with npx:
npx grepper-dev reviewSetup
- Get your API key from the Grepper dashboard
- Login with your key:
grepper loginUsage
Review staged changes (default)
grepper reviewReview all uncommitted changes
grepper review --allReview changes against a branch
grepper review --base mainReview specific files
grepper review src/api.ts src/utils.tsOptions
| Option | Description |
|--------|-------------|
| -s, --staged | Review staged changes only |
| -a, --all | Review all uncommitted changes |
| -b, --base <branch> | Compare against a branch |
| -m, --mode <mode> | Review mode: full, quick, or security |
| -f, --format <format> | Output: pretty, json, or markdown |
| --fail-on-critical | Exit with code 1 if critical issues found |
Review Modes
- full (default) - Comprehensive review covering all aspects
- quick - Fast review focusing on obvious issues
- security - Security-focused review
Output Formats
- pretty (default) - Colored terminal output
- json - Machine-readable JSON for CI/automation
- markdown - Markdown for documentation or PRs
CI Integration
Use in CI pipelines to catch issues before merge:
- name: Review code
run: npx grepper-dev review --base main --format json --fail-on-criticalConfiguration
Create a .grepper.json in your project root:
{
"mode": "full",
"ignore": ["*.test.ts", "dist/**"]
}The CLI also reads CLAUDE.md and agents.md for project-specific context.
Commands
| Command | Description |
|---------|-------------|
| grepper login | Authenticate with your API key |
| grepper logout | Clear stored credentials |
| grepper whoami | Show current user and organization |
| grepper review | Review code changes |
License
MIT
