Impact of AI Assistants: Sourcegraph’s Cody and the Future of Coding

Shawn Charles🎤🔥
7 min readJul 2, 2023

--

Photo by Andy Kelly on Unsplash

In the ever-expanding cosmos of coding, one star shines brighter than the rest, guiding developers on their journey through the intricate galaxies of codebases. This guiding star is none other than Sourcegraph, a trailblazing company that has taken up the mantle to make coding more approachable, efficient, and enjoyable for developers around the globe.

Sourcegraph is more than just a company; it’s a revolution in the world of coding. Its mission is to simplify the process of reading, writing, and fixing code, even in the most complex codebases. This mission is fueled by the conviction that AI is the future of coding, and Sourcegraph is at the forefront of this exciting new era.

The centerpiece of Sourcegraph’s innovative offerings is Cody, an AI coding assistant that’s transforming the way developers interact with code. Cody is not just a tool; it’s a reliable companion that assists developers in writing code, identifying and fixing bugs, and maintaining codebases. By utilizing the code graph to understand your entire codebase, Cody helps developers concentrate on what they do best: writing and shipping code. This means that even in the most complex codebases, Cody can provide context-aware assistance, making coding a breeze for developers.

But the innovation doesn’t stop there. Sourcegraph also offers a powerful Code Search tool that enables developers to search their entire codebase — across all code hosts and repositories, regardless of scale — in one place. This tool is a game-changer for developers who need to onboard to new codebases, understand code faster, and find & fix security risks.

The impact of Sourcegraph is not just theoretical; it’s tangible and far-reaching. With over 1.8 million engineers using Sourcegraph, it’s clear that the company’s offerings are resonating with the developer community. To see how Sourcegraph is making a difference, check out these case studies showcasing how innovative companies are leveraging Sourcegraph’s tools.

Photo by Frans Daniels on Unsplash

Deep Dive into Cody

In the dynamic world of coding, a new ally has emerged, reshaping the way developers interact with code. This ally is none other than Cody, Sourcegraph’s AI coding assistant. Cody is not just a tool; it’s a companion that’s revolutionizing the coding experience for developers.

Designed to answer code questions and write code by reading your entire codebase and the code graph, Cody provides context-aware assistance, making it an invaluable asset for developers navigating through complex codebases. But Cody’s capabilities extend far beyond just providing assistance.

One of Cody’s standout features is its ability to explain code. Whether you need a high-level overview or a detailed breakdown, Cody can explain what code is doing. This feature, which you can learn more about in the Cody docs, is invaluable for developers who need to understand unfamiliar code or want to gain a deeper understanding of their codebase.

Cody also excels at identifying code smells, potential bugs, and unhandled errors. This feature allows Cody to act as a pair programmer, pointing out issues in selected code such as magic numbers, unhandled edge cases, or unclear variable names, with suggestions to fix those issues. This proactive approach to coding helps developers maintain clean, efficient codebases.

But Cody’s capabilities don’t stop there. It can also reference recent diffs to tell you about recent changes to your code. Whether you need a summary of changes to an entire repository over the last day or week, or a summary of the changes specific to a selected file, Cody has you covered.

For those interested in leveraging Cody’s capabilities in a corporate setting, Sourcegraph offers Cody for Enterprise, which provides context-aware answers based on your own private codebase. And if you’re inspired by the work Sourcegraph is doing and want to be a part of it, check out their careers page for current job openings.

Photo by Mimi Thian on Unsplash

Sourcegraph’s Impact on the Developer Community

Sourcegraph is more than just a company; it’s a movement that’s reshaping the landscape of the developer community. With its innovative tools and progressive approach, Sourcegraph is redefining how developers code and engage with codebases.

A key player in Sourcegraph’s transformative impact is Cody, their AI coding assistant. Cody is not just a tool; it’s a game-changer that’s revolutionizing the coding experience for developers. With features like code explanation, code smell detection, and recent diff referencing, Cody is streamlining the coding process, making it more efficient and enjoyable for developers.

Beyond its innovative tools, Sourcegraph is also breaking down geographical barriers by fostering a fully remote work culture. This approach not only allows Sourcegraph to tap into a global talent pool but also creates economic opportunities worldwide. By embracing remote work, Sourcegraph is championing a more inclusive and diverse workforce.

Perhaps the most significant testament to Sourcegraph’s impact is its active role in the developer community. Sourcegraph is not just building tools for developers; it’s building with developers. This collaborative spirit is evident in their initiatives like the Cody themed mechanical keyboard giveaway and the recent integration of Cody with GitLab, which further extend the reach and utility of their AI coding assistant.

By fostering a sense of community and collaboration among developers, Sourcegraph is not just changing the way developers code; it’s changing the way developers connect.

Photo by Romina Ahmadpour on Unsplash

Cheating is All you Need

Large Language Models (LLMs), such as those described in the seminal paper Attention is All You Need, are revolutionizing software engineering. These AI models, trained on vast amounts of data, can generate human-like text, making them powerful tools for a variety of applications. In the realm of software engineering, LLMs are being leveraged to create coding assistants capable of reading, explaining, writing, and autocompleting code, diagnosing issues, and even performing arbitrary IDE tasks.

The true potential of LLMs, however, is unlocked when they have access to a data moat. This term refers to exclusive access to specific data, which is crucial for populating the context window — a small “cheat sheet” of information passed along as part of your query to the LLM. The more relevant the data fed into this context window, the better the output of the LLM.

This is where Sourcegraph, a powerful code intelligence platform, shines. Over the past decade, Sourcegraph has been building a platform that can provide the necessary data to populate the context window. It’s universal, scalable, precise, and open, making it an ideal companion for LLMs. With Sourcegraph, developers can build a coding assistant that understands their code and can perform a wide variety of tasks to enhance productivity.

The future of software engineering is already here, and it’s being shaped by LLMs and tools like Sourcegraph. To get a glimpse of this future, check out this demo of a coding assistant built at Google. For a deeper dive into the capabilities of Sourcegraph, take a look at the first version of their platform.

In the ever-evolving landscape of software development, AI coding assistants are making a significant impact. These advanced tools are not just assisting developers but are reshaping the entire development process. A prime example of this is Sourcegraph’s AI coding assistant, Cody.

In the blog post, All You Need Is Cody, Stevey delves into how Cody is revolutionizing the software development process. This post is the third episode of Stevey’s “Cheating With Cody” series and provides an in-depth look into the capabilities and potential of AI coding assistants.

Sourcegraph Drake meme

Sourcegraph’s role in this revolution

Another significant advancement in this field is the enhancement of code ownership with inference. Sourcegraph has introduced a feature that allows you to assign file and repository ownership directly from the Code Search interface. This feature, discussed in detail in the blog post Boosting code ownership with inference, also provides signals, such as recent contributors, to help infer file ownership, saving developers valuable time.

The integration of AI coding assistants with other tools is also a noteworthy development. For instance, Cody now integrates with GitLab, allowing GitLab customers to leverage Cody to tap into the full knowledge of their codebase, regardless of its size, through a simple chat interface.

These advancements highlight the transformative potential of AI coding assistants in the software development industry. They offer a glimpse into a future where AI assists developers in writing better code, faster, and with fewer errors.

Thank you for reading. Please consider following the writer and this publication. If you enjoyed this and would like more, you can connect with Shawn online, they also have a newsletter, an online shop, or you can buy them a sandwich.

Thank you again for reading.

--

--

Shawn Charles🎤🔥

Software Engineer Building a Community of Software Engineers and Tech Professionals