Metagraph
Your org's metadata as a graph, so an agent reads the slice a task touches.
#The problem it solves
A Salesforce project is metadata-heavy. One custom object is a folder of XML: the object, each field, its validation rules, list views, record types and layouts. Add flows, permission sets and profiles, and a mid-sized org is tens of thousands of files.
A general coding agent finds its way by searching and reading files. On a repository like this it spends most of its context, and most of your tokens, reading XML that has nothing to do with the task.
#What it is
The metagraph holds your org's metadata as a graph: components as nodes, and the relationships between them as edges. A field belongs to an object. A flow writes to a field. A permission set grants access to it. An Apex class queries it.
An agent asks the graph what a task touches and gets back that slice, with the paths to the source files that matter.
In some cases this cuts the tokens spent on searching, reading and gathering context by 60%. The saving depends on the org and the task: it is largest on metadata-heavy orgs and on tasks that touch a small part of them.
On your own API key, the saving shows on your AI bill. The same queries are available locally: an agent on your machine uses the MCP server.
| Question | Reading files | Asking the metagraph |
|---|---|---|
| Starting point | Search the repository | The components the task names |
| Cost grows with | The size of the org | The size of the task |
| Dependencies | Found if the agent happens to read them | Followed along typed edges |
| Same answer twice | Depends on the search | Yes: listings are complete and ordered |
#How agents use it
- In Backlog, to check a task against what already exists, for example whether a validation rule would conflict with one already on the object.
- In Implement, to write the plan's Metadata impact and Access sections from the components involved, without loading the whole project.
- Over MCP, so your own IDE agent can make the same queries. See the MCP server tools
describe_graph,get_nodeandtraverse.
#What is in scope
- Metadata from the org and the repository you connect.
- Not business records. They are never read.
- Not managed-package metadata. It is not scanned.