Argus — AI Code Review Platform
Your coding agent shouldn't grade its own homework.
Argus is a local-first, modular AI code review platform. One binary, six tools, zero lock-in. It combines structural analysis, semantic search, git history intelligence, and LLM-powered reviews to catch what your copilot misses.
Why Argus?
- Independent review — your AI agent wrote the code, a different AI reviews it. No self-grading.
- Full codebase context — reviews use structural maps, semantic search, git history, and cross-file analysis. Not just the diff.
- Zero lock-in — works with OpenAI, Anthropic, or Gemini. Switch providers in one line. Gemini free tier = zero cost.
- One binary, six tools — map, diff, search, history, review, MCP server. Composable Unix-style subcommands.
Get Started in 60 Seconds
# 1. Install via npm
# 2. Set your key (Gemini, Anthropic, or OpenAI)
# 3. Review your changes
|
Install
npm (Recommended)
# or
Cargo
From Source
Subcommands
review — AI Code Review
Run a context-aware review on any diff or PR.
# Review local changes
|
# Review a GitHub PR (posts comments back to GitHub)
map — Codebase Structure
Generate a ranked map of your codebase structure (tree-sitter + PageRank).
search — Semantic Search
Hybrid code search using embeddings (Voyage/Gemini/OpenAI) + keywords.
history — Git Intelligence
Detect hotspots, temporal coupling, and bus factor risks.
diff — Risk Scoring
Analyze diffs for risk based on size, complexity, and diffusion.
|
mcp — MCP Server
Connect Argus to Cursor, Windsurf, or Claude Code.
doctor — Diagnostics
Check your environment, API keys, and configuration.
GitHub Action
Add automated reviews to your PRs:
name: Argus Review
on:
permissions:
pull-requests: write
contents: read
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
- name: Install Argus
run: npm install -g argus-ai
- name: Run Review
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
argus-ai review \
--diff origin/${{ github.base_ref }}..HEAD \
--pr ${{ github.repository }}#${{ github.event.pull_request.number }} \
--post-comments \
--fail-on bug
MCP Setup
Add to ~/.mcp.json or project .mcp.json:
Add to generic MCP settings:
Configuration
Run argus init to generate a .argus.toml.
[]
= 5
= 90
= false
# Gemini (Zero Cost)
[]
= "gemini"
= "gemini-2.0-flash"
[]
= "gemini"
= "text-embedding-004"
# Environment Variables:
# GEMINI_API_KEY, ANTHROPIC_API_KEY, OPENAI_API_KEY, VOYAGE_API_KEY
Architecture
┌─────────────┐
│ argus │
└──────┬──────┘
│
┌────────────────┼────────────────┐
▼ ▼ ▼
┌───────────────┐ ┌───────────┐ ┌──────────────┐
│ argus-review │ │ argus-mcp │ │ subcommands │
└───────┬───────┘ └─────┬─────┘ └───────┬──────┘
│ │ │
┌─────┴─────┬─────────┘ │
▼ ▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌──────────┐ ┌──────────┐
│ repomap │ │difflens │ │ codelens │ │ gitpulse │
└─────────┘ └─────────┘ └──────────┘ └──────────┘
Contributing
See CONTRIBUTING.md.
License
MIT