Skip to content
GitHub stars

Custom Agent Tasks

Use roborev run to execute custom tasks with AI agents. While automatic reviews focus on commits, run lets you target specific files, ask questions, or perform targeted analysis.

Terminal window
roborev run "Review src/auth.go for security issues"
roborev run --wait "Find simplification opportunities in this codebase"
roborev run --agentic "Add input validation to the user controller"

Use Cases

Targeted File Reviews

Review specific files for particular concerns:

Terminal window
# Security review
roborev run "Review src/auth/ for security vulnerabilities"
roborev run "Check database queries in src/db/ for SQL injection"
# Simplification opportunities
roborev run "Find opportunities to simplify src/handlers/user.go"
roborev run "Identify dead code or unused functions in src/utils/"
# Refactoring candidates
roborev run "Suggest refactoring opportunities in src/api/"
roborev run "Find code duplication in src/services/"

Code Analysis

Ask questions about architecture and design:

Terminal window
roborev run "Explain the authentication flow in this codebase"
roborev run "What design patterns are used here?"
roborev run "Document the main entry points of this application"
roborev run "List all external API dependencies"

Custom Review Criteria

Apply specific review criteria beyond the default review:

Terminal window
roborev run "Review recent changes for OWASP Top 10 vulnerabilities"
roborev run "Check for proper error handling in src/api/"
roborev run "Verify all database connections are properly closed"
roborev run "Find functions exceeding 50 lines"

Making Changes (Agentic Mode)

Use --agentic to allow file modifications:

Terminal window
roborev run --agentic "Add comprehensive error handling to main.go"
roborev run --agentic "Refactor database layer to use connection pooling"
roborev run --agentic "Add input validation to all API endpoints"
roborev run --agentic "Convert callback-style code to async/await"

Piped Input

Pipe complex prompts or instructions from files:

Terminal window
echo "Add comprehensive error handling" | roborev run --agentic --wait
cat review-checklist.txt | roborev run --wait

Flags

FlagDescription
--waitWait for task to complete and show result
--agentAgent to use (default: from config)
--reasoningReasoning level: fast, standard, or thorough
--no-contextDon’t include repository context in prompt
--agenticEnable agentic mode (allow file edits and commands)
--yoloAlias for --agentic
--quietSuppress output (just enqueue)

Review vs Agentic Mode

By default, tasks run in review mode (read-only). Use --agentic to enable write operations.

ModeTools AvailableUse Case
Review (default)Read, Glob, GrepAnalysis, explanations, finding issues
AgenticRead, Glob, Grep, Edit, Write, BashRefactoring, implementing features, fixes

Repository Context

By default, tasks include context about the repository:

  • Repository name and path
  • Any project guidelines from .roborev.toml

Use --no-context for raw prompts without this context.

Tips

  • Use --wait to see results immediately in the terminal
  • Use --reasoning thorough for security-sensitive analysis
  • Combine with roborev tui to review task results later
  • Tasks appear in the TUI alongside commit reviews

See Also