AI-powered code review and safety tools for Claude Code.
npx @goobits/sherpa init| Command | Description |
|---|---|
sherpa review |
AI code review (files, diffs, questions) |
sherpa tree |
Repository structure with stats |
sherpa init |
Set up hooks, MCP, husky, lint-staged |
sherpa pre |
PreToolUse hook (blocks dangerous commands) |
sherpa post |
PostToolUse hook (manages large output) |
sherpa review --paths "src/**/*.ts" --focus security
sherpa review --mode diff --base origin/main
sherpa review --mode ask --prompt "How would you refactor this?"Focus options: general security performance architecture style
sherpa tree --stats
sherpa tree --pattern "**/*.ts" --depth 4
sherpa tree --stats --summary # includes AI summarynpx @goobits/sherpa init
echo "CEREBRAS_API_KEY=..." >> .envRestart Claude Code after init.
pnpm install && pnpm build
pnpm dev # watch mode
pnpm typecheckpackages/
sherpa/ CLI and Claude Code hooks
reviewer/ MCP server
core/ Shared utilities (LLM, git, files)
MIT