Coding agent searching plain JSON video logs beats MAGIC-Video's memory graph
A preprint finds that a coding agent answers questions about weeks of video better than purpose-built memory systems. It does this by writing its own searches over simple per-minute text records, and the gap widens as the underlying model gets stronger.
scienceunderway.com/articles/coding-agent-searching-plain-json-video-logs-beats-magic-video-s-memory-graph

AI illustrationWhat the study shows
The problem is answering questions whose clues are scattered across days or weeks of video. An example is "What did I usually do after dinner this week?" The system must find each dinner, read what followed, then compare across days.
The authors' system, VideoJSON, has two steps. First, a vision-language model, an AI that reads images and text, describes each minute of video once. It stores that description as a JSON record, a structured text format. Each record holds a detailed caption plus fields such as events, people and objects, places and a speech transcript.
Second, at question time, a coding agent writes Python or Bash programs to search those records. A coding agent is an AI model that writes and runs code step by step. It runs them in a sealed container, reads the output and decides what to run next. It gets up to 30 model calls per question and, in the basic set-up, never sees the video itself. The authors call this a minimal harness: a thin wrapper around the model with almost no built-in search logic.
The main comparison is with MAGIC-Video, a published system that builds a graph of episodes, entities and relations. The authors ran both systems with the same model, DeepSeek V4.1 Flash. VideoJSON scored 7 points higher on EgoLifeQA, 20 points higher on Ego-R1-Bench and about 25 points higher on MM-Lifelong Week. On a fourth benchmark, EgoMemReason, it scored about 13 points above the best result in that benchmark's own paper.
The authors also tested four models of rising strength. VideoJSON beat MAGIC-Video with every one. Its average rose by about 12 points from the weakest model to the strongest, against about 5.5 points for MAGIC-Video. VideoJSON with the weakest model still outscored MAGIC-Video with the strongest.
The authors report that building the index for 3 hours of video took about 44 minutes, against about 123 minutes for an optimised MAGIC-Video pipeline. Answering cost about 1.5 US cents per question with DeepSeek. This is a preprint and has not been peer reviewed.
Our reading
In our reading, the headline result is less about video than about where to put engineering effort. The authors spent their effort on what each record contains. They left the search entirely to the model. Systems that fix search paths in advance appear to cap what a stronger model can do. The scaling chart is the clearest evidence: MAGIC-Video gained much less from better models than VideoJSON did.
The ablations, where the authors add or swap parts to see what matters, support this. Adding hourly summaries or an extra decision tool barely moved the average. Replacing the structured records with plain captions lowered scores. So did giving the agent only BM25, a classic keyword search tool. Both the free-form code search and the structured fields seem to earn their place.
The result is not a clean sweep. With the smaller Qwen-3.5-Flash model, VideoJSON scored below two earlier systems on EgoLifeQA. On EgoMemReason it won overall but trailed clearly on counting questions. We rate the work at Readiness level II, Benchmarked: there are public benchmark results, but the code is promised only after publication.
The rest of this story is for members. Membership is free: read it at scienceunderway.com/articles/coding-agent-searching-plain-json-video-logs-beats-magic-video-s-memory-graph
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | A working system with a full method description, system prompt and training recipe is given. |
| II Benchmarked | Met | Results on four public benchmarks (EgoLifeQA, Ego-R1-Bench, MM-Lifelong, EgoMemReason) against published baselines, with five-run variance reported. |
| III Open source | Not yet | The paper says code will be open-sourced after publication. It gives no link, and no weights or data release is stated. |
| IV In production | Not yet | No documented use by a named organisation in production. |
What would move it up
Releasing the code, the index builder, the MediaStorm-Livestream questions and the fine-tuned weights would reach level 3. Documented use by a named organisation on real video would reach level 4. Like-for-like reruns of baselines on Day and Month would also strengthen level 2.
The study
Wenqi Marshall Guo, Kuan-Hao Huang, Junda Chen et al.. VideoJSON: A Minimal Harness Beats Purpose-Built Memory for Ultra-Long Video Understanding. arXiv, 20 November 2026. Read the paper
Notes
- Guo, Huang, Chen and Zhang. VideoJSON: A Minimal Harness Beats Purpose-Built Memory for Ultra-Long Video Understanding. arXiv preprint, 20 November 2026, CC BY 4.0. Not peer reviewed. Source
- Code: the authors say it will be open-sourced after publication. No link is given in the paper.
- Main results with DeepSeek V4.1 Flash (Table 1): VideoJSON 77.4 on EgoLifeQA, 59.75 on MM-Lifelong Week, 64.75 on Day, 48.39 on Month, 78.0 on Ego-R1-Bench. Authors' MAGIC-Video rerun: 70.4, 35.00 and 58.0 on EgoLifeQA, Week and Ego-R1-Bench.
- EgoMemReason (Table 2): VideoJSON 52.2 overall against best prior 39.6. Ordering 86.0 vs 44.0; Counting 32.0 vs 50.0.
- Scaling (Figure 2): VideoJSON average rose from 60.67 to 72.25 (+11.58); MAGIC-Video best gain +5.50, at Qwen-3.8-27B.
- Indexing time (Figure 3): 44.2 minutes for VideoJSON vs 122.9 minutes for MAGIC-Video on 3 hours of MM-Lifelong Day video, one B200 GPU. Cost about 1.52 US cents per question (Table 3).
- Run-to-run spread (Table 9): standard deviation up to 2.71 points over five runs.
- Fine-tuning (Table 7): Qwen-3.5-Flash with LoRA on 64 trajectories. Week 38.50 to 46.75 (95% CI 1.25 to 15.25), Month 34.35 to 39.73 (1.85 to 8.91), Day 31.50 to 34.75 (-3.00 to 9.50).
Edited and signed by
Stefan PerdalEditor and publisher142 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
How this was made
An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.
How we workNo corrections


