Framework · Coding Agents

Sourcegraph Cody

Sourcegraph's enterprise AI coding assistant: chat, completions, and edits backed by Sourcegraph's search-API context fetching across local and remote codebases, with agentic context fetching and local-MCP tool integration.

Description

Cody is an AI coding assistant available across VS Code, JetBrains, Visual Studio, the Sourcegraph web app, and a CLI. Its differentiator is context: Cody pulls from local and remote codebases via Sourcegraph's Search API. Agentic Context Fetching iteratively gathers context using Code Search, Codebase File, Terminal, Web Browser, and MCP tools, refining what it knows before responding. Cody supports local MCP servers (Tools capability only). As of 2025-07-23 Sourcegraph deprecated Cody Free/Pro and Enterprise Starter; only Cody Enterprise remains, with Amp as a separate consumer product.

Solution

Retrieval-augmented agent loop: user asks; Cody runs agentic context fetching that combines Sourcegraph Search, codebase files, terminal output, web browsing, and MCP tools, iteratively refining context until comprehensive; the LLM then produces a chat answer or an edit. Tool calls (especially terminal) require explicit user consent and a trusted workspace.

Primary use cases

  • enterprise codebase chat with remote+local context
  • code completions and customizable prompts inside the IDE
  • agentic context fetching for accurate retrieval
  • MCP-extended internal tooling (local servers)
  • multi-repo question answering via Sourcegraph search

Open the full interactive page

Diagram, neighbourhood map, code examples, related patterns and full provenance.

Related