Learn how Cody understands your entire codebase and enhances your development process with features like autocomplete and commands.
Beta Cody is currently available in beta for all users.
Cody is a free and open-source AI coding assistant that writes, fixes, and maintains your code. Cody understands your entire codebase by leveraging the power of Code Graph to gather context, which assists you in writing accurate code.
Cody connects seamlessly with codehosts like GitHub, GitLab and IDEs like VS Code and JetBrains. Once connected, Cody acts as your personal AI coding assistant, equipped with a comprehensive understanding of the following three crucial elements:
- Your entire codebase
- Vast knowledge of open source code
- Extensive training data for code understanding and problem-solving
You can start using Cody with one of the following clients:
-
Install Cody's free and open source extension for VS Code.
-
Install Cody's free and open source extension for JetBrains.
-
Install Cody's free and open source extension for Neovim.
-
Use Cody in the Sourcegraph web app.
Free desktop app to try Cody with your local codebase.
-
Get in touch with our team to try Cody for Sourcegraph Enterprise.
Cody's main features include:
Feature | Description |
---|---|
Autocomplete | Cody makes context-based code autocompletions. Cody can autocomplete single lines or whole functions in any programming language, configuration file, or documentation. |
Chat | 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 codebase. |
Commands | Cody offers quick ready-to-use commands for common actions, such as adding code documentation, generating unit tests, and detecting code smells. |
Cody collects and uses data in the following ways:
- Prompts and responses: When you use Cody, Sourcegraph collects your prompts and responses to provide the service. For individuals using Cody via Sourcegraph.com, Sourcegraph may use your prompts and responses to enhance the user experience, but Sourcegraph does not use any of your data to train models.
- Usage data and feedback: Sourcegraph also collects usage data and feedback to improve the user experience.
Read more about Cody Usage and Privacy policy here →
Cody is compatible to use with the other Sourcegraph products, like Code Search. You can use Cody's chat to ask questions about your codebase. When you run any search query, you'll find an Ask Cody button that takes you to Cody's default chat interface that you can use to ask questions about the codebase.
On a free tier, you can use Cody chat with Code Search on ten public and one private repository. For enterprise users, Cody Chat extends to repositories indexed by your site administrator.
Read more in the Cody FAQs to learn more about such queries →
If you have any questions regarding Cody, you can always ask our community on GitHub discussions, Discord, or create a post on X.
For more information on what to do next, we recommend the following resources: