Customize Kody’s review prompts for each category and severity level to match your team’s needs
Custom Prompts give you complete control over how Kody analyzes your code and communicates findings. Tailor what the AI looks for in each review category, how it classifies severity, and how it presents suggestions to match your team’s standards and communication style.
Control how Kody communicates each individual suggestion. This customizes the message format and tone that appears in PR comments, like:
Copy
Ask AI
The new file 'create-or-update-issues-parameter.dto.ts' does not follow the company's naming convention. According to the Kody Rules, all new files must use camelCase. Please rename the file to 'createOrUpdateIssuesParameter.dto.ts' to adhere to the standard.
Your custom prompt instructs Kody on how to write suggestion messages. The prompt receives context about the severity level, problem description, suggested code, and whether it’s a Kody Rules violation. Kody uses this context along with your prompt to generate appropriate messages for each suggestion.You can customize the tone, level of detail, and communication style based on your team’s needs - from detailed explanations for critical issues to concise feedback for minor ones.
All custom prompts—Category, Severity, Suggestion, and PR Summary—support referencing real files from the codebases Kody can access. When you save an update, Kody automatically detects external references and resolves them for future reviews.
Use @file:path/to/file.ts to point at files in the repository you’re editing; Kody will try to locate the path locally first.
Include @repo:org/project when referencing files from another repository or when editing prompts at the global level.
Prefer precise blob-style paths rather than placeholders so the model can reliably find the right file.
After saving, Kody processes the references in the background. Check the status indicator beside the prompt editor to confirm when resolution completes.
Bug category prompt:Focus on null pointer exceptions in our Java services, unclosed database connections in DAO layer, and race conditions in our async event handlers. Check for proper resource cleanup in try-finally blocks.
Don't: Too Generic
Copy
Ask AI
Bug category prompt:Look for bugs in the code.Check for issues and problems.
Each category and severity should have a distinct focus. Don’t repeat the same instructions across different prompts.
Example: Proper Separation
Bug Category:
Focus on execution correctness, null pointer exceptions, and resource cleanup in our Java services.Security Category:
Focus on SQL injection, XSS, and CSRF in our API endpoints. Verify input sanitization and parameterized queries.Performance Category:
Focus on N+1 queries, missing database indexes, and inefficient loops in data processing.Result: Each prompt has a clear, non-overlapping focus.
Anti-pattern: Redundant Prompts
Bug Category:
Check for null pointers, SQL injection, and slow queries.Security Category:
Look for SQL injection, null pointers, and performance issues.Performance Category:
Find slow queries, null pointers, and security vulnerabilities.Problem: All prompts overlap, confusing the model and reducing review quality.
Detect SQL injection in database queries:- Raw string concatenation in SQL statements- User input directly in query strings- Missing parameterized queries or ORMs- Dynamic query construction without sanitization
This describes the pattern broadly, catching multiple variations.
For suggestion prompts, make messages easy to scan since developers review many at once:
Good: Clear Structure
Bad: Wall of Text
Copy
Ask AI
Write suggestions with clear structure. For critical issues, start with the 🚨 emoji, state the problem, then show "Fix:" followed by the code. For other severities, keep it simple - just the problem and the suggested code.Put important information first so developers can quickly understand what needs to be done.
Only differentiate suggestion formats when there’s a real reason:
Good: Meaningful Difference
Bad: Superficial Label
Copy
Ask AI
For Kody Rules violations, use a stricter tone: "**Team Standard**: [problem]. Required: [code]"For standard suggestions, use a friendlier tone:"[problem]. Suggested: [code]"The difference in language makes the requirement level clear.
Clear distinction: rules are requirements, suggestions are recommendations
Scenario: Healthcare application with HIPAA compliance requirementsCustom Security Prompt:
Copy
Ask AI
Focus on HIPAA compliance in data handling:- PHI (Protected Health Information) exposure in logs or errors- Missing encryption for PHI at rest and in transit- Inadequate access controls for patient data- Audit logging gaps for PHI access- Data retention violations- Missing patient consent verification
Scenario: React/Node.js application with specific patternsCustom Bug Prompt:
Copy
Ask AI
Focus on React and Node.js common pitfalls:- Missing dependency arrays in useEffect/useMemo- Unhandled promise rejections in async handlers- Memory leaks from event listener cleanup- Race conditions in state updates- Missing error boundaries- Uncaught exceptions in Express middleware
Benefit: Reviews are laser-focused on your stack’s specific gotchas.
Model-Specific Tuning
Scenario: Using Gemini 2.5 Flash via BYOK for cost optimizationCustom Performance Prompt:
Copy
Ask AI
Analyze algorithmic efficiency and resource usage.List specific issues in this format:1. Issue type and location2. Current complexity3. Optimization suggestion4. Expected improvementPrioritize: database queries, loops, memory allocations.
Benefit: Structured output format that Gemini handles exceptionally well, improving review quality.
Severity Calibration
Scenario: Startup moving fast, needs different severity thresholdsCustom Critical Prompt:
Copy
Ask AI
Only flag as Critical if:- Production data could be deleted or corrupted- Security breach allowing direct data exfiltration- Payment processing failures- Complete service outage for core featuresNote: Performance issues are never Critical unless causing crashes.
Benefit: Reduces alert fatigue by aligning severity with business impact.
Severity-Based Communication
Scenario: Want detailed explanations for critical issues but concise feedback for minor onesCustom Suggestion Prompt:
Copy
Ask AI
When writing suggestions, adjust the level of detail based on severity:For Critical issues: Start with "🚨 CRITICAL:" followed by the problem. Add a line explaining "This requires immediate attention." Then provide the fix with "Fix:" prefix.For High severity: Use "⚠️" emoji, state the problem, then show the fix with "Fix:" prefix.For Medium and Low: Keep it brief - just state the problem and show the suggested code directly without extra explanation.
Benefit: Critical issues get extra context while minor issues stay brief, improving review efficiency.
Direct and Concise Feedback
Scenario: Team prefers minimal, actionable feedbackCustom Suggestion Prompt:
Copy
Ask AI
Be direct and concise. State the problem in one sentence, then immediately show the fix with "Fix:" prefix. No additional context or explanations.
Benefit: Every suggestion is short and to-the-point without extra context.
Educational Suggestions
Scenario: Junior developers benefit from detailed explanationsCustom Suggestion Prompt:
Copy
Ask AI
Structure suggestions in three parts:1. **Issue:** State the problem clearly2. **Why this matters:** Explain the impact based on severity: - Critical: Could cause production failures or security vulnerabilities - High: May lead to bugs or performance problems - Medium/Low: Improves code quality and maintainability3. **Fix:** Show the recommended code changeMake explanations educational and help developers learn why it matters.
Benefit: Every suggestion includes educational context about importance.
Different Tone for Rules vs Suggestions
Scenario: Kody Rules are strict requirements, suggestions are recommendationsCustom Suggestion Prompt:
Copy
Ask AI
Use different tones based on the type:For Kody Rules violations:- Start with "**Team Standard Violation**" in bold- State the problem- Add "This violates documented team standards."- Show "Required fix:" followed by the codeFor standard suggestions:- State the problem directly- Show "Suggested improvement:" followed by the code- Use a friendly, recommendatory tone
Benefit: Clear distinction between mandatory rules and optional suggestions.
Global settings: Apply to all repositories in your organization
Per-repository settings: Override global settings for that specific repo
This lets you have organization-wide standards with repository-specific overrides when needed.
Can I see the default prompts before customizing?
Yes. Click into any prompt in settings to view default content.
What happens to existing PRs when I change prompts?
Changes only affect new reviews. Re-run with @kody start-review to apply new prompts to existing PRs.
Can I customize prompts with kodus-config.yml?
No. Custom prompts are web-only to ensure intentional changes. Other settings (ignored paths, branches) can use kodus-config.yml.
Should I customize all prompts or just some?
Only customize prompts with clear, specific needs. Keep others at default to benefit from our improvements. Start with 1-2 prompts.
How do custom prompts work with BYOK?
Works seamlessly. Tailor prompts to your model’s strengths. Both primary and fallback use the same custom prompts.
What's the difference between Category/Severity prompts and Suggestion prompts?
Category/Severity prompts control what Kody analyzes and how it classifies issues. Suggestion prompts control how Kody presents findings to your team. You can customize both independently.
Can I use markdown in suggestion prompts?
Yes. Suggestion prompts support standard markdown formatting including bold, italic, code blocks, and links.
What happens if my suggestion template has syntax errors?
Kody will fall back to the default suggestion format and notify you of the error in settings.
Do suggestion prompts work for both Kody Rules and standard suggestions?
Yes. Use the isKodyRule variable to create different messages for rules vs suggestions in the same prompt.