AI that knows your entire codebase
Cody is a free and open-source AI coding assistant that can write, understand and fix your code. Cody is powered by Sourcegraph’s code graph, and has knowledge of your entire codebase. Install Cody to get started with free AI-powered autocomplete, chat, commands, and more.
Cody autocompletes single lines, or whole functions, in any programming language, configuration file, or documentation. It’s powered by latest instant LLM models, for accuracy and performance.
Ask Cody questions in the chat view, or inline with code, and it will use Sourcegraph’s code graph to answer using knowledge of your entire codebase.
For example, you can ask Cody:
Cody has quick commands for common actions, such as adding code documentation, explaining code, generating unit tests, and detecting code smells.
There's also experimental support for adding your own custom commands, defined as JSON within your repository:
Support for Anthropic Claude, Claude 2, and OpenAI GPT-4/3.5, with more coming soon.
Cody is currently in beta, and includes free LLM usage for individual users on both personal and work code. Fair use limits apply.
Cody is powered by Sourcegraph’s code graph, and uses context of your codebase to extend its capabilities. By using context from the entire repository, Cody is able to give more accurate answers and generate idiomatic code.
Cody indexes your entire repository and generates embeddings, which are a vector representation of your entire codebase. Cody queries this embeddings database on-demand, and passes that data to the LLM as context. Embeddings make up one part of Sourcegraph’s code graph.
Embeddings for free Cody users are generated via the Cody desktop app. For Cody Enterprise customers the embeddings are generated by your Sourcegraph Enterprise instance.
Cody Enterprise requires the use of a Sourcegraph Enterprise instance, and gives you access to AI coding tools across your entire organization. Contact us to set up a trial of Cody Enterprise. If you’re an existing Sourcegraph Enterprise customer, contact your technical advisor.
Cody for VS Code is open source (Apache 2), and available in the sourcegraph/cody repository on GitHub.
See https://cody.dev/ for demos, information and more.