TRANSMISSION // 2612.05904v1
Giving Data-Analysis Agents the “Why” Behind a Chart
Source published
marimo-lens links a selected chart or number to the notebook code that produced it and the recorded requests behind that code. In tests on public team notebooks, agents using it more often found relevant computations and earlier requests, and less often reversed prior changes—though the study is limited and the tool cannot recover intent that was never recorded.

Pointing at a chart may be clear to a teammate, but not to an AI agent that sees only a screenshot. A new system called marimo-lens aims to supply both the computation behind a selected output and the earlier requests that explain why it was made that way.
The problem with pointing
Imagine a colleague asks an analysis agent to include every year in a trend line. If another teammate had previously asked to exclude an unusual year, changing the calculation could quietly reverse that earlier decision. The chart alone shows the result, not the reasoning or requests behind it.
That gap is the focus of a paper introducing Lens, a way to connect an analysis’s visible outputs to the code that produces them and the recorded intent behind changes. The authors implemented the approach as marimo-lens, an open-source tool for marimo, a reactive Python notebook environment.
Linking outputs, code and requests
Lens represents analysis in three connected layers. The view layer contains outputs such as charts, tables and numbers. The computation layer connects those outputs to the code blocks that produce them and to upstream blocks they depend on. The intent layer records requests, comments or other notes explaining why changes were made.
When someone selects part of an output, Lens gathers a “graph cut”: the selected output, its producing and upstream computation blocks, and recorded requests linked to those blocks. An agent can use tools to inspect that context and show where it is working. In the paper’s example, selecting an outlier on a chart reveals both the filter that excluded it and a teammate’s earlier request to leave it out. The agent can then ask before changing the fit.
The system also distinguishes whether a change is still present in the code from whether someone still wants it. Those are different questions: code can retain an unwanted change, or a requested change can have been removed. marimo-lens derives a change’s status from code, while a person must state whether a request remains in force.
What the tests found
The researchers first examined public Observable notebook histories and comments to motivate the design. Their corpus included 7,293 notebook histories and 17,328 comments on cells. They report that charts often depend on upstream cells, while comments and requests may concern what an output shows rather than the code that directly renders it.
They then tested four coding agents on reconstructed notebooks and requests from public team projects. In one experiment, agents using marimo-lens identified the cell producing a selected output in 99% of runs, compared with 39% when given only the question. In another, agents using the tool reported earlier linked requests in 95% of runs. These are results on the study’s selected tasks, not a guarantee for other notebooks or teams.
A third experiment tested whether agents would undo an earlier change when asked to make a conflicting edit. With marimo-lens, they did so in 15% of runs; the paper reports 96% when agents received a cell name without the tool’s safeguards. The tool did not eliminate mistakes, and results varied by agent and by how context was delivered. Agents also sometimes stopped unnecessarily to ask questions.
For agents unable to read images, the tool reduced the median input-token counts reported in the study, because they could receive structured context rather than relying on screenshots. The size of that reduction varied across the two text-only agents tested.
What remains uncertain
The results are promising but narrow. The “real” requests came from three notebooks by two teams, and researchers reconstructed records from existing comments and histories. This tested the benefit of a correct record, but not how reliably teams would create and maintain one in everyday use. All agents ran through the same Claude Code harness, so the study cannot separate the effects of the language models from the harness.
The conflict test covered a single turn; it does not establish how people feel about being asked to resolve conflicts over longer work. The implementation also has technical limits: it can miss some code changes, group requests together when one cell produces multiple outputs, and produce incomplete dependency links in certain cases. Most importantly, it cannot recover reasons nobody recorded, and an agent may still misread the context or fail to follow the tool’s guidance.
The source is a preprint, so its findings should be treated as preliminary rather than settled evidence. The paper describes early practitioner use and releases marimo-lens as open source, but broader tests will be needed to show how well the approach works across teams, tools and real-world workflows.
- AI agents
- data analysis
- marimo-lens
- computational notebooks
- data provenance
- human-AI collaboration
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
A paper trail for AI-assisted data cleaning
Supporting evidence: Both papers support the bounded point that recorded histories can make agent-assisted data work easier to trace: Gyarmati et al. report experiments in which Lens helped agents locate computations and preserve earlier requests, while Beery et al. describe Scrub Data’s executable provenance graph and validation workflow in a data-curation case study. The evidence differs: Lens evaluates agent behavior on notebook tasks; Scrub Data demonstrates reproducibility and verification in one ecology use case, not comparative agent performance.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.05904v1 — Original paper
Excerpt reference:
static/papers/2612.05904v1.md:16-215
Basis: Paper text
Source file SHA-256:9bef922a0ca9ea0003df1f979d28a732842a7adcef79ab16da7009aeed6b46162612.05904v1 — Original paper
Excerpt reference:
static/papers/2612.05904v1.md:1753-1815
Basis: Paper text
Source file SHA-256:9bef922a0ca9ea0003df1f979d28a732842a7adcef79ab16da7009aeed6b46162611.28003v1 — Original paper
Excerpt reference:
static/papers/2611.28003v1.md:148-193
Basis: Paper text
Source file SHA-256:28de17c6920516fcbd40db80ce0fd49a3e8a1fd245313eebc9231b31c765e8fb2611.28003v1 — Original paper
Excerpt reference:
static/papers/2611.28003v1.md:542-597
Basis: Paper text
Source file SHA-256:28de17c6920516fcbd40db80ce0fd49a3e8a1fd245313eebc9231b31c765e8fb
Why AI Teams Need More Than Shared Files
Supporting evidence: Lindley et al. argue that persistent shared information alone may not sustain coordination when its significance changes, and identify context, rationale, and interaction as relevant; Gyarmati et al. provide a narrower technical example in which linking notebook outputs to computation and earlier requests helped agents avoid undoing prior decisions. The first paper presents a framework informed by qualitative cases, while the second reports notebook experiments; neither establishes that Lens addresses coordination continuity across broader team workflows.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.05904v1 — Original paper
Excerpt reference:
static/papers/2612.05904v1.md:16-215
Basis: Paper text
Source file SHA-256:9bef922a0ca9ea0003df1f979d28a732842a7adcef79ab16da7009aeed6b46162612.05904v1 — Original paper
Excerpt reference:
static/papers/2612.05904v1.md:1816-1888
Basis: Paper text
Source file SHA-256:9bef922a0ca9ea0003df1f979d28a732842a7adcef79ab16da7009aeed6b46162611.27746v1 — Original paper
Excerpt reference:
static/papers/2611.27746v1.md:48-118
Basis: Paper text
Source file SHA-256:70dca5c3c370aef027a72e773d19d219b1f0780bd83259e39de349eb4f8a04992611.27746v1 — Original paper
Excerpt reference:
static/papers/2611.27746v1.md:199-267
Basis: Paper text
Source file SHA-256:70dca5c3c370aef027a72e773d19d219b1f0780bd83259e39de349eb4f8a0499
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
What makes AI-involved art worth buying?
Source published
Shared keywords: human ai collaboration
When AI Agents Learn From Scientific Work, What Transfers?
Source published
Shared keywords: ai agents, data analysis
Keeping AI Claims Attached to Their Evidence
Source published
Shared keywords: ai agents, data provenance
Checking Whether AI Agents Act on What Users Actually Asked
Source published
Shared keywords: ai agents, data provenance
A receipt-checking layer for AI agents
Source published
Shared keywords: ai agents, data provenance