aica logo

aica

by dotneet

aica is a customizable, open-source, and platform-independent AI code analyzer. It provides AI-powered code review, commit message generation, and pull request creation, addressing the limitations of existing tools.

View on GitHub

Last updated: N/A

What is aica?

aica is an AI-powered code analysis tool designed to be customizable, open-source, and platform-independent. It aims to provide AI-driven code review, commit message generation, and pull request creation capabilities.

How to use aica?

  1. Build and install the binary using bun build --compile. 2. Set up your GitHub token and LLM provider (Anthropic, OpenAI, or Gemini) through environment variables or aica.toml. 3. Configure aica.toml for customization. 4. Use the aica command with various subcommands like review, agent, summary, commit, and create-pr to perform code analysis, generate commit messages, and create pull requests.

Key features of aica

  • AI Coding Agent

  • AI Code Review

  • MCP(Model Context Protocol) support

  • Automatic knowledge retrieving for code review

  • Generate summary of changes

  • Generate commit message

  • Create pull request with AI-generated title and body

  • Prompt customization

  • Slack notification

  • GitHub Actions integration

Use cases of aica

  • Automated code review to identify potential issues and improve code quality.

  • Generating commit messages to streamline the commit process.

  • Creating pull requests with AI-generated titles and bodies to save time and effort.

  • Using the AI agent to execute tasks based on prompts.

  • Integrating with GitHub Actions for automated code analysis and review.

FAQ from aica

How do I configure aica?

You can configure aica by creating a aica.toml file and placing it in the root directory of the repository, ${HOME}/.config/aica/, or ${GITHUB_WORKSPACE}/.

Which LLM providers are supported?

aica supports Anthropic, OpenAI, and Gemini. You need to set the corresponding API keys and models in your environment variables or aica.toml.

How do I use the AI agent?

Use the aica agent command followed by a prompt or an instruction file. Be cautious as it can potentially break your file system.

How do I integrate aica with GitHub Actions?

Refer to the wiki page (https://github.com/dotneet/aica/wiki/GitHub-Actions-Settings) for detailed instructions on setting up GitHub Actions.

How can I customize the context for code analysis?

.cursorrules and .clinerules are automatically added. You can customize the context further by configuring the [rules] section in aica.toml. Additionally, .cursor/rules/*.mdc files are supported by default.