We Mapped 115 Microservices for Our Coding Agents — Kamalakannan Nandagopal, Postman

Loading slides…

Read the talk

We Mapped 115 Microservices for Our Coding Agents

Selected presentation frame from We Mapped 115 Microservices for Our Coding Agents — Kamalakannan Nandagopal, Postman at 123 secondsOpen full source frame
A diagram shows a developer connected to several services and tools.

Postman’s API context graph connects endpoints, callers, implementations and production traces so coding agents can reason across repositories. Kamalakannan Nandagopal explains where that context improves discovery and redesign, why stale dependencies break it, and how cheaper analysis could move architecture checks into everyday development.

From a talk by Kamalakannan Nandagopal

At a glance

Ideas worth remembering

  • API context connects callers, endpoints, implementation code and data dependencies across repositories, giving agents a way to reason about distributed workflows.

  • Consumer-aware redesign requires both request shapes and their purpose. The graph's links into implementation context helped recover both in the free-form JSON example.

  • Freshness is part of correctness: new consumers caused an impact-assessment failure, and removed APIs or dependencies must also disappear from the graph.

  • Lower token costs could make architectural analysis frequent enough to run during PR review and local development, where problems can be caught earlier.

An autonomous agent still needs to understand the other services

Postman’s cloud features run on more than 115 microservices and thousands of REST API endpoints. For Kamalakannan Nandagopal, a staff engineer at Postman, that makes a familiar coding-agent success—implementing a change inside one repository—only part of the engineering problem. The change may depend on code, callers and deployed behavior scattered across hundreds of repositories.

The team’s agents progressed from line and function completion to repository-wide refactors, then to autonomous workflows that make changes, verify them, submit pull requests and review pull requests. As the scope of action grew, the scope of required knowledge grew with it. Production services can run in different environments and versions, while front ends, CLIs and API clients all use the same backend infrastructure. A locally plausible implementation can therefore miss a dependency elsewhere in the system.

Several familiar context tools address pieces of this problem:

  • Documentation: A useful starting point, but writing and maintaining it costs engineering time. Nandagopal’s concern is that delegating all maintenance to an LLM still leaves a need for human curation.
  • Skills and MCPs: They help agents use knowledge and tools, but their usefulness depends on the context they receive.
  • Agent memory: It can preserve knowledge that previously lived in an engineer’s head. In the team’s experience, however, that memory remained tied to individual users rather than becoming a shared engineering resource.
0:120:42
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

0:12 · section reference included

APIs connect the knowledge that repositories separate

The useful precedent came from Postman’s go-to-market team. Its business agents needed customer information from multiple sources. After several iterations, a shared RAG and GraphRAG pipeline turned that information into structured context for purpose-built agents. Engineering borrowed the idea of a centralized context layer, then chose APIs as the organizing structure.

That choice follows the shape of a distributed system. A microservice owns responsibilities associated with a domain or model; its APIs expose those responsibilities. Calls between APIs connect the services into workflows and user journeys. Mapping those calls gives an agent a route through the system that a single repository cannot supply.

The graph began with an inventory of production microservices and their exposed endpoints. Each endpoint was connected to the code that implements it, down to the implementation line. The team also mapped service-to-service and endpoint-to-endpoint calls, traced data through databases and caches, and connected front ends, CLIs and other API clients to the backend. LLMs indexed this information into the shared context graph.

What makes an architectural relationship useful enough for an agent to act on? The diagram separates the relationships being mapped from the evidence supporting them. Every graph data point had to rest on what Nandagopal calls a “hard truth”: an implementation line or a production telemetry trace. The LLM organizes the information; code and observed execution ground it.

The resulting map revealed a tightly interconnected central cluster of core services, typically classified as tier zero or tier one, and one or two heavily bloated services toward the edges. These patterns made the architecture visible at a scale larger than any individual service.

Selected presentation frame from We Mapped 115 Microservices for Our Coding Agents — Kamalakannan Nandagopal, Postman at 369 secondsOpen full source frame
A map of service relationships shows a dense central cluster and several outlying nodes.

Map relationships, then ground the shared context

