Gito is an open-source AI code reviewer that uses large language models to detect high-confidence, high-impact issues in GitHub pull requests or local code changes, such as security vulnerabilities, bugs, and maintainability issues. It is vendor-agnostic and works with any language model provider.
Purpose
Gito is used to automate code review: it can run automatically on GitHub pull requests and post the results as comments, or locally analyze the diff between the current branch and the main branch. It is suitable for independent developers who want expert-level code review without waiting for a human, teams that want to catch issues before manual review, open-source projects that need to maintain high code quality at scale, and CI/CD pipelines that need automated quality gates.
Key Capabilities
- Fast: with parallelized LLM processing, detailed code review can be obtained in seconds.
- Vendor-agnostic: supports any language model provider, including OpenAI, Anthropic, Google, local models, and more.
- Privacy and security: code is sent directly from your environment (CI/CD runner or local machine) to the LLM provider you explicitly configure; when using local models, code does not leave your network. Gito is designed as a stateless, client-side tool with a strict zero-retention policy, does not store, log, or retain code, and is fully open source and auditable.
- Universal: supports all major programming languages and frameworks.
- Comprehensive analysis: detects issues across security, performance, maintainability, best practices, and more.
- Consistent quality: no fatigue, no bias, consistent review quality every time.
- Easy to integrate: automatically review pull requests, post PR comments, and respond to maintainer comments through CI/CD workflows.
- Highly flexible: configure review rules, severity levels, and focus areas to build custom workflows.
Usage
Review pull requests via GitHub Actions
Create the .github/workflows/gito-code-review.yml file, and make sure to add LLM_API_KEY to the repository's GitHub secrets. Once done, PRs will automatically receive AI code review. You can also install Gito locally and run gito deploy in the repository root; the deployment wizard will guide setup and automatically generate or update the required workflow files, supporting GitHub Actions and GitLab CI. For GitLab, you can manually refer to the GitLab setup guide or workflow templates.Configuration.
Local Installation and Running Code Analysis
Using uvx skips the installation step (e.g., uvx gito.bot setup and uvx gito.bot review will install what is needed on demand). You can also install gito.bot with pip (requires Python 3.11 / 3.12 / 3.13), or download the Windows standalone installer (includes an executable that does not require Python, automatic PATH configuration, Start menu shortcuts, and easy uninstallation). After installation, run the one-time interactive setup wizard and enter the LLM configuration (API type, API key, etc.); the configuration is saved to ~/.gito/.env. If uvx is available, you can also run the setup command via uvx. Local analysis steps: go to the repository root, switch to the branch to be reviewed, and run the command; by default it compares the current branch with the repository's main branch, and files that have not been staged for commit will be ignored. See gito --help for details. Reviewing remote repositories is also supported.
Configuration
Gito uses a two-layer configuration model: environment configuration defines external resources and credentials, is machine-specific, and is not committed to version control; project configuration defines review behavior and can be shared within a team.
- Environment configuration: controls LLM inference and API keys, takes effect at the system level, and is configured through operating system environment variables or a .env file, with the default location being ~/.gito/.env. Gito uses ai-microcore to implement vendor-agnostic LLM access. In CI workflows, LLM settings are configured through workflow environment variables, and API keys use platform secret management (GitHub Secrets, GitLab CI Variables).
- Project configuration: supports placing .gito/config.toml in the project root for per-repository customization, using a layered override model (built-in default config.toml → project configuration), so you only need to specify the settings to change. You can run a command to generate a complete editable copy of the built-in defaults (creates .gito/config.toml, refuses to replace an existing configuration, and can be overridden with --force). You can configure review prompts, output templates, post-processing Python snippets, bot behavior (mention triggers, retries, comment handling), and pipeline integrations (Jira, Linear, etc.).
Integrations
Provides ready-to-use CI/CD workflows for Git platforms (such as GitHub and GitLab), supportingtriggering via PR comments, automatic review publishing, and PR lifecycle integration; platforms not in the list can be used directly through custom CI/CD pipelines or the CLI. Supports multiple LLM providers/runtimes and integrates issue trackers such as Linear and Atlassian Jira. It also supports generating documentation with Gito.
Known Limitations
When responding to GitHub PR comments, Gito cannot modify files inside .github/workflows (for example, "Gito fix issue 2"). This is a GitHub security restriction that prevents workflows from modifying other workflow files using the default GITHUB_TOKEN. Using a Personal Access Token (PAT) with workflow scope can bypass this restriction, but it is not recommended as a workaround because PATs have broader permissions, longer lifetimes, and are tied to personal accounts, making them less secure than the default GITHUB_TOKEN.
Other Information
The license is the MIT License.