gitmyhub

cody-public-snapshot

TypeScript ★ 3.8k updated 10mo ago ▣ archived

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.

This is a public snapshot of Cody, an AI coding assistant built by Sourcegraph. The codebase moved to a private repository at some point, so what you see here is a frozen copy of the code as it existed just before that transition. If you want to work with the Apache-licensed version specifically, the README points to the last commit under that license.

Cody itself is a plugin for code editors, available for VS Code and JetBrains IDEs as well as through a web interface. It connects to AI language models and uses information from your actual codebase to assist with writing, understanding, and fixing code. Rather than just responding to general questions, it pulls in context from your files and project structure so the answers are relevant to what you are actually working on.

The main things it can do: answer questions about your codebase using a chat interface, suggest code completions as you type, let you ask it to rewrite or fix a specific section of code inline, and run quick prompts like explaining a snippet or generating unit tests for it. You can point it at specific files using @-mentions in the chat. It works with several different AI models including Claude, GPT-4o, Gemini, and Mixtral, and the free tier includes access to some of those models with usage limits.

For individual use, a free Sourcegraph account is required because the service relies on API access to Anthropic and OpenAI on your behalf. Larger teams with needs around dedicated infrastructure or audit logs can upgrade to an enterprise plan. Sourcegraph customers running their own self-hosted instances can also connect the editor extensions to those.