🛡️ Guardian Mode (v2.0)
CodeMind v2.0 is a comprehensive security platform with 5 engines and 14 MCP tools. Activate everything with a single trigger.
Activating via "use codemind"
In any MCP-compatible IDE (Cursor, Windsurf, Claude Code), simply type:
This activates the full Guardian v2.0 suite: SAST scanning, secrets detection, SCA, IaC auditing, documentation fetching, and auto-fix.
All MCP Tools (14)
🔍 Static Analysis (SAST)
🔧 Git & Review
📖 Resources & Prompts
CLI Commands
codemind install
Install the git pre-push hook in the current repository.
codemind install [--force]
| Option | Description |
--force, -f |
Overwrite existing pre-push hook |
Note: This command must be run inside a git repository.
codemind uninstall
Remove the git pre-push hook from the current repository.
codemind run
Manually run AI code review on current changes without pushing.
| Option | Description |
--base, -b |
Base ref for diff (default: auto-detect) |
--interactive, -i |
Interactive Mode: Review and resolve issues in the terminal |
--vibe |
Vibecoding Mode: High-energy, performance-focused review |
--no-inject |
Don't auto-inject, just copy to clipboard |
--dry-run |
Show what would happen without injecting |
--preview |
Show the prompt before injecting |
Interactive Mode
When running with -i, CodeMind will prompt you to paste the AI's response. It then parses the feedback and lets you interactively review each issue.
codemind commit
Generate professional AI commit messages from staged changes.
codemind commit [--style STYLE] [--apply]
| Option | Description |
--style, -s |
Style: conventional, simple, descriptive |
--apply, -a |
Apply the commit directly after generating |
codemind rules
Manage and run custom review rules.
codemind rules list [--preset PRESET]
codemind rules check [-p PRESET] [-f FILE]
codemind ci
Integrate CodeMind into your CI/CD pipeline.
codemind ci init [--output PATH]
codemind ci info
Automatically generates a GitHub Actions workflow that runs CodeMind on every pull request.
codemind pr create
Generate high-quality Pull Request descriptions from branch changes.
codemind pr create [--base BRANCH] [--copy]
Automates the creation of professional summaries including Overview, Key Changes, and Impact.
codemind gateway
Manage the CodeMind REST API Gateway.
codemind gateway start [--host HOST] [--port PORT] [--reload]
Starts the FastAPI server to expose CodeMind functionality over REST.
codemind notify
Send review summaries to Slack or Discord.
codemind notify slack WEBHOOK_URL
codemind notify discord WEBHOOK_URL
Pushes latest review results to team communication channels.
Examples
codemind run
codemind run --preview
codemind run --base main
codemind run --no-inject
codemind status
Show CodeMind status including config, hook, and detected IDE.
Output includes:
- Config file location (or "using defaults")
- Hook installation status
- Currently detected IDE
codemind config
Manage configuration files and team sharing.
codemind config init [--wizard]
codemind config show
codemind config export [--output PATH]
codemind config import SOURCE
Interactive Wizard
Run codemind config init --wizard for a guided 30-second setup experience including IDE detection and hook installation.
Team Sharing
Sync your review standards across the team by exporting your config and sharing the file, or a URL to the config.
codemind doctor
Run comprehensive system health and diagnostic checks.
Checks Git repo health, hook integrity, config validity, IDE connectivity, and Standalone LLM status.
codemind config --init
codemind config --show
codemind template
Manage and customize prompt templates.
codemind template [OPTIONS]
| Option | Description |
--export, -e |
Export default template to file |
--output, -o |
Output file name (default: codemind-template.txt) |
--show |
Show default template content |
Template Placeholders
{max_comments} - Maximum number of comments
{branch_name} - Current branch name
{file_count} - Number of files changed
{additions} - Lines added
{deletions} - Lines deleted
{diff_content} - The actual diff
codemind detect
Detect running IDEs and show their details.
Shows all detected IDEs with:
- IDE name and version
- Window title
- AI chat shortcut key
codemind history
View review history and statistics.
codemind history [OPTIONS]
| Option | Description |
--list, -l |
Show recent reviews |
--stats, -s |
Show review statistics |
--clear |
Clear all history |
--count, -n |
Number of entries to show (default: 10) |
codemind serve
Run CodeMind as an MCP (Model Context Protocol) server.
| Option | Description |
--transport, -t |
Transport type: stdio or streamable-http |
--host |
Host for HTTP transport (default: localhost) |
--port |
Port for HTTP transport (default: 8000) |
Available MCP Tools (14)
- 🔍
guard_code — SAST audit (50+ patterns)
- 🔧
scan_and_fix — Detect + auto-fix vulnerabilities
- ✨
improve_code — Refactor and improve code
- 🛡️
deep_security_scan — Multi-layer security analysis
- 🔑
scan_secrets — 30+ API key patterns + entropy
- 📦
scan_dependencies — SCA via OSV.dev
- 🔍
check_package — Single package CVE check
- 🏗️
scan_iac_file — Dockerfile/Actions/Compose security
- 🏗️
scan_infrastructure — Full project IaC scan
- 📋
export_security_report — SARIF/JSON/MD/HTML/CSV
- 📚
resolve_library — Library ID resolution
- 📖
query_docs — Documentation fetching
- 🔎
detect_code_libraries — Framework detection
- 📝
review_diff — Git diff review prompt