Back to Resources

CUSTOMER STORIES

Cody + Leidos: Maximizing efficiency with heightened security in the AI race

Leidos logo

Leidos is a Fortune 500 innovation company rapidly addressing the world's most vexing challenges in national security and health. Leidos collaborates to create smarter technology solutions for customers in heavily regulated industries, from healthcare and aviation to government and defense.

75% reduction in time spent answering questions

Senior Leidos engineers reduced time spent answering teammates' questions from 8 hours per week to 2 hours per week thanks to the “Ask Cody first” policy.

50% reduction in time spent reading and orienting on existing legacy code

In one case, a single architect was able to use Cody to “brainstorm” a solution to a specific problem instead of setting up a meeting with other architects.

Value-add time on task tripled (coding, writing tests, reviewing others' code)

This was possible due to time reduction in other value-detracting tasks (helping others, reading, documentation).

Try Sourcegraph on your code

Experience code intelligence with a free trial for you and your team, or search millions of open source repositories.

Meet with a product expert

With the advance of AI toward the end of 2022, Leidos wanted to stay ahead of the curve. AI's potential was incredibly promising: Could it help them continue honing their technical expertise even more? Support them in helping customers adopt and use the newest technology to their advantage? Ensure digital modernization for even their most high-security customers? Rob Linger, AI Software Architect at Leidos, expanded on how they vetted AI coding assistants and the impact Cody is having on their organization and their customers.

Leidos' AI Initiative

Before choosing a solution, they needed to tackle three key hurdles:

  1. Security: What would the coding assistant do with their data? Where would their information go? How, if at all, could the AI coding assistant protect their data from unnecessary and potentially risky exposure? Given Leidos' clientele across government and defense industries, security was the absolute highest priority.
  2. LLM lock-in: Many solutions confine you to whatever LLM they're using, even though generative AI is constantly evolving — and quickly. How could Leidos have more flexibility to iterate and keep up with the changing landscape?
  3. Context: Legacy code and massively complex systems are virtually impossible for any engineer to fully "know." Therefore, context is one of the most needed capabilities and not many AI coding assistants are up to the task. What one gets out of a coding assistant is only as good as the prompt and whatever other context it has. Which solution could “get to know” Leidos the best?

Leidos was committed to getting the ideal coding assistant into the hands of all of their developers, making their jobs easier and improving their mission outcomes for customers.

Why Cody?

Leidos began with an analysis of current alternatives. What coding assistant could meet Leidos' remarkably high standards and get ahead of their customers' needs—nearly all with information security requirements ranging from sensitive to the highest levels of classification.

They considered a broad list of solutions, from the biggest names on the market to smaller, emerging competitors. Some were easy to eliminate due to a lack of security and privacy.

Sourcegraph is staying ahead of the wave.

Rob Linger,AI Software Architect at Leidos

Leidos saw huge potential in Cody's context, something they found lacking in alternative solutions. Per Linger, “we noticed very quickly that the context many AI coding assistants pulled from was very limited. For the most part, it was your open tab in the editor, and that was it. But when you're working on a software development project of any type that's even slightly more complex, you're going to run into instances where you need to import data from another project or repo.”

And while other solutions don't have nearly enough technical documentation, Cody has code repos Leidos can sift through. It's much more transparent and open-source, offering a window into how Sourcegraph communicates with the LLMs.

With Cody, Leidos isn't held to a specific LLM. “Generative AI is a fast-moving field, and the best model that's out there today may not be the best model tomorrow,” says Linger. “Something better could come out tomorrow. With a lot of solutions, you're locked into an LLM and putting a lot of faith in that model to keep up with the pace of change. Using Cody means we can avoid that LLM lock-in.”

Ultimately, Cody empowers Leidos to focus on the work that matters most, allowing it to better serve its customers. “We have the freedom to move at the pace our customers need. That's invaluable.”

Results

Leidos is using Cody in a few specific ways:

  1. For its own research and development – Leidos invests over $130M in research and development. Software is critical to delivering nearly all capabilities to their customers, so the less time spent reading, interpreting and getting common software code elements to work, the more time spent building the actual solutions and technology advancements their customers need.
  2. To improve its products available to customers – in many cases, Leidos is hired to deliver solutions to the customer. The faster Leidos builds and advances those solutions, the greater their overall ability to be their customers' go-to provider and succeed as a business.
  3. To amplify existing contracts already using Cody – Many Leidos customers aren't able to invest or bring in this kind of technology on their own; they don't have the budgets or the acquisition pathways to invest or scale like Leidos can. Leidos constantly looks to transition new technology solutions developed via their research and development or being utilized on other contracts in the most economical and impactful way for existing customers.

Scaling was also on the engineers' minds. By capturing the needs and data flows of these three objectives, Leidos could not only leverage Cody internally within their own engineering projects, but also externally for customers in different sectors and with varying levels of security.

One of their bigger conversations revolves around the modernization and migration of legacy code. For example, migrating from Oracle to PostgreSQL once took a full sprint, if not longer. Cody got them 80% to 90% of the way there within minutes.

Technology moves fast, and Leidos leans on Cody to teach its engineers the basics of both old and new technology that they're not familiar with but need to understand for projects they're working on. Thanks to Cody, they're saving time writing documentation for their code, generating boilerplate in seconds, writing unit tests with unparalleled ease which in turn improves code quality, and debugging significantly faster than before.

Leidos' senior developers, in particular, have felt the difference. Guiding junior developers used to take up about eight hours of the week, easily. With Cody, they've cut this down to two. In fact, Leidos lives by one important rule of thumb:

If you haven't yet asked Cody, don't ask me.

Rob Linger,AI Software Architect at Leidos

Linger highlights something important: “It's not just about time savings. It's about how you're able to spend your time.”

Cody gives Leidos engineers more space to focus on what matters — something felt by its customers. In fact, one engineer says:

I really can't express how blown away I am Cody. I can't go back to... whatever it was like before. I use Cody every day, all day long. No matter what I write, Cody helps improve it and it goes way beyond coding in some specific language, you can make Cody explain things to you every step of the way. Really, this is it, the future of coding.

Leidos Engineer

Explore other customer stories

Indeed logo

Indeed keeps code up to date and accelerates development velocity.

Read the case study
FactSet logo

FactSet migrates from Perforce to GitHub.

Read the case study
HashiCorp logo

HashiCorp streamlines cross-repository code search and fixes with Sourcegraph.

Read the case study
CERN logo

Sourcegraph empowers CERN to tackle code reuse and code changes in mission-critical applications.

Read the case study