vibrant command analyzes your codebase to detect patterns commonly found in AI-generated code, including incomplete implementations, security issues, and code quality problems.
Syntax
Parameters
Path to analyze (file or directory). Defaults to current directory.
Options
Output format for displaying results.Values:
pretty- Colorful, detailed output with syntax highlightingcompact- Minimal output showing only essential informationplan- Markdown report saved tovibrant-report.mdjson- Machine-readable JSON format
vibrant.config.js (defaults to pretty)Comma-separated list of glob patterns to ignore during analysis.Example:Default: Empty (uses config file patterns)
Automatically fix problems where possible. Only works with static analysis rules.Example:
Enable AI-powered analysis for deeper code quality insights.Requires a configured AI provider. See AI providers for setup.
Specify which AI provider to use for analysis.Values:
openai- GPT-4o-mini (requiresOPENAI_API_KEY)claude- Claude 3 Haiku (requiresANTHROPIC_API_KEY)gemini- Gemini 1.5 Flash (requiresGOOGLE_GENERATIVE_AI_API_KEY)ollama- Local models (no API key required)openrouter- Multi-model API (requiresOPENROUTER_API_KEY)
Disable the analysis cache for AI-powered analysis.By default, Vibrant caches analysis results to avoid re-analyzing unchanged files.
Examples
Basic analysis
Analyze the current directory with default settings:Analyze specific file
Analyze a single file:AI-powered analysis
Use AI for deeper insights:Auto-fix issues
Automatically fix problems:Custom format and ignore patterns
Generate a markdown report while ignoring test files:Use specific AI provider
Analyze with Ollama (local, free):Output
Static analysis output
When running without--ai, Vibrant shows:
- File location (name, line, column)
- Rule ID that triggered
- Error/warning message
- Code snippet
- Fix suggestions (if available)
AI analysis output
When running with--ai, Vibrant provides:
- Vibrascope - Visual quality score (0-100)
- Issues Found - Detected problems with suggestions
- Diagnosis - Overall code health summary
- Key Findings - Top patterns detected
- Recommendations - Actionable next steps
Exit codes
0- No errors found1- Errors detected or analysis failed