Deskree
Research

ResearchEngineering knowledge

Measuring the context graph: tasks, baselines and results

An agent given Metafour’s context graph was 21% to 81% more accurate and used 51% to 86% fewer tokens than the same agent without it, and the change was largest on complex tasks that span across multiple layers of the system.

Dmytro Grechko, CEO at Deskree

What we found

An agent that works from Metafour’s context graph answers more accurately and uses fewer tokens than the same agent working alone, and the difference grows with the size of the task. On complex tasks accuracy rose by 81% and token use fell by 86%. On one operational question the agent made 1 tool call where it had made 17, and it reported a decoy resource as unconfirmed where it had reported it as deployed.

These are our own measurements on our own tests. The last section says how to read them.

What we measured

Claims about AI tools are easy to make and hard to check, and impressions are a poor instrument. So we measure.

The usual tests for coding agents stay inside one repository. None of them asks about a running system: what a change reaches once it is deployed, or which team owns the service behind an endpoint. Those are the questions we care about.

We track four things: whether the agent’s answer or change is correct, how many tokens it used, how many tool calls it made, and whether it reported something as fact that the system does not show.

The fourth matters as much as the first. An agent that is right most of the time and gives no sign of when it is wrong leaves its engineer to check everything.

How we tested

The test ran on one large system: more than 50 repositories and a complex AWS setup. A question about a system like that rarely has its answer in one place. The code that calls a service lives in one repository and the service itself in another, and what is deployed, and where, is recorded only in AWS. Answering means connecting all three.

The test has 30 tasks in three tiers, grouped by how much of the system they touch: 10 simple, 10 medium and 10 complex.

Each task was run under two conditions. In the first, an agent running Claude Opus 5.5 worked alone, with access to the organization’s GitHub and AWS. In the second, the same agent had Metafour connected instead. Metafour had no additional source of information: its graph was generated from the same GitHub and AWS. The language model, the task and the environment were the same in both.

Language models do not give the same answer twice, so one run of a task tells you little. We ran every task three times under each condition, 180 runs in all.

Results by task size

Accuracy

Gain by task complexity

  • Simple+21%
  • Medium+53%
  • Complex+81%

Tokens used

Reduction by task complexity

  • Simple−51%
  • Medium−62%
  • Complex−86%
The gain grows with the size of the task: accuracy rose most and token use fell most on the complex tier. Change for an agent with Metafour against the same agent without it, on the same tasks.

Accuracy rose by 21% on simple tasks, 53% on medium tasks and 81% on complex tasks. Token use fell by 51%, 62% and 86% across the same tiers.

Both agents could reach the same information. What differed is where the relationships were worked out. In Metafour’s graph every relationship across the repositories and the AWS setup was already mapped, deterministically, before the agent asked anything. The agent working alone had to find those relationships itself, one repository and one AWS resource at a time, inside a single conversation.

On a simple task that is manageable, because most of what matters sits in one place. On a complex task it breaks down. The agent cannot open everything, so it reads part of the system and infers the rest: that this service probably calls that one, that this resource is probably the one in use. It reports those inferences as findings without having confirmed them, and each one is a chance to be wrong.

Some tasks in the complex tier need more context than a standalone model can hold. An agent reading files cannot complete them. With the context graph supplying the part of the system each step needs, they become possible.

Where the tokens go

Where a coding agent’s tokens go

76%
  • Reading files and gathering context76%
  • Running tests12%
  • Editing code12%
Three quarters of an agent’s tokens go to finding out about the system. Token use by activity for a coding agent working without Metafour.

Reading files and gathering context took 76% of the agent’s tokens, with running tests and editing code taking about 12% each. This is the share the context graph replaces, which is why token use falls furthest on the tasks that touch the most of the system.

One question, two ways

A second test used twelve operational questions of the kind an engineer asks during a change or an incident. The same language model answered each one in the same environment, once with separate tools for each source and once with Metafour.

“What breaks if I change this file?”

Tool calls, one block each

Raw per-source tools17
Metafour1

Tokens

Raw per-source tools25,314
Metafour5,096

A decoy resource with a misleading tag

Raw per-source tools
Reported as deployed
Metafour
Reported as unconfirmed
One call did the work of seventeen, on a fifth of the tokens, and the decoy was reported as unconfirmed. One of the twelve questions: same language model, same question, same environment.

With raw tools the agent made 17 tool calls and used 25,314 tokens. With Metafour it made one call and used 5,096.

The environment also held a decoy: a resource carrying a misleading tag. With raw tools the agent read the tag and reported the resource as deployed. With Metafour it reported the resource as unconfirmed. The graph keeps what a system shows apart from what something claims about it, which is how it is built.

How to read these results

We built the tool and we built the tests. Tasks written by people who know what Metafour is good at will favour it, however carefully they are chosen. The real check is for others to run the comparison on tasks we did not write.

The test ran on one system, and results on one architecture may not carry to another. Twelve questions is a small set, and one decoy is a demonstration.

The baseline matters as well. An agent with better search tools would close some of the gap. Models also change quickly, and a result measured on one version can shrink or grow on the next.