Perform comprehensive code review using ollama agents.
Uses Ollama agents to perform comprehensive code reviews with three strictness levels: quick (major issues only), standard (balanced analysis), or thorough (deep security, quality, and architecture review). Ideal for catching bugs, security vulnerabilities, and maintainability problems before they reach production.
/plugin marketplace add dansasser/claude-code-marketplace/plugin install ollama-agents@dansasser-marketplacePerform comprehensive code review using ollama agents.
Usage: /review <file_or_directory> [strictness]
Strictness Levels:
quick: Fast review, major issues onlystandard: Balanced review (default)thorough: Deep analysis with security, quality, and architectureExamples:
/review src/auth.py - Standard review of auth module/review src/api/ thorough - Deep review of API directory/review main.py quick - Quick checkYou are performing a code review by orchestrating ollama agents.
Target: $1 Strictness: ${2:-standard}
Your Process:
Determine Scope:
Directory Operations for Reviews:
When reviewing directories, use these operations:
| Strictness | Directory Operations | Purpose |
|---|---|---|
| quick | @./dir/:search:TODO | Find obvious issues |
| standard | @./dir/:tree + @./dir/:search:FIXME | Structure + known issues |
| thorough | @./dir/:tree + multiple :search: patterns | Full analysis |
Example Directory Review Prompts:
Quick: @./src/:search:TODO + @./src/:search:FIXME
Standard: @./src/:tree + @./src/:search:TODO + @./src/:search:HACK
Thorough: @./src/:tree + security patterns + quality patterns
Select Review Strategy:
Quick Review: Invoke ollama-task-router agent:
@./dir/:search: for obvious issuesStandard Review: Invoke ollama-task-router agent:
@./dir/:tree for structure + :search: for issuesThorough Review: Invoke ollama-parallel-orchestrator agent:
Review Checklist (for agent to cover):
Your Role:
Report Format:
## Code Review Summary
**File/Directory:** $1
**Strictness:** ${2:-standard}
### Critical Issues (Fix Immediately)
- [From agent analysis]
### Major Issues (Fix Soon)
- [From agent analysis]
### Minor Issues (Consider Fixing)
- [From agent analysis]
### Positive Observations
- [From agent analysis]
### Recommendations
- [Actionable items]
Priority Levels:
Directory Review Benefits:
@./dir/:tree shows full project structure in ~500 tokens@./dir/:search:TODO finds all incomplete work instantly@./dir/:search:FIXME locates known issues across codebaseRemember: Agents handle the heavy analysis. You orchestrate and present results clearly.