# 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.

- Category: Agents
- Readiness level: II (Benchmarked) on Science Underway's four-step scale, as proposed
- Published: 2026-11-24
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/coding-agent-searching-plain-json-video-logs-beats-magic-video-s-memory-graph

## The study

VideoJSON: A Minimal Harness Beats Purpose-Built Memory for Ultra-Long Video Understanding (preprint, not peer reviewed). arXiv 2611.28167. https://arxiv.org/abs/2611.28167

## At a glance

- What it shows: Turning each minute of video into a short structured text record, then letting an AI write small programs to search those records, answered questions about days or weeks of footage more accurately than a leading system built on a complex memory graph. It was also quicker to set up.
- What it does not show: It does not show the approach working on real products or real users' questions, since every test used research benchmarks. It does not beat every earlier method on every test, and the code is not yet released.
- Why it matters: Builders of video assistants may be able to drop elaborate memory designs and rely on simpler records plus a capable model. In that set-up, upgrading the model looks like the main lever for better answers.

## What 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 the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/coding-agent-searching-plain-json-video-logs-beats-magic-video-s-memory-graph

## 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.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
