Sourcegraph Cody
Codebase-aware chat, search, completions, and enterprise context
⌨️ featured in the best vibe coding tools
Do not mistake the interface for the product. Sourcegraph Cody's durable value is model, context, integration, which a solo one-shot build cannot reproduce responsibly. The prompt therefore builds only the closest honest personal consolation tool.
Build verification: not recorded. How we judge buildability
What you give up
- enterprise policy, telemetry, and support
- frontier coding model quality
- large-context infrastructure
- IDE-wide polish and latency
Why people still pay
Sourcegraph Cody: Developers pay for reliable context assembly, fast models, editor integration, evaluations, and safe handling of complex repositories.
Your build guide
The stack, security requirements, and agent rules for a focused replacement.
Before you start
- Python 3.12
- Git
- OpenAI API key in .env
- Explicit README warning that this is a consolation build, not a production replacement
Use these project rules and optional skill references alongside the prompt. Review each skill before adding it to your agent; the AGENTS.md export includes the same guidance.
Project rule, data: Model selected repositories or projects, operations, results, revisions, and run logs; keep stable source IDs and timestamps.
Project rule, behavior: For AI code assistant, select one repository and record its branch, HEAD revision, allowed tools, and agent run ID.
Project rule, recovery: A failed tool call or interrupted run must retain the branch and trace; no file outside the selected repository may change.
Implementation plan
Phase 1, architecture and data
Use exactly this stack: Python 3.12 + Typer + SQLite. Model selected repositories or projects, operations, results, revisions, and run logs; keep stable source IDs and timestamps.
Phase 2, implement
For AI code assistant, select one repository and record its branch, HEAD revision, allowed tools, and agent run ID.
Phase 3, implement
Make changes on a branch with an inspectable diff and record each command, result, and approval.
Phase 4, review and output
Run the project’s verification command and show the diff plus final status before merge or export.
Phase 5, recovery and acceptance
Verify this invariant with a saved fixture: A failed tool call or interrupted run must retain the branch and trace; no file outside the selected repository may change. State the practical limit: enterprise policy, telemetry, and support.
Build me a focused AI code assistant workflow for the personal core of Sourcegraph Cody. Requirements: - Use exactly this stack: Python 3.12 + Typer + SQLite. Model selected repositories or projects, operations, results, revisions, and run logs; keep stable source IDs and timestamps. - Paid product context: Codebase-aware chat, search, completions, and enterprise context. Build only this DIY scope: Build a repository-local AI code assistant assistant that indexes one codebase, calls one model, proposes diffs, runs tests, and records every change. - For AI code assistant, select one repository and record its branch, HEAD revision, allowed tools, and agent run ID. - Make changes on a branch with an inspectable diff and record each command, result, and approval. - Run the project’s verification command and show the diff plus final status before merge or export. - Use a CLI with a dry-run or preview command and an explicit output path. Required input or access: Git; OpenAI API key in .env. Keep credentials in .env. - Acceptance: with one labelled sample, show the input, saved intermediate state, and exported result; verify this invariant: A failed tool call or interrupted run must retain the branch and trace; no file outside the selected repository may change. - Out of scope: enterprise policy, telemetry, and support; frontier coding model quality. Keep this a personal, inspectable workflow. - Include a README with setup, a sample input, required keys or permissions, data location, and the supported scope.
$ open in your agent (prompt prefilled, you press enter), copy the prompt or copy AGENTS.md · generated from this app's build plan
prompt copied. want to know what dies next week?
new verdicts + top votes, weekly. free. one-click out.
Alternatives to building your own
all 5 free alternatives to Sourcegraph Cody →· no votes, no pay-to-list · just what's real
Sourcegraph Cody pricing
| plan | monthly | annual (per mo) | what you get |
|---|---|---|---|
| cody enterprise | — | — | Custom users and pooled AI credits; exact numeric credit allowance is not publicly stated.Sourcegraph's broader Enterprise platform advertises a $16,000 minimum contract, but the billing period and Cody-specific allocation are not sufficiently explicit to place in a monthly or annual price field. |
free tierno free tier; Cody Free and Cody Pro were discontinued on July 23, 2025
billingcustom Enterprise contract; no self-serve monthly or annual price
hidden costsOnly an Enterprise contract remains; AI-credit volume and add-ons are custom. Credits are pooled and can roll into renewal, but the platform contract floor can dwarf the former individual subscription.
pricing sources checked 2026-08-14 · pricing source ↗
Questions about Sourcegraph Cody
Can you build your own Sourcegraph Cody with AI?
A full replacement is not the recommended project. Do not mistake the interface for the product. Sourcegraph Cody's durable value is model, context, integration, which a solo one-shot build cannot reproduce responsibly. The prompt therefore builds only the closest honest personal consolation tool.
What does the Sourcegraph Cody build prompt cover?
The prompt starts with this scope: Build a repository-local AI code assistant assistant that indexes one codebase, calls one model, proposes diffs, runs tests, and records every change. Full-product capabilities excluded from the comparison include: enterprise policy, telemetry, and support; frontier coding model quality; large-context infrastructure. Follow the implementation plan and its prerequisites before expanding the build.
How do I use the prompt, AGENTS.md and agent skills?
Start with the Sourcegraph Cody prerequisites and stack, then copy the prompt into your coding agent. Save the project rules as AGENTS.md in the project root. Linked skills are optional packages or source instructions for specific tasks; review their current contents and install only those matching the chosen stack. A skill does not supply API credentials or verify the finished app.
How long will this Sourcegraph Cody project take?
The catalogue estimate is not a true replacement; consolation build in one to two days for the limited scope. Setup, integration approvals, debugging, deployment and ongoing maintenance can add time. This is an estimate, not a delivery guarantee.
What would I give up by replacing Sourcegraph Cody?
enterprise policy, telemetry, and support; frontier coding model quality; large-context infrastructure; IDE-wide polish and latency. Sourcegraph Cody: Developers pay for reliable context assembly, fast models, editor integration, evaluations, and safe handling of complex repositories.
What can I use instead of building Sourcegraph Cody?
OpenCode: A fast local coding agent with no loyalty to any model vendor. Cline: A codebase-aware agent in your editor; you bring the model and the indexing patience. Aider: It maps and edits a repository from the terminal; cross-company code search is somebody else's problem. Compare all listed options at https://howtovibecodeit.dev/sourcegraph-cody/alternatives. Check each option's license, hosting needs and feature limits.