Implementing custom code review rules
Customize Bito’s AI Code Review Agent to enforce your coding practices.
Bito’s AI Code Review Agent offers a flexible solution for teams looking to enforce custom code review rules, standards, and guidelines tailored to their unique development practices. Whether your team follows specific coding conventions or industry best practices, you can customize the Agent to suite your needs.
We support three ways to customize AI Code Review Agent’s suggestions:
Provide feedback on Bito-reported issues in pull requests, and the AI Code Review Agent automatically adapts by creating code review rules to prevent similar suggestions in the future.
Create custom code review guidelines via the dashboard. Define rules through the Custom Guidelines dashboard in Bito Cloud and apply them to agent instances in your workspace.
Use project-specific guideline files. Add guideline files (like
.cursor/rules/*.mdc,.windsurf/rules/*.md,CLAUDE.md,GEMINI.md, orAGENTS.md) to your repository, and the AI Code Review Agent automatically uses them during pull request reviews to provide feedback aligned with your project's standards.
1- Provide feedback on Bito-reported issues
AI Code Review Agent refines its suggestions based on your feedback. When you provide negative feedback on Bito-reported issues in pull requests, the Agent automatically adapts by creating custom code review rules to prevent similar suggestions in the future.
Depending on your Git platform, you can provide negative feedback in the following ways:
GitHub: Select the checkbox given in feedback question at the end of each Bito suggestion or leave a negative comment explaining the issue with the suggestion.

GitLab: React with negative emojis (e.g., thumbs down) or leave a negative comment explaining the issue with the suggestion.

Bitbucket: Provide manual review feedback by leaving a negative comment explaining the issue with the suggestion.

The custom code review rules are displayed on the Learned Rules dashboard in Bito Cloud.
These rules are applied at the repository level for the specific programming language.
By default, newly generated custom code review rules are disabled. Once negative feedback for a specific rule reaches a threshold of 3, the rule is automatically enabled. You can also manually enable or disable these rules at any time using the toggle button in the Status column.

After you provide negative feedback, Bito generates a new code review rule in your workspace. The next time the AI Code Review Agent reviews your pull requests, it will automatically filter out the unwanted suggestions.
2- Create custom code review guidelines
We understand that different development teams have unique needs. To accommodate these needs, we offer the ability to implement custom code review guidelines in Bito’s AI Code Review Agent.
Once you add guidelines, the agent will follow them when reviewing pull requests. You can manage guidelines (create, apply, and edit) entirely in the dashboard.
By enabling custom code review guidelines, Bito helps your team maintain consistency and improve code quality.
How to add a guideline
Step 1: Open the Custom Guidelines tab
Sign in to Bito Cloud.
Click Custom Guidelines in the sidebar.

Step 2: Fill the form
A. Manual setup
Click Add guidelines button from the top right.
Fill out:
Guideline name
Language (select a specific programming language or select General if the guideline applies to all languages)
Custom Guidelines and Rules (enter your guidelines here)
Click Create guideline.

B. Use a Template
Click Add guidelines button from the top right.
Choose a template from the Use template dropdown menu.
Review/edit fields as needed.
Click Create guideline.

Step 3: Apply to an Agent
After creating a guideline, you’ll see an Apply review guideline dropdown.
Select the Agent instance, then click Manage review guidelines to open its settings.

Step 4: Save configuration
On the Agent settings page, hit Save (top-right) to apply guideline changes.

Managing review guidelines from agent settings
Efficiently control which custom guidelines apply to your AI Code Review Agent through the Agent settings interface.
Go to Repositories dashboard from the Bito Cloud sidebar.
Click Settings next to the target agent instance.

Navigate to the Custom Guidelines section. Here you can either create a new guideline or select from existing guidelines.

Create a new guideline
If you click Create a new guideline button, you will see the same form as mentioned earlier where you can enter the details to create a review guideline.

Or select an existing guideline
If you click Select from existing guidelines button, you will get a popup screen from where you can select from a list review guidelines you already created. Use checkboxes to enable or disable each guideline for the selected agent and then click Add selected.

Once you’ve applied or adjusted guidelines, click the Save button in the top-right corner to confirm changes.

FAQs
What types of custom code review guidelines can be implemented?
You can implement a wide range of custom code review guidelines, including:
Style and formatting guidelines
Security best practices
Performance optimization checks
Code complexity and maintainability standards
etc.
Is "custom code review guidelines" feature available in Team Plan?
No, this feature is available exclusively on the Enterprise Plan. Enabling the "custom code review guidelines" feature also upgrades your workspace to the Enterprise Plan.
For more details on Enterprise Plan, visit our Pricing Page.
3- Use project-specific guideline files
The AI Code Review Agent can read guideline files directly from your repository and use them during code reviews. These are the same guideline files that AI coding assistants (like Cursor, Windsurf, and Claude Code) use to help developers write code.
By adding these files to your repository, the agent automatically follows your project's specific coding standards, architecture patterns, and best practices when reviewing pull requests.
Supported guideline files
The AI Code Review Agent currently supports analyzing the following guideline files that are commonly used by different AI coding agents:
CRA currently supports analyzing the following guideline files that are commonly used by different AI coding agents:
.cursor/rules/*.mdc
Cursor IDE
.windsurf/rules/*.md
Windsurf IDE
CLAUDE.md
Claude Code
GEMINI.md
Gemini CLI
AGENTS.md
OpenAI CodeX, Cursor IDE
How to organize your guideline files
Multiple files in one directory
You can split your guidelines across multiple files:
.cursor/rules/project-overview.mdc
.cursor/rules/architecture-principles.mdc
.cursor/rules/security-standards.mdcFor Windsurf, use the .md extension:
.windsurf/rules/coding-standards.md
.windsurf/rules/api-patterns.mdModule-specific guidelines:
Place guideline files in subdirectories to create rules for specific parts of your codebase:
.cursor/rules/global-standards.mdc
providers/.cursor/rules/provider-implementation.mdc
auth/.cursor/rules/authentication-rules.mdcThe agent finds all relevant guideline files based on which files changed in your pull request.
How citations work
Every relevant Bito comment includes a Citations section that links to the specific guideline that triggered the comment. The link takes you directly to the relevant line in your guideline file, making it easy to verify the feedback and understand why it was given.
Example scenario
Let's say you're building an application that integrates multiple LLM providers. Your guideline file specifies:
All providers must extend the
BaseLLMProviderclassAll providers must implement standard methods like
generateResponse()andstreamResponse()New providers must be registered in the
config/providers.jsonfile
When someone submits a pull request to add a new provider, the agent can catch issues like:
The new provider doesn't extend the base class
Required methods are missing
The provider wasn't added to the configuration file
Each comment links back to the specific guideline, so the developer knows exactly what needs to be fixed.
Sample guideline file
Here's an example AGENT.md file to help you get started:
Last updated

