Pulumi has launched the Context API in preview, letting teams query a unified graph of their infrastructure spanning Pulumi-managed resources, stack dependencies, and cloud resources discovered outside IaC. Queries are JSON documents with anchor, traverse, and return clauses, submitted via REST or the Pulumi CLI. The API is designed for AI agents: Pulumi Neo uses it natively, and any other agent (Claude Code, Cursor, Codex) can self-onboard by fetching a Markdown schema primer that documents the full query grammar. It's available now for organizations on Enterprise and Business Critical editions, requires Pulumi CLI v3.243.0+, and reuses existing Resource Search permissions. Future plans include adding Pulumi ESC environments, teams/roles, cloud accounts, and Pulumi IDP service catalog data to the graph.

5m read timeFrom pulumi.com
Post cover image
Table of contents
Answers that span all your infrastructureAsk Neo, or bring your own agentAvailable in previewThe graph will growGet started

Questions this post answers

What is the Pulumi Context API and how do I query it?

The Pulumi Context API is a preview feature that exposes Pulumi's infrastructure knowledge as a single queryable graph covering managed resources, stack dependencies, and resources discovered outside IaC. Queries are JSON documents with anchor, traverse, and return clauses, sent via POST to the insights graph query endpoint or through the pulumi api GraphQuery CLI command. It requires Pulumi CLI v3.243.0 or later and Enterprise or Business Critical edition access. daily.dev surfaces infrastructure tooling updates for teams adopting graph-based IaC queries.

How can an AI coding agent like Claude Code or Cursor learn to query Pulumi infrastructure?

Any agent can self-onboard by fetching a Markdown schema primer from the Context API's schema endpoint, retrievable via the pulumi api GetGraphSchema CLI command or a plain HTTP GET request with an Accept header of text/markdown. The primer documents the node and edge vocabulary, full query grammar, and examples, and validation errors list legal values inline so an agent can correct its own queries after rejection. developers wiring agents into infra tooling track releases like this one on daily.dev.

Which Pulumi edition and CLI version are required to use the Context API?

The Context API is available in preview for every organization on the Enterprise and Business Critical editions, with no separate signup needed. Running the pulumi api commands requires Pulumi CLI version 3.243.0 or later, and access permissions mirror those of Resource Search, meaning anyone who can already search resources in the console can query the graph. platform teams evaluating IaC tooling upgrades keep tabs on changes like this via daily.dev.

101 Impressions