Skip to content

Qodo Integration

Overview

Qodo (formerly Codeium) is a comprehensive AI-powered tool for automated pull request analysis, feedback, suggestions, and more. It helps development teams streamline their code review processes and maintain high code quality.

Key Features

  • Automated PR Analysis: Detailed code review comments
  • Code Suggestions: Intelligent code improvement recommendations
  • Security Scanning: Identifies potential vulnerabilities
  • Integration with CI/CD: Works with your development pipeline
  • Performance Analysis: Identifies potential bottlenecks

Use Cases

  • Streamlining code review processes
  • Maintaining consistent code quality standards
  • Identifying security vulnerabilities early
  • Reducing technical debt in legacy code
  • Onboarding new developers to existing codebases

Setup Instructions

There are several agentic variations available for Qodo, see here. We will use the Qodo Merge (Open-Source PR Agent) as an example here.

  1. Follow the setup instructions for the Qodo Merge agent and set it up for Github/Gitlab. You can choose to self-host the agent or use the hosted version.

  2. Configure with:

    • configuration.toml
    [config]
    model="<model_name>"
    fallback_models=["<model_name>", "<model_name>", "<model_name>"]
    custom_model_max_tokens=<max_tokens>
    • .secrets.toml
    [openai]
    key = "RELAX_API_KEY"
    api_base = "https://api.relax.ai/v1"

    For more details refer to the Qodo Model Configuration documentation.

  3. Now test the integration by invoking different tools from the CLI. For example:

    python -m pr_agent.cli --pr_url=<pr_url> review

Advanced Features

Qodo offers several powerful tools:

  • PR Summary: Generates concise summaries of changes
  • Code Explanation: Explains complex code sections
  • Test Generation: Suggests unit tests for code changes
  • Documentation Updates: Identifies needed documentation changes
  • Merge Confidence: Provides a confidence score for merging

Resources