AI that knows your entire codebaseCody 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. AutocompleteCody 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. ![]() ChatAsk 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:
![]() Built-In CommandsCody has quick commands for common actions, such as adding code documentation, explaining code, generating unit tests, and detecting code smells. ![]() Custom CommandsThere's also experimental support for adding your own custom commands, defined as JSON within your repository: ![]() Swappable LLMsSupport for Anthropic Claude, Claude 2, and OpenAI GPT-4/3.5, with more coming soon. Free UsageCody is currently in beta, and includes free LLM usage for individual users on both personal and work code. Fair use limits apply. Programming LanguagesCody works for any programming language because it uses LLMs trained on broad data. Cody works great with Python, Go, JavaScript, and TypeScript code. Code GraphCody 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. For example:
EmbeddingsCody 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 EnterpriseCody 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. FeedbackDevelopmentCody for VS Code is open source (Apache 2), and available in the sourcegraph/cody repository on GitHub. More InformationSee https://cody.dev/ for demos, information and more. |