Study · October 2026

Do agents understand code better with Engram?

We asked coding agents why real code exists, with and without Engram. The corrected build improved completeness in this small study, while taking more time and money.

CURRENT · CORRECTED-BUILD COMPLETENESS

More of the recorded reasons, with more time and cost.

81%Corrected Engram · 39/48 facts
50%Conventional tools · 24/48 facts

Twelve paired Opus questions: corrected Engram scored higher in every case. Median answer time was 358.5 versus 216 seconds; successful-run cost was $26.48 versus $16.02.

Corrected-build validation

Independent graders scored four required facts per provenance answer. The corrected Opus + Engram arm reached 81% of those facts (39/48), versus 50% (24/48) for the original Opus controls. The historical original Engram arm scored 76% (36.5/48), but its unconditional hint could have influenced it. Different graders scored the original and corrected answers, and workflow clues could partly reveal the arm.

Opus provenance armRequired factsMedian answer timeMedian input tokensSuccessful-run cost, 12 answers
Corrected Engram build39/48 · 81%358.5 s2.74M$26.48
Conventional tools, no Engram24/48 · 50%216 s1.26M$16.02
Original Engram build · historical36.5/48 · 76%306 s1.92M$22.43

At these provider-reported prices, the corrected successful runs cost about $0.68 per required fact found, versus $0.67 for controls. The eight first corrected provenance attempts that failed at the provider limit added $1.85 and 438 seconds; including them raises corrected provenance cost to $28.33, about $0.73 per fact found. The separate repair task had its own $3.25 failed attempt and $2.74 successful retry.

In that repair retry, an independent grader found that the agent followed a pre-cutoff ruling to remove an unasked timing proof while keeping the requested routes. The change was uncommitted and no passing test run was claimed. The agent used Engram and a bounded viewer to find the ruling. This one exposed task shows that the decision was reachable; it cannot establish a general decision-making advantage.

These findings apply to twelve questions drawn from our own projects. The corrected and original answers were separate samples of model behavior, some case and feature details had been exposed during diagnostics, and the code tested here is not a released Engram feature.

Historical original-build dashboard · confounded by the unconditional hint
HISTORICAL 01 · COMPLETENESS

Agents with Engram got more of the story right.

76%With Engram
50%rg, grep and git only

Share of the key facts found, graded blind, across 12 real code spans, by Claude Opus 5.5. A second model, GPT-6 Luna, rose from 32% to 42%.

HISTORICAL 02 · CONSISTENCY

It wasn't one lucky case.

9 of 12cases where the Engram answer scored higher

Two tied, one scored lower. Luna with Engram scored higher in 8 of 12.

HISTORICAL 03 · REACH

Engram found the decision that never touched the code.

2/2With Engram
0/2Without

A file's owner had ruled it should move out of the shipped product. The ruling lived in a conversation, not in git. Both agents with Engram reported it; both without it stopped at the commit history.

HISTORICAL 04 · DECISIONS

On a real repair task, Engram led to the right call, in half the time.

½the wall time · 508 s vs 1,002 s
−26%cost · $3.31 vs $4.49
1 vs 0right calls · with Engram vs without

The task was "fix the failing check." The test had never been asked for, and its owner had already ruled it should be deleted. Opus with Engram read that ruling and deleted the test. Both agents without Engram kept it or escalated, as did all 8 earlier runs. The second Engram agent never opened the result that held the ruling.

HISTORICAL 05 · FOCUS

Far less to read than searching by hand.

150Engram excerpts
3,425grep matches

Later discussion of 30 random edits: Engram's short, capped list against every conversation that names the file in the same week. About 23 times less to read.

HISTORICAL 06 · COST

Original-build cost per four-point equivalent.

$2.46With Engram
$2.67Without

Historical original-build cost divided by the number of four-point answer equivalents. The corrected build cost $0.68 per individual required fact found, versus $0.67 for controls before failed attempts.

What we wanted to know

Code written by agents carries reasons that live in conversations: a request, a review, a ruling from the person who owns the work. When the next agent arrives, the code alone rarely says why it is the way it is. Some code looks wrong but was a deliberate choice. Some looks fine but was never asked for.

We asked two questions. When an agent needs to know why code exists, does Engram help it find the answer more completely or more reliably than the tools agents already use, such as rg, grep and git? And is it faster or cheaper?

How we tested it

Separately, we ran a repair task where the right answer depended on a later ruling, and we compared how much later discussion Engram returned with a plain search for the file's name. Its original-build outcome is historical. The corrected retry completed after a provider-limit failure and was independently graded as following the ruling; its uncommitted patch was not test-verified.

GroupKey facts foundMedian timeMedian input tokensTotal cost, 12 runs
Opus 5.5 + Engram76%306 s1.9M$22.43
Opus 5.5, no Engram50%216 s1.3M$16.02
Luna + Engram42%675 s1.7Mn/a
Luna, no Engram32%517 s0.9Mn/a

What the numbers don't say

What it means

In this sample, access to conversation history helped agents recover more of the recorded reasons behind code and helped one agent find a ruling that changed the right repair. It also made the provenance answers slower and more expensive, and did not eliminate mistaken conclusions. Further independent testing and product acceptance are needed before making a broader claim.

engram.ing · github.com/clickety-clacks/engram