Front ends, CLIs and API clientsrelationships — Applications that interact with backend infrastructure.
Services and endpointsrelationships — Production inventory, exposed endpoints and calls between them.
Databases and cachesrelationships — Data paths extend down through the stack.
Code lines or production tracesevidence — Required grounding for every graph data point.
API context graphLLM-indexed, centralized architectural context.
The graph connects application entry points to backend behavior while retaining code or telemetry evidence for its data points.
Read the diagram as text
  • Front ends, CLIs and API clients. relationships — Applications that interact with backend infrastructure.
  • Services and endpoints. relationships — Production inventory, exposed endpoints and calls between them.
  • Databases and caches. relationships — Data paths extend down through the stack.
  • Code lines or production traces. evidence — Required grounding for every graph data point.
  • API context graph. LLM-indexed, centralized architectural context.
  • Front ends, CLIs and API clients → Services and endpoints: Backend interactions.
  • Services and endpoints → Databases and caches: Data paths.
  • Services and endpoints → API context graph: Index implementations and call relationships.
  • Databases and caches → API context graph: Index data dependencies.
  • Code lines or production traces → API context graph: Ground every data point.
3:123:42
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

3:12 · section reference included

Measure real engineering tasks, starting with API discovery

To evaluate the graph, the team returned to real pull requests and important project discussions. For each PR, it identified the developer’s intent and the eventual outcome. For design discussions, it used the decision actually taken as the retrospective target. These became evaluations of whether an agent could recover useful engineering answers.

The comparison used three setups: Postman’s AI agent connected to the graph, Claude Code using GitHub code search, and Claude Code with the same graph exposed as a skill. Each evaluation received a score from zero to five, alongside token consumption. On the presented plots, high scores toward the left meant good answers with fewer tokens; high scores toward the right meant good answers at greater token cost. These are reported internal task results: the recording does not specify the evaluation count or detailed scoring rubric, so the comparisons should not be read as a general agent ranking.

Selected presentation frame from We Mapped 115 Microservices for Our Coding Agents — Kamalakannan Nandagopal, Postman at 461 secondsOpen full source frame
A scatter plot places evaluation score against token use, with three points shown.

API discovery asks a deceptively small question: which endpoint should return a particular user’s profile name? In a system with hundreds of APIs, several may appear to do the same thing. The graph-connected agents scored well on this search task, while pure code search performed poorly. The difference between Postman’s agent and Claude Code with graph context was small enough that the team did not investigate it further. Here, access to the shared map mattered more than that difference between agents.

6:246:54
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

6:24 · section reference included

The temporary JSON field becomes a redesign problem

The redesign example starts with a feature that is ready to ship. Its API has a request schema, an implementation and a tested product integration. Then a dependent team asks to pass one additional property for future use. With little time to work through the schema, the developer adds a free-form JSON context object and a TODO to revisit it two weeks later.

Two weeks later, the field intended to carry one attribute now carries fifteen. It may have callers in one, five or ten services—the example describes possible growth, rather than a fixed consumer count. The observable change is that an escape hatch has become a shared input format. Adding a schema now requires discovering what each caller sends and why it sends it; otherwise, the redesign risks rejecting data an existing consumer depends on.

Selected presentation frame from We Mapped 115 Microservices for Our Coding Agents — Kamalakannan Nandagopal, Postman at 615 secondsOpen full source frame
A code editor displays a JSON request example.

Three different information problems sit inside that task:

  • Consumer coverage: Finding every caller can be impractical across a real distributed system.
  • Request shape: A service dependency map identifies connections, but does not necessarily reveal the fields each caller supplies. Production logs may lack that detail, including for privacy reasons.
  • Intent: Even a complete list of request shapes does not explain why a caller chose a particular representation.

The graph gave Postman’s agent a way to work through those problems in order. It identified consumers, followed their connections into implementation code, and used the surrounding code to reason about the purpose of each input. In the presented evaluation, the agent recovered the distinct request shapes used by the consumers. That supplies the information needed to replace the free-form field with a considered schema; the result described here is the analysis, rather than a demonstrated production migration.

How does the agent get from an endpoint to a schema decision? The diagram shows why a list of dependencies alone is insufficient: each consumer must lead to both its request shape and the code context explaining its use. Pure code search performed poorly in this evaluation. Claude Code with the graph skill improved somewhat, but tended to stop after enough turns and wait for the user to decide how to proceed. Supplying context and carrying the analysis through to completion remained separate concerns.

Recover the inputs before replacing the free-form field

