Catch bugs before they reach your pull request — AI code review from the terminal.
npm install -g @kodus/cli# 1. Install
npm install -g @kodus/cli
# 2. Authenticate (or skip for trial mode — no account needed)
kodus auth login
# 3. Review your code
kodus reviewThat's it. Kodus analyzes your changes, finds issues, and lets you fix them interactively — or auto-fix everything at once with kodus review --fix.
Analyze local changes, staged files, commits, or branch diffs. Kodus finds bugs, security issues, performance problems, and style violations — then suggests fixes with real code.
kodus review # Review working tree changes (interactive)
kodus review --staged # Only staged files
kodus review --branch main # Compare against a branch
kodus review --fix # Auto-apply all fixable issues
kodus review --prompt-only # Structured output for AI agentsReviews are context-aware — Kodus reads your .cursorrules, claude.md, and .kodus.md so suggestions follow your team's standards. More on review modes
Fetch AI-powered suggestions for open pull requests directly from your terminal.
kodus pr suggestions --pr-url https://github.com/org/repo/pull/42
kodus pr suggestions --pr-number 42 --repo-id <id>Filter by severity, export as JSON or Markdown, or pipe into an AI agent with --prompt-only for automated fixes.
AI agents make dozens of decisions per session — architecture choices, trade-offs, why approach X was picked over Y. Without a record, that reasoning vanishes when the session ends.
Kodus captures agent decisions into your repo as structured markdown. When you or another agent return to the code, the full context is there.
kodus decisions enable # Install hooks + initialize config
kodus decisions status # See what's been captured
kodus decisions show [name] # View PR or module memory
kodus decisions promote # Promote decisions to long-term memoryStored in .kody/pr/by-sha/<head-sha>.md — versioned with your code, readable by humans and agents. More on decision memory
Kodus is designed to work inside AI coding agents. While you can use it standalone, the real power comes when your agent runs reviews automatically and fixes issues in a loop — no manual intervention needed.
Works with: Claude Code, Cursor, Windsurf, GitHub Copilot, Gemini CLI, and 20+ more environments.
The fastest way to get started. Auto-detects your installed IDEs and sets everything up:
curl -fsSL https://review-skill.com/install | bashThis installs the Kodus CLI globally and deploys the review skill into every supported agent on your machine — Claude Code, Cursor, Windsurf, and others. One command, all environments.
Once installed, your AI agent can autonomously:
- Write code as usual
- Run
kodus review --prompt-onlyto analyze changes - Read the structured output and understand each issue
- Fix the issues automatically
- Repeat until the review is clean
This creates a tight feedback loop: the agent writes, reviews, and fixes — all without leaving your IDE.
Beyond reviews, Kodus also captures what your agent decided and why via Decision Memory. Every reasoning step is saved into your repo — so when you (or another agent) pick up the work later, the full context is already there. No more re-explaining what was done or losing decisions between sessions.
Add to your project's CLAUDE.md:
## Code Review
After implementing changes, run `kodus review --prompt-only` to check for issues.
If issues are found, fix them and re-run until clean.Or use the skill directly — after installing via the command above, just ask Claude Code to review your code and it will use Kodus automatically.
Add to your .cursorrules or equivalent:
When writing code:
1. Implement the feature
2. Run: kodus review --prompt-only
3. If issues are found, fix them automatically
4. Repeat until review is clean
5. Show final result
Set a team key so agents and shared machines are authenticated without individual logins:
export KODUS_TEAM_KEY=kodus_xxxxx
kodus review --prompt-onlyWorks with Codex, CI runners, remote dev environments, and any context where personal login isn't practical. Get your key at app.kodus.io/settings/cli.
If you prefer manual control:
- Run
kodus review - Navigate to a file with issues
- Select "Copy fix prompt for AI agent"
- Paste into Claude Code or Cursor — the AI fixes it
The copied prompt includes file path, line numbers, severity, and detailed suggestions — optimized for AI agents.
curl -fsSL https://review-skill.com/install | bashInstalls the CLI and deploys the review skill to all detected agents in one step.
npm
npm install -g @kodus/clinpx (no install)
npx @kodus/cli reviewcurl
curl -fsSL https://raw.githubusercontent.com/kodustech/cli/main/install.sh | bashHomebrew (coming soon)
brew install kodus/tap/koduskodus reviewNavigate files with issue counts, preview fixes before applying, and copy AI-friendly prompts to paste into Claude Code or Cursor.
kodus review --fixApplies all fixable issues at once. Shows a confirmation prompt before making changes.
kodus review --prompt-onlyMinimal, structured output designed for Claude Code, Cursor, and Windsurf. Perfect for autonomous generate-review-fix loops.
More: output formats & flags
kodus review # Interactive (default)
kodus review --format json # JSON output
kodus review --format markdown # Markdown report
kodus review --prompt-only # AI agent output
kodus review --format markdown -o report.md # Save to filekodus review # Working tree changes
kodus review --staged # Staged files only
kodus review --commit HEAD~1 # Specific commit
kodus review --branch main # Compare against branch
kodus review src/index.ts src/utils.ts # Specific files| Flag | Description |
|---|---|
--staged |
Analyze only staged files |
--commit <sha> |
Analyze a specific commit |
--branch <name> |
Compare against a branch |
--rules-only |
Only check configured rules |
--fast |
Faster analysis for large diffs |
--fix |
Auto-apply all fixable issues |
--prompt-only |
AI agent optimized output |
--context <file> |
Include custom context file |
--format <fmt> |
Output format: terminal, json, markdown |
--output <file> |
Save output to file |
--fail-on <severity> |
Exit code 1 if issues meet or exceed severity |
-i, --interactive |
Explicitly enable interactive mode |
Full reference for the decision capture system (intro above).
# Enable with specific agents
kodus decisions enable --agents claude,cursor,codex
# Custom Codex config path
kodus decisions enable --agents codex --codex-config ~/.codex/config.toml
# Overwrite existing config
kodus decisions enable --force
# Check what's been captured on current branch
kodus decisions status
# View decisions for a PR or specific module
kodus decisions show [name]
# Promote PR-level decisions to long-term module memory
kodus decisions promote --branch feat/auth --modules auth,users
# Disable hooks (preserves all captured data in .kody/)
kodus decisions disableHow it works: Hooks fire on agent turn-complete events and persist decisions to .kody/pr/by-sha/<head-sha>.md. Files are committed to your repo, versioned with your code, readable by humans and agents.
Supported agents: Claude Code, Cursor, Codex.
kodus hook install --fail-on error # Block pushes with errors
kodus hook status # Check hook status
kodus hook uninstall # Remove hook# Strict rules check with JSON output
kodus review --rules-only --format json --fail-on error
# Generate markdown report artifact
kodus review --format markdown --output review-report.mdKodus supports multiple auth methods depending on your setup:
Just run kodus review. No signup needed. You get 5 reviews/day with up to 10 files and 500 lines per file — enough to try it out. Sign up free to remove limits.
For individual developers. Creates a session with automatic token refresh.
kodus auth login # Sign in with email/password
kodus auth status # Check auth status and usage
kodus auth logout # Sign outCredentials are stored locally in ~/.kodus/credentials.json.
For teams where not everyone needs their own account. A single shared key gives the whole team access — developers just set the key and start reviewing, no individual signup required.
kodus auth team-key --key kodus_xxxxxOr set it as an environment variable:
export KODUS_TEAM_KEY=kodus_xxxxxGet your team key at app.kodus.io/settings/cli. Team keys have configurable device limits managed from the dashboard.
This is also the recommended auth method for AI coding agents (Claude Code, Cursor, Codex) — set the env var once and every agent session is authenticated automatically.
For pipelines and automated environments. Generated from your personal login:
kodus auth token # Generate a CI/CD tokenThen use it in your pipeline:
export KODUS_TOKEN=<your-token>
kodus review --format json --fail-on errorNote: For PR-level reviews in CI/CD, we recommend using the Kodus platform GitHub/GitLab integration instead of the CLI. It's purpose-built for PR workflows with inline comments, status checks, and team dashboards.
Environment variables
| Variable | Description |
|---|---|
KODUS_API_URL |
API endpoint (default: https://api.kodus.io). HTTPS only (except localhost). |
KODUS_TOKEN |
CI/CD token for automated pipelines (generated via kodus auth token) |
KODUS_TEAM_KEY |
Team key for shared team access and AI coding agents |
Kodus sends your code diffs to the Kodus API for analysis. We take this seriously:
- HTTPS only — All API communication is encrypted. Custom API URLs are validated.
- No training on your code — Your code is not used to train models.
- Minimal data — Only diffs and context files are sent, not your entire codebase.
- Credentials stored locally — Auth tokens are kept in
~/.kodus/credentials.jsonon your machine.
We welcome contributions! Please see our issues page to get started.
npm install # Install dependencies
npm run build # Build
npm run dev # Watch mode
npm test # Run tests