Search arXiv⌕ Search

arXiv · 2612.05904

Where Did This Come From, and Why? Giving Agents the Computation and Intent Behind Every Output with marimo-lens

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Péter Ferenc Gyarmati, Trevor Manz, Dominik Moritz, Mennatallah El-Assady. 2026-12-03. Where Did This Come From, and Why? Giving Agents the Computation and Intent Behind Every Output with marimo-lens. https://searcharxiv.org/abs/2612.05904

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Calibrating LLM Explanations to Human Decisions with Reinforcement Learning

Explanations of LLM outputs are considered an important way to make model behavior legible, helping human users make good decisions on downstream tasks. However, default training approaches for improving explanations target model task performance or human preference rather than human decision quality. To bridge this gap, we introduce HD-RL, a reinforcement learning framework for optimizing LLM explanations for human decision making. Our approach calibrates a human decision simulator on observed human decisions, applying a proxy reward model to optimize the LLM to generate explanations that help people to make good decisions. We apply this framework mainly to AI-generated text detection. In our initial data collection phase, we observed that while LLMs possess strong autonomous detection capabilities, the explanations they generate for users yield near-random human accuracy (51.3\%). By applying the HD-RL framework to the open-source Qwen 3.6 model, we generate optimized explanations that improve human performance, achieving a GLMM-estimated human accuracy of 63.8\% in a randomized between-subjects experiment with repeated measures and outperforming RLVR, RLHF, and other baselines by over 8 percentage points. Applying HD-RL to a second task, political speech party identification, produces a similar gain, reaching a GLMM-estimated accuracy of 61.7\% and outperforming baselines by over 10 percentage points.

cs.HC↗

CRM-Agent-Bench: Benchmarking Tool-Using Agents in Stateful Enterprise Environments

Deploying language agents in real applications demands more than the right answer: an agent must execute a multi-step business process correctly, follow domain-specific rules, and interact with a user across a dialogue, where the gap between saying and doing is the gap between a satisfied customer and a real loss. We argue that a deployable-agent benchmark should jointly assess four facets: the outcome an agent reaches, the trajectory it takes, its operational viability, and its policy compliance. Customer relationship management (CRM), where mutable records meet operational rules and consequential effects, exercises all four. We introduce CRM-Agent-Bench, an execution-grounded benchmark of 555 stateful, multi-turn tasks across nine business domains and 36 capability tags. Each task supplies a task-specific executable contract drawn from checks over actions, arguments, order, response, target state, and protected state; success is the strict conjunction of the checks declared for that task. We evaluate the complete agent system through these contracts and report scored coverage, latency, and cost. Across sixteen systems evaluated on the audited final release, strict success spans 64.32% to 83.60%; the closely grouped leading systems nonetheless diverge sharply in cost and per-domain reliability. CRM-Agent-Bench offers an auditable framework for measuring contract-grounded business-transaction integrity and adherence to task-declared benchmark policies, with a portable structure designed for extension as models improve. Github repository: https://github.com/salesforce-misc/crm-agent-bench

cs.HC↗

Towards fNIRS foundation models: A curated corpus of 67 public datasets with channel positions in MNI space

Brain foundation models have transformed medical artificial intelligence and computational neuroscience by reducing the reliance on task-specific data through large-scale pretraining. While they have been successful with non-invasive neuroimaging data, their adoption in functional near-infrared spectroscopy (fNIRS) has lagged due to the limited size and heterogeneity of public datasets, which are collected under varying protocols, devices, and sensor configurations. In addition, no single fNIRS dataset is comparable in size to the largest datasets in functional magnetic resonance imaging (fMRI), electroencephalography (EEG), or magnetoencephalography (MEG). The fNIRS datasets are also spread across different platforms and often have insufficient information, or lack the protocols that would make them easier to use. Given the advances in EEG foundation models that enable flexible modeling across diverse EEG montages, we curated 1,955 hours of fNIRS data from 67 public datasets spanning 2,798 participants, representing the largest fNIRS curation effort to date. The curated data include oxygenated (HbO) and deoxygenated (HbR) hemoglobin signals along with the three-dimensional position of every channel in the standard space of the Montreal Neurological Institute (MNI), which makes positions comparable across datasets. We release dataloaders that handle each dataset automatically, along with the minimal preprocessing pipeline used to prepare the data, at https://github.com/sposso/fnirs-datasets. This work aims to facilitate the future development of foundation models for fNIRS.

cs.HC↗