My whole app in one 2M-token prompt: 16/16 on questions, 15% on duplicates
Somebody on the SubQ Savant launch thread asked why we'd even need a context that long.1The comment is on the r/singularity launch thread from 2 December 2026, which asks why anyone needs 4M tokens. Public-repo demos can't settle it, because the model may have read that code in training. So I used Meridian, the Mac file manager I build, whose source has never been public. Anything a model knows about Meridian, it got from the prompt.
Reading the whole app in one prompt got every point question right, at every length I tried. Asked for complete lists, it found most of the things that exist and few of the things defined by a relationship or an absence: 15% of the duplicated functions and 11% of the symbols nothing in the app calls.
The setup
The corpus is every text file in Meridian's source at one commit: 1,883 files and 6.9 MB, which SubQ's tokenizer counts as 1,967,826 tokens. Savant read all of it in one prompt. For the head-to-head, Savant, Claude Opus and GLM 5.4 each read the same slice. Two agents with file tools, a GLM map-reduce over the whole app and a no-context control ran alongside. I planned 706 calls and fixed the questions, scoring rules and comparisons before the first scored call. Four protocol changes and one exploratory re-run came after, and all five are logged.
Each in-context prompt carried a planted word at the start and another at the end, and the model had to repeat both. A run that missed either one was re-run as truncated, so nothing here was scored on half a prompt. GLM and Opus graded the point questions blind, and I ruled by hand on the few where they disagreed.2GLM and Opus were also arms. Each judge saw only the question, the answer key and the answer, never which model wrote it.
"1M tokens" is three sizes
The windows weren't comparable before a single question. On the same Swift, Claude's tokenizer reads 2.56 characters per token, SubQ's 3.8 and GLM's 4.1. Claude's 1M window holds about a third of Meridian, GLM's 1M holds a bit over half, and Savant holds all of it. When I filled each window and checked the planted words, Opus and GLM both delivered 98-99% of what they advertise.
That gap is why the head-to-head used a 2.4M-character slice: about 600k tokens for Savant and GLM, 940k for Claude. Every model fits it, so the comparison is about reading, not about who has the bigger box.
The point questions held
The first family was eight multi-part questions, each answered from two or three files: how the downloads notice decides a file has finished arriving, what happens when the global hotkey fires while the app is already in front. I ran Savant at six sizes from a focused slice to the whole 2M, plus two runs with every file shuffled into random order. Opus ran up to 620k and GLM up to 1M.
All of them got 16 out of 16 at every size, and the control got 0. I read a sample of the long answers against the key, and they carry every part of it, down to the one-second polling interval. That's awesome. These eight questions were also too easy to show a decline with length, so this run can't tell you there isn't one. Chroma's context rot study measures that on general text, and that's where I'd look.
Lists split by kind
The second family was audits: every caller of five functions, every place the app writes to disk, every pair of duplicated functions, and every symbol nothing in the app calls. Scripts over the code produced the answer key before any model ran. A hit is the right file and a line within three of the right one.

