AI code assistant CLI tool for code suggestions, refactoring, and reviews
Top 81.1% on sourcepulse
Codai is an AI-powered CLI tool designed to assist developers with code suggestions, refactoring, and reviews by understanding the full context of a project. It supports multiple LLM providers and offers two primary methods for context management: Retrieval-Augmented Generation (RAG) and Tree-sitter-based summarization, aiming to provide accurate, token-efficient responses.
How It Works
Codai employs RAG by embedding the entire codebase to retrieve relevant information based on user input, sending only necessary context to the LLM for efficient and accurate suggestions. Alternatively, it uses Tree-sitter to summarize the project's full context, sending code signatures and partial implementations to the LLM, which saves tokens but may use slightly more than RAG.
Quick Start & Requirements
go install github.com/meysamhadeli/codai@latest
CHAT_API_KEY
and optionally EMBEDDINGS_API_KEY
.codai-config.yml
or command-line arguments.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
2 months ago
1 day