Free-form context fieldThe example grows from one intended attribute to fifteen.
Find the API's consumersThe context graph identifies the callers to inspect.
Inspect implementation contextFollow grounded code locations and surrounding logic.
Recover distinct shapes and intentDetermine what each consumer sends and why.
Inform the schema changeUse the recovered inputs to make the redesign with greater confidence.
Consumer discovery supplies coverage; implementation context supplies the request shapes and reasons needed for redesign.
Read the diagram as text
  • Free-form context field. The example grows from one intended attribute to fifteen.
  • Find the API's consumers. The context graph identifies the callers to inspect.
  • Inspect implementation context. Follow grounded code locations and surrounding logic.
  • Recover distinct shapes and intent. Determine what each consumer sends and why.
  • Inform the schema change. Use the recovered inputs to make the redesign with greater confidence.
  • Free-form context field → Find the API's consumers: Which callers depend on this input?.
  • Find the API's consumers → Inspect implementation context: Drill into grounded implementations.
  • Inspect implementation context → Recover distinct shapes and intent: Read construction and surrounding purpose.
  • Recover distinct shapes and intent → Inform the schema change: Account for existing consumer inputs.
8:549:24
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

8:54 · section reference included

Impact assessment works only while the dependencies stay current

Impact assessment extends the same reasoning to a proposed change. Before replacing a V2 API with a V3 API, an engineer needs to understand how V2 is used. Before changing an endpoint in a PR, the engineer needs to know which other services will be affected. In the presented successful impact tasks, Postman’s agent produced strong answers while using roughly half to one-third as many tokens as code search.

Then one evaluation reversed the pattern. Asked to identify services affected by an endpoint change, Postman’s agent slowed down and consumed many tokens while failing the task. Investigation found that new consumers had appeared between writing the evaluation and running it. The graph no longer represented the current dependency set.

Selected presentation frame from We Mapped 115 Microservices for Our Coding Agents — Kamalakannan Nandagopal, Postman at 799 secondsOpen full source frame
A slide lists reasons an impact assessment failed, including new consumers and delays in syncing.

This failure changes the maintenance requirement. Building the graph once is insufficient: additions and removals of APIs and dependencies both need to reach it. An omitted caller leaves an impact analysis incomplete; a removed dependency that remains in the map can send the analysis toward a relationship that no longer exists. Nandagopal connects those gaps directly to developer trust and, eventually, whether developers keep using the tool.

The team’s retrospective of PRs in its top ten repositories found that almost 75% affected APIs, either by changing an API’s external behavior or by integrating a new API. That is a finding about those repositories, but it explains why dependency-aware analysis mattered to this team: changes with possible cascading effects were a routine part of development.

11:5312:23
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

11:53 · section reference included

The shared map makes an ecosystem-wide review possible

Once the graph existed, the team could ask a larger question: perform a complete engineering analysis and architecture review of the ecosystem. Postman’s agent produced a 21-page report with findings and action items for the CEO, CTO and staff engineers. Its value was the ability to inspect relationships across the system, beyond the scope of a single-repository review.

The reported findings covered several distinct kinds of risk:

  • Dependency cycles: Interdependent services that can complicate an incident.
  • Long-running migrations: Risky migrations that may signal accumulated technical debt.
  • Single points of failure: Places where a failure could create a larger system problem.
  • Telemetry blind spots: Behavior present in implementation code that did not appear in telemetry.
Selected presentation frame from We Mapped 115 Microservices for Our Coding Agents — Kamalakannan Nandagopal, Postman at 891 secondsOpen full source frame
A slide lists dependency cycles, risky long-running migrations, single points of failure, and telemetry blind spots.

The next proposed layer adds business meaning and design rationale. Knowing which API calls another answers a structural question. Knowing why a data model exists, why a domain is organized a certain way, or why one API should be chosen over another helps an agent make subsequent design decisions. The team was exploring how to connect that semantic knowledge to the coding agent’s existing context.

14:0114:31
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

14:01 · section reference included

Use cheaper analysis more often, and earlier

The closing ambition is to use efficiency to increase the frequency of engineering checks. If an analysis takes fewer resources, it becomes more practical to run it at the PR level or even in the engineer’s development environment. Earlier feedback could catch dependency problems while a change is still being shaped, giving developers more confidence in the code their agents generate. This is the intended direction, rather than a demonstrated rollout of all those checks.

At the time of the talk, Nandagopal described the capabilities as available through Postman and early access. For a practical starting point, the supplied Context Graph documentation explains connecting and indexing data sources, then querying the graph. It also distinguishes exploration from answers: the visualization helps users explore, while queries return grounded results. That fits the talk’s central requirement—an architectural map becomes useful to a coding agent when it can lead the agent to the relationships and evidence needed for a decision.

15:3116:01
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

15:31 · section reference included

Resources

From the talk

  • A practical guide to connecting and indexing sources and querying architectural dependencies. It explains the graph's data model, background indexing and query interfaces, and cautions that indexing results may be incomplete until jobs finish.

Transcript download
Full transcript

Loading transcript…