Skip to Content
Code as Data
book

Code as Data

by Bryan Friedman, Pat Johnson, Olga Kundzich
July 2026
Intermediate
35 pages
52m
English
O'Reilly Media, Inc.
Content preview from Code as Data

Chapter 6. Code as Data Is the Foundation for Agentic Systems

Coding agents are now part of how software gets built. More than that, they’ve triggered the most significant transformation the software lifecycle has seen in decades. The debate about the next generation of language models continues, but practically, the conversation has focused on agent orchestration—agent selection, coordination strategy, subagents, plan mode, role-scoped workflows, MCP servers, and elaborate harnesses. However, the real conversation starts further down, at the source.

Agentic AI runs on context at scale. An agent’s output is only as good as what it can see, including not only the file in front of it but also dependencies, callers, and conventions across the whole codebase. When that signal is missing, the LLM infers and guesses. In a large enterprise codebase, the consequences compound, creating bottlenecked review cycles, verbose and needlessly complex code, confidently incomplete modernizations, and ratcheting token costs.

That’s why the LST, the code model we introduced in Chapter 2, becomes a valuable layer between the agent and the source. It holds types, dependencies, and call graphs, all resolved and queryable across thousands of repositories as a single corpus. Figure 6-1 shows how the LST fits between your codebase and the agent activity. The rest of this chapter explains what that layer makes possible.

Figure 6-1. Enabling agents to reason against the code-as-data layer, not the raw ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

RAG-Ready Patterns for Data Platforms

RAG-Ready Patterns for Data Platforms

Ravi Vedula, Gerardo Bodegas Martinez, Maruti Chittajallu, Jack Pullikottil
Implementing Data Mesh

Implementing Data Mesh

Jean-Georges Perrin, Eric Broda
Data Mesh

Data Mesh

Zhamak Dehghani

Publisher Resources

ISBN: 0642572333225