Features
Search, navigate, and automate code faster.
Chat
Chat directly with AI to ask questions about your code, generate code, and edit code. Cody has context of your open file and repository by default, and you can use '@' to add context on specific files, symbols, remote repositories, or other non-code artifacts.
Ask about your code
Use "@" + a repository, file, line range, or symbol to ask questions about your codebase. Generate code using context @-mention files or symbols to use that code as context. Cody will use it to generate contextually relevant code.
Smart Apply
When Cody suggests code in chat, hit "Apply" to make those changes directly in your files.
Inline edits
Highlight code, hit the edit hotkey, and describe a change. Cody will generate a diff for the change in seconds.
Choose your favorite model
Choose from model options optimized for speed versus accuracy.
Reference development artifacts and the web
@-mention web URLs to pull live information like docs. You can also connect Cody to OpenCtx to @-mention non-code artifacts like Google Docs, Notion pages, Jira tickets, and Linear issues.
Run offline (Experimental)
Connect to Ollama to run entirely offline. You can even code using AI on an airplane.
Prompts
Automate key tasks in your workflow with premade and customizable prompts. Any common query or task can be built into a prompt to save and share with your team.
Generate unit tests
Generate unit tests for your code selection, adding to your existing test file or creating a new one, with consideration for your existing tests and test framework.
Document code
Generate documentation for any selection of code (from symbols to entire files), even for legacy code you didn't write yourself.
Find code smells
Analyze a code selection and provide suggestions for improving readability, maintainability, performance, or security.
Prompt library
Create and save prompts for reuse, then share them with your teammates via the Prompt Library.
Inline edits
Highlight code, hit the edit hotkey, and describe a change. Cody will generate a diff for the change in seconds.
Choose your favorite model
Choose from model options optimized for speed versus accuracy.
Autocomplete
Sourcegraph predicts what you're trying to write before you type it. It makes single-line and multi-line suggestions as you type, using the context of the code around your cursor to make accurate suggestions.
Smart predictions
Cody predicts your next move as you type, suggesting code (like function arguments) without needing to look them up.
Natural language code generation
Type out a comment in natural language. Cody will suggest how to implement what you commented.
Search
Search all of your code in one place. Sourcegraph indexes all your code hosts to a single server that you can search and navigate from the web.
Multi-repo, multi-code host search
See your code from a single search bar, across every repository and every code host.
Shareable web links
Share exact files and lines of code with teammates using shareable web URLs.
Branch search
Search across all repositories, branches, forks, and even archived repositories.
Diff and commit search
Use diff and commit searches to find specific changes to your codebase. Filter by author and date.
Search jobs
Run exhaustive searches in the background for sensitive tasks like finding tokens & secrets.
Code monitoring
Proactively monitor changes to your codebase. Get notified via Slack, email, or webhook.
Get Cody for yourself
Use Cody for free in your IDE, no credit card required.
Get Cody for your team
Cody Enterprise provides additional security, scalability, and control for your organization. Unlimited usage and context search for your entire codebase.