Where Did This Come From, and Why? Giving Agents the Computation and Intent Behind Every Output with marimo-lens
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…
- arXiv
- 2612.05904
- Authors
- Péter Ferenc Gyarmati, Trevor Manz, Dominik Moritz, Mennatallah El-Assady
- Categories
- cs.HC · cs.AI