Sourcegraph Cody
Codebase AICodebase-aware AI assistance inside Sourcegraph's broader code intelligence layer for developers and coding agents, with enterprise-led pricing and AI-feature credits.
About Sourcegraph Cody
AI coding assistant with full codebase context. Understands your entire repository for accurate, context-aware code suggestions and answers.
Key Features
- βFull Codebase Context: Understands your entire repository structure, not just the current file.
- βIntelligent Code Completion: Context-aware autocomplete that considers your project's patterns and style.
- βCode Explanation: Get clear explanations of complex code, functions, and entire modules.
- βAutomated Tests: Generate unit tests and test cases based on your code.
- βCode Generation: Create functions, classes, and entire modules with natural language prompts.
- βRefactoring Assistance: Get intelligent suggestions for improving code quality and structure.
- βMulti-Repository Support: Works across multiple repos and monorepos.
- βMultiple model support: Sourcegraph can expose current supported model choices through enterprise AI features and Cody workflows, with availability changing over time.
Pricing
| Plan | Price | Key Features |
|---|---|---|
| Cody individual plans | Discontinued | Cody Free and Pro individual plans were discontinued in 2025. |
| Sourcegraph Enterprise | Starting at $16K | Enterprise plan includes credits for AI features and scales with team size. |
Official pricing sources: sourcegraph.com Β· sourcegraph.com Β· sourcegraph.com
Some pricing plans have not been verified against official sources recently. Confirm on the official pricing page before purchasing.
Before You Pay
Decision check- βCody Free and Pro individual plans were discontinued in 2025, so historical $9 Pro pricing should not be treated as a current purchase option.
- βCurrent public Sourcegraph pricing is enterprise-oriented; evaluate the broader code intelligence platform and AI-feature credits rather than Cody as a standalone personal subscription.
- βConfirm repository scale, deployment model, supported integrations, and expected AI-feature credit usage before comparing Sourcegraph with lightweight editor assistants.
- βTeams migrating from historical Cody individual workflows should separate personal assistant expectations from enterprise search, code intelligence, and governance requirements.
Pros & Cons
β Pros
- β True full-repository understanding
- β Contextually accurate suggestions
- β Excellent for large codebases
- β Integrates with multiple editors
- β Enterprise pricing page includes credits for AI features
β οΈ Cons
- β οΈ Initial indexing can be slow for huge repos
- β οΈ Public pricing currently emphasizes Enterprise rather than individual Cody tiers
- β οΈ Requires internet for AI features
- β οΈ Less aggressive autocomplete than some competitors
Use Cases
Large Codebase Q&A
Ask architecture and implementation questions across a large repository when the answer depends on relationships between files, symbols, and modules.
Repository-Aware Refactoring
Use codebase context to identify affected areas before changing shared interfaces, moving logic, or refactoring code used across multiple packages.
Test and Code Explanation Workflows
Explain unfamiliar modules and generate candidate tests using repository context, then review the output against the projectβs existing test patterns.
Alternatives
Frequently Asked Questions
How does Cody understand my entire codebase?
Cody builds an index of your entire repository, understanding the relationships between files, functions, and modules. When you ask a question or request code, it references this index to provide contextually accurate answers that account for your project's structure and dependencies.
Is Cody free?
No current individual Cody Free or Pro plan should be treated as available for new purchase. Sourcegraph discontinued the individual Cody plans in 2025; current public pricing focuses on the Enterprise platform and AI-feature credits.
What IDEs does Cody support?
Cody has native extensions for VS Code, JetBrains IDEs (IntelliJ, PyCharm, WebStorm, etc.), and Neovim. It also offers a web interface for code review and exploration directly in your browser.
Can Cody generate tests?
Yes, Cody can generate unit tests and test cases based on your existing code. It understands your testing framework and can create comprehensive tests that cover edge cases and typical usage patterns.