GitHub logo

GitHub

Free

AI coding assistant for interactive codebase queries

FreeFree tier
Inputs: textOutputs: text
Type
Open Source

About GitHub

Cody is an open-source AI coding assistant that enables developers to interactively query their codebase using natural language. It leverages vector embeddings, chunking, and OpenAI's language models to provide context-aware answers. The tool monitors files in real-time, updating its knowledge base on every save, and supports both text chat and voice interaction via speech recognition and text-to-speech. Users can customize which files or directories to ignore for monitoring, making it suitable for projects of any size.

Key Features

Real-time file monitoring across project directories and subdirectories
Embedding-based knowledge base using OpenAI Embeddings
Interactive Q&A with natural language input
Voice interaction support via speech recognition and text-to-speech
Customizable ignore list for files and directories
Supports text and JSON file content for knowledge base

Pros & Cons

Pros
  • Continuously updates knowledge base on file saves for up-to-date responses
  • Supports both text and voice interaction modes
  • Customizable ignore list prevents monitoring of irrelevant or sensitive files
  • Leverages powerful OpenAI embeddings for accurate context matching
  • Open-source and free to use with your own OpenAI API key
Cons
  • Requires an OpenAI API key, which may incur costs
  • Dependencies include several libraries that must be installed
  • Limited to text and JSON file types for knowledge base
  • No built-in GUI; runs entirely in terminal/command line

Best For

Querying and navigating codebases using natural languageUnderstanding unfamiliar code sections quicklyAssisting with code review by asking specific questionsExploring dependencies and file relationships in projectsVoice-controlled code debugging and exploration

FAQ

How does Cody update its knowledge base?
Cody continuously monitors files in real-time and updates the knowledge base every time a file is saved.
Can Cody work with voice commands?
Yes, Cody supports a conversational mode with speech input/output using speech_recognition and gTTS.
What file types does Cody index?
Cody collects the contents of all text and JSON files in the project directory and subdirectories.
How can I exclude certain files or directories?
You can customize the ignore_list in the script to specify files or directories to exclude from monitoring.
Is Cody free to use?
Yes, Cody is open-source and free, but you need to provide your own OpenAI API key for the language model and embeddings.