Back to AI News
arxiv

marimo-lens: Giving AI Agents Provenance-Aware Access to Notebook Outputs

The paper introduces marimo-lens, a tool that builds an extended provenance graph (Lens graph) spanning view, computation, and intent for reactive Python notebooks. It allows AI coding agents to access the computation and earlier user requests behind any output, preventing silent undoing of prior changes. Experiments show agents using marimo-lens locate computation more accurately and reduce conflicts with earlier requests.

AI Brief

Provides a concrete, novel method to improve AI agent reliability in data analysis by preserving intent and computation history.

arXiv:2612.05904v1 Announce Type: cross Abstract: Analysts delegate data work to coding agents and ask for changes by pointing at an output, such as a chart bar or a report number. Yet current tools pass the agent only that output, often as a screenshot, and leave out how it was computed and why. Without the earlier requests behind the computation, the agent can satisfy a new request but silently undo an earlier one. Drawing on 7,293 Observable notebook histories, we therefore introduce Lens, which builds and navigates an extended provenance graph, the Lens graph, spanning view, computation, and intent. With Lens, analysts point at outputs through its interface, and agents call Lens tools to read the computation and earlier requests behind them, then point back. We implement Lens in marimo-lens for marimo, a reactive Python notebook. In three experiments on public team notebooks, we found that every agent with marimo-lens located the computation behind a pointed output more accurately and reported earlier requests on it, with far fewer input tokens for agents that cannot read images. When a new request conflicted with an earlier one, agents with marimo-lens undid the earlier change far less often. We release marimo-lens as open source and report its early use.
Be the first to rate this article.

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!