Agent settings

Learn how to customize the AI Code Review Agent.

Bito's AI Code Review Agent supports different configuration methods depending on the deployment environment:

  1. Bito-hosted – The agent runs on Bito's infrastructure and is configured through the Bito web UI.

  2. Self-hosted – The agent runs on user-managed infrastructure and is configured by editing the bito-cra.properties file.

The sections below provide configuration guidance for each setup.

Bito-hosted agent configuration

In Bito-hosted AI Code Review Agent, you can configure the agent through the Bito web UI.

To customize an existing agent, open the Code Review > Repositories page and click the Settings button next to the Agent instance to be modified.

The agent settings page allows configuration of options such as:

  • Agent name and description – Define a unique name and description for easy identification.

  • Review options – Choose the review mode (Essential or Comprehensive), set feedback language, and enable features like auto-review, incremental review, summaries, and change walkthroughs.

  • Filters – Exclude specific files, folders, or branches from review to focus on relevant code.

  • Tools – Enable additional checks, such as secret scanning and static analysis.

These settings tailor the agent’s behavior to match team workflows and project needs. For detailed guidance, see Create or customize an Agent instance.

Self-hosted agent configuration

In self-hosted deployments, configuration is managed by editing the bito-cra.properties file. This file defines how the agent operates and connects to required services.

Key configuration options include:

  • Mode

    • mode = cli: Processes a single pull request using a manual URL input.

    • mode = server: Runs as a webhook service and listens for incoming events from Git platforms.

  • Authentication

    • bito_cli.bito.access_key: Required for authenticating the agent with the Bito platform.

    • git.provider, git.access_token, etc.: Required for connecting to the appropriate Git provider (e.g., GitHub, GitLab, Bitbucket).

  • General feedback settings

    • code_feedback: Enables or disables general feedback comments in reviews.

  • Analysis tools

    • static_analysis: Enables static code analysis.

    • dependency_check: Enables open-source dependency scanning.

    • dependency_check.snyk_auth_token: Required when using Snyk for vulnerability detection.

  • Review format and scope

    • review_comments: Defines output style (e.g., single post or inline comments).

    • review_scope: Limits the review focus to specific concerns such as security, performance, or style.

  • Filters

    • include_source_branches and include_target_branches: Restrict reviews to pull requests that match specified source and target branch patterns.

    • exclude_files: Skips selected files based on glob patterns.

    • exclude_draft_pr: Skips draft pull requests when enabled (default: True).

Each property is documented in detail on the bito-cra.properties file documentation page.

Last updated

Was this helpful?