Skip to main content
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 and how it presents suggestions to match your team’s standards and communication style.

Access Custom Prompts Settings

Configure your custom prompts for all repositories in your organization

Why Use Custom Prompts?

Team-Specific Standards

Align Kody’s reviews with your team’s unique coding standards, architectural patterns, and best practices

Model Optimization

Craft prompts optimized for your specific AI model’s strengths when using BYOK

Focus Control

Direct Kody’s attention to issues that matter most to your project and reduce noise

Communication Style

Customize how Kody presents suggestions - detailed for critical issues or concise for minor ones

How Custom Prompts Work

Custom Prompts operate at two levels:

Category Prompts

Define what Kody looks for in each review category:
Focus: Code correctness and execution issuesDefault coverage:
  • Execution breaks (unhandled exceptions)
  • Wrong results (incorrect output)
  • Resource leaks (files, connections, memory)
  • State corruption (invalid object/data states)
  • Logic errors (incorrect control flow)
  • Race conditions (concurrent access issues)
Max length: 2000 characters

Suggestion Prompts

Control how Kody communicates each individual suggestion. This customizes the message format and tone that appears in PR comments, like:
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.

External References

All custom prompts—Category, 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.

Best Practices

Be Specific to Your Context

Do: Context-Specific

Don't: Too Generic

Avoid Redundancy Between Prompts

Each category should have a distinct focus. Don’t repeat the same instructions across different prompts.
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.
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.

Be Careful with Examples

This describes the pattern broadly, catching multiple variations.

Keep Suggestions Scannable

For suggestion prompts, make messages easy to scan since developers review many at once:
Clear hierarchy, important information first

Use Context Meaningfully

Only differentiate suggestion formats when there’s a real reason:
Clear distinction: rules are requirements, suggestions are recommendations

Use Cases

Scenario: Healthcare application with HIPAA compliance requirementsCustom Security Prompt:
Benefit: Kody catches compliance-specific issues that generic security reviews might miss.
Scenario: React/Node.js application with specific patternsCustom Bug Prompt:
Benefit: Reviews are laser-focused on your stack’s specific gotchas.
Scenario: Using Gemini 2.5 Flash via BYOK for cost optimizationCustom Performance Prompt:
Benefit: Structured output format that Gemini handles exceptionally well, improving review quality.
Scenario: Want detailed explanations for critical issues but concise feedback for minor onesCustom Suggestion Prompt:
Benefit: Critical issues get extra context while minor issues stay brief, improving review efficiency.
Scenario: Team prefers minimal, actionable feedbackCustom Suggestion Prompt:
Benefit: Every suggestion is short and to-the-point without extra context.
Scenario: Junior developers benefit from detailed explanationsCustom Suggestion Prompt:
Benefit: Every suggestion includes educational context about importance.
Scenario: Kody Rules are strict requirements, suggestions are recommendationsCustom Suggestion Prompt:
Benefit: Clear distinction between mandatory rules and optional suggestions.

Troubleshooting

Symptoms: Too many low-value suggestions after customizationSolutions:
  • Make prompts more specific and focused
  • Add exclusions for patterns you want to ignore
  • Raise minimum severity threshold in Suggestion Control
  • Check for redundancy between category prompts
Symptoms: Kody doesn’t catch issues it shouldSolutions:
  • Review your prompt for being too narrow or example-specific
  • Check if the issue falls under a category you didn’t customize
  • Try resetting to default to see if the issue is caught
  • Consider if the issue might be classified under a different severity
Symptoms: Same type of issue flagged sometimes but not alwaysSolutions:
  • Ensure prompts are clear and unambiguous
  • Remove conflicting instructions across different prompts
  • Check if you’re using examples that are too specific
  • Consider if different models in primary/fallback have different capabilities
Symptoms: Want to use custom prompts but unsure where to startSolutions:
  • Start by running default reviews for a week
  • Note patterns in false positives or missed issues
  • Customize only the specific prompt related to those patterns
  • Keep other prompts at default until you see a clear need

Frequently Asked Questions

It depends on where you set them:
  • 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.
Yes. Click into any prompt in settings to view default content.
Changes only affect new reviews. Re-run with @kody start-review to apply new prompts to existing PRs.
No. Custom prompts are web-only to ensure intentional changes. Other settings (ignored paths, branches) can use kodus-config.yml.
Only customize prompts with clear, specific needs. Keep others at default to benefit from our improvements. Start with 1-2 prompts.
Works seamlessly. Tailor prompts to your model’s strengths. Both primary and fallback use the same custom prompts.
Category prompts control what Kody analyzes in each review category. Suggestion prompts control how Kody presents findings to your team. You can customize both independently.
Yes. Suggestion prompts support standard markdown formatting including bold, italic, code blocks, and links.
Kody will fall back to the default suggestion format and notify you of the error in settings.
Yes. Use the isKodyRule variable to create different messages for rules vs suggestions in the same prompt.