Cody
By Sourcegraph
Cody is an AI coding assistant by Sourcegraph that provides codebase-aware chat, autocomplete, and code editing by indexing an entire repository for context.
Definition
Cody is an AI coding assistant by Sourcegraph that provides codebase-aware chat, autocomplete, and code editing by indexing an entire repository for context.
Overview
Cody is designed to understand an entire codebase rather than just the file currently open, using Sourcegraph's code search and indexing technology to retrieve relevant files, functions, and definitions before generating a response — a pattern similar to retrieval-augmented generation applied specifically to source code. This lets it answer questions like "where is this function used" or "explain how this service handles authentication" with awareness of the surrounding project. Beyond chat, Cody offers inline autocomplete and commands for generating unit tests, documentation, and code fixes. It supports multiple underlying LLMs and integrates into popular editors, positioning it as a competitor to tools like GitHub Copilot, Tabnine, and Codeium in the AI coding assistant space.
Key Features
- Whole-codebase context via Sourcegraph's code search indexing
- Chat interface for asking questions about a repository
- Inline code autocomplete
- Automated unit test and documentation generation
- Support for multiple underlying LLM providers
- IDE integrations (VS Code, JetBrains, and others)