Lists of things that exist held up everywhere. The whole-app read found 94% of the callers and 86% of the disk writes. Pairs and absences are where it fell apart. A duplicate pair only exists as a relationship between two places in the code, and an unreferenced symbol only shows up by checking everything else. The slice can't run that last audit at all, because "nothing calls it" depends on the rest of the app being in the prompt.3103 of the 111 unreferenced symbols are used by tests, which weren't in the corpus, so "unreferenced in app code" is the right name for them, and "dead" isn't.
On the items both saw, the whole-app read scored 81%, and the three slice arms beat it by 11 to 15 points.4Exact McNemar tests on paired items, with the two reps counted as separate trials. All three gaps come out at p below 1 in 100,000. Savant itself did better on the slice, so the model can do the job. I think the other 1.3 million tokens got in the way.
I built that slice to hold every file the answers live in, so it had an answer key for the selection step, and a team doesn't get one of those. I think picking what goes in the window decides the audit, and a whole-repo prompt skips the picking without doing it for you.
The map-reduce arm, which reads the whole app in chunks and merges the lists, tied the whole-app read on the same items, 86% against 85%. It also found none of the 27 duplicate pairs, and I'd guess the two halves of each pair sat in different chunks. Oolong saw frontier models do badly on aggregation over long general text. That isn't code, so I'd call it a similar pattern, not an explanation.
Agents hit their budget
The Opus and GLM agents had Read, Grep and Glob over a read-only checkout, 40 turns and a 400,000-token budget, all fixed before the run. They found every caller. On the three big audits they grepped and read until the budget ran out and were stopped before answering. The one Opus run that got to the end of the unreferenced-symbols audit found none of them.
One whole-app read spends about 2M input tokens, so the agents worked with a fifth of that. I wouldn't draw a conclusion about agents from these runs until they get a bigger budget.
How I'd use it
A 2M window is a good way to ask questions of a codebase you don't know. Load it once and every later question is cheap. The first whole-app call took two to five minutes and cost about 20 cents. After that the prefix is cached, and a new question usually cost about 2 cents. That's the use I'd pick it for: getting to know a large codebase, or checking how a feature works end to end.
For an inventory, narrow first. Pick the files the answer can live in and send those. Chunking helps with lists of things that exist and loses pairs that cross chunks, so keep anything about relationships in one window.
Set the output cap high. Savant and GLM reason before they answer, and the reasoning comes out of the same budget. At 8,000 output tokens they sometimes spent all of it thinking and returned an empty reply with HTTP 200, which a careless harness scores as a wrong answer. That happened on 13 first attempts out of about 230. Opus, run through Claude Code's command line, never did. The audits needed up to 87,000 output tokens, past the 32,000 I first set, so I raised it to 128,000 before any scoring and logged the change.
Expect the latency to move. Cached whole-app calls took 5 to 18 minutes one morning, a median of 50 seconds that afternoon and under a minute the next morning. Run the 2M calls one at a time, too: three in parallel tripped SubQ's limit of 5M tokens in flight.
Check the run as well as the model. My harness named each answer file without the corpus, so when one question ran at several sizes, each run overwrote the one before and the scorer graded the last surviving answer for all of them. The only symptom was ten rows stuck as "pending". I fixed the name, threw out that whole family and re-ran it. The 16-out-of-16 above is from the re-run.
The scored run cost $7.68 of SubQ credit, including the family I threw away. Opus and GLM ran on flat-rate plans, so I didn't pay per token for them.
I'll keep the whole-app read for asking questions of the app, and narrow the input before I ask it for a list.
Related reading on this site: the $221 bill from million-token meeting notesshippedPractical ApplicationsJan 14, 2026The $221 Bill: Finding and Fixing Million-Token Meeting NotesHow a set-and-forget meeting notes automation quietly racked up costs with 1M-token prompts, and why chunking and caching matter now that the AI honeymoon is over. for what chunking and caching save, checking a 90% token cut against my own sessions for the same habit of testing a vendor claim on your own data, and TurboQuant's 1,000 experimentsshippedAI Development & AgentsMar 26, 2026TurboQuant from Paper to Production: 1,000 Experiments, Four Model Sizes, One Uncomfortable FindingWe implemented TurboQuant from the ICLR 2026 paper, ran 1,000 experiments across four model sizes, and discovered that 0.995 cosine similarity doesn't guarantee generation quality for another case where a metric that looked fine didn't guarantee quality.
Follow the lab
Get the next experiment
Enjoyed the breakdown on My whole app in one 2M-token prompt: 16/16 on questions, 15% on duplicates? New entries land roughly weekly. No digest, no roundup. Just the next build log, when it ships.
Related experiments
Apparatus
1,513 words · 9 min read
- long-context
- evaluation
- code-understanding
- subq
- claude
- glm