Skip to content
GitHub stars

Ad-Hoc Prompts

Use prompt to run arbitrary prompts with AI agents for tasks beyond code review:

Terminal window
roborev prompt "Explain the architecture of this codebase"
roborev prompt --wait "What does the main function do?"
roborev prompt --agent claude-code "Refactor error handling in main.go"
roborev prompt --reasoning thorough "Find potential security issues"
roborev prompt --agentic "Add error handling to main.go"
cat instructions.txt | roborev prompt --wait

Flags

FlagDescription
--waitWait for job 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, prompts run in review mode (read-only). Use --agentic (or --yolo) to enable write operations (file edits, bash commands) for tasks that need to modify your codebase.

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

Repository Context

By default, prompts include context about the repository:

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

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

Examples

Ask Questions

Terminal window
roborev prompt "What design patterns are used in this codebase?"
roborev prompt --wait "Explain the authentication flow"

Code Analysis

Terminal window
roborev prompt --reasoning thorough "Find potential security issues"
roborev prompt "What are the main entry points of this application?"

Make Changes (Agentic)

Terminal window
roborev prompt --agentic "Add input validation to the user controller"
roborev prompt --yolo "Refactor the database layer to use connection pooling"

Piped Input

Terminal window
echo "Add comprehensive error handling" | roborev prompt --agentic --wait
cat todo.txt | roborev prompt --wait

See Also