Cody now has a mechanism for pulling in context from *outside* the codebase!
Introducing OpenCtx, a protocol for providing relevant technical context to humans and AI. This builds on Sourcegraph's foundation as the world's best code search and connects our code graph to entities like issues, designs, technical docs, production logs, how UI components are rendered, and beyond.
As AI advances, we think it's important to have an open specification of how context is provided and integrated. Think of this as an "LSP for technical context" that makes it possible to integrate data from many tools across a diverse set of vendors. It will make it much easier to surface relevant context wherever you need it to accelerate software development—while preserving the freedom to choose the best tool at every point in the software development lifecycle.
If you've ever wished you could jump immediately from a line of code to (a) the production logs that hit that line, (b) a rendering of the UI component implemented by it, (c) the PRs that touched it, (d) the design docs that mentioned it, (e) whatever other discussion or documentation is relevant in some way, then you've dreamed of the future that OpenCtx is seeking to realize.
We currently use OpenCtx in two ways at Sourcegraph: (1) as a experimental context provider for Cody, for context-aware AI code generation and (2) as annotations within source files that tie symbols in the code to the relevant technical context that lies outside of source code. We think (2) is as important as (1), because we believe human developers will remain the heart and soul of the software development process.
We will build *much* more on top of this protocol and look forward to building with our community to integrate many other tools into it, as well!