arXiv:2611.09395cs.SENov 2026

Manuscript Offprint

arXiv:2611.09395

Tracybot: Preserving Developer Intent by Tracing Agent-Generated Code to Prompts

Răzvan Albu, Aliaksei Khval, Maxine Orlova, Danis Music, Filipe Araújo Veras Rosa, Lirong Yi, Ranim Khojah

Rázvan Albu

University of Gothenburg

Gothenburg, Sweden

0009-0000-9470-6204

Aliaksei Khval

University of Gothenburg

Gothenburg, Sweden

0009-0001-2356-0815

Maxine Orlova

University of Gothenburg

Gothenburg, Sweden

0009-0002-2227-0557

Danis Music

University of Gothenburg

Gothenburg, Sweden

0009-0006-2443-8009

Filipe Araújo Veras Rosa

University of Gothenburg

Gothenburg, Sweden

0009-0000-3371-3443

Lirong Yi

Chalmers University of Technology

and University of Gothenburg

Gothenburg, Sweden

0009-0008-7536-8367

Ranim Khojah

Chalmers University of Technology

and University of Gothenburg

Gothenburg, Sweden

0000-0002-1090-3153

Abstract—Large language models (LLMs) are now widely used in software development, and LLM-based coding agents are given increasing autonomy. With coding agents, many design decisions are made in the conversation between the developer and the agent. Typically, the developer starts a conversation with an agent and states their intent, the agent proposes options if needed, and the developer plans the change accordingly. Then, the resulting code is committed. However, in such scenarios, the decisions and the intent behind the changes remain in the conversation, with no link to the code they produced. In this paper, we present Tracybot, an open-source tool that integrates with VS Code, Git, and coding agents to keep track of relevant conversations in an LLM-assisted development process. Tracybot captures each change as a Tasklet which consists of optional planning prompts used to plan a change, together with a build prompt that produces it. Tracybot has two main features: (i) it maps line-level code changes made by coding agents to the Tasklets that produced them, and (ii) it allows the developer to export a Tasklet as a decision record when needed, for example when the decision concerns the architecture of the project. We developed the tool over two iterations of a design science study, while focusing the evaluation on the usability and user-friendliness of the tool. In a focus group (7 participants) and a survey (24 participants), we found that Tracybot was perceived as useful for activities like code review, and most participants found our Tasklet design and presentation to be a clear way to represent the developer's intent. Tool: https://github.com/TracyTeam/tracybot. Video: https://youtu.be/Vg_a1F5eO04.

Index Terms—prompt traceability, developer intent, decision records, coding agents

I. INTRODUCTION

The use of LLM coding agents is becoming a standard part of modern software development. However, the adoption of such agents has outpaced the practices around them, especially in software companies [1]. Few developers explicitly credit AI tools for the code they generate [2], especially after editing the output [3]. Therefore, regulations such as the EU AI Act [4] push companies towards clear AI crediting, and software companies believe prompts used during development need to be stored somehow [1].

Crediting AI usually means labelling code as AI-generated, but a label does not say why the code was written; the prompt does. In an eye-tracking study, practitioners changed their reviewing behaviour when reviewing code labelled as AI-generated, and some used the prompt to guide their review, which calls the need to treat the prompt as a software artifact [5].

The prompt matters even more because of how developers now work with agents. Many implementation and design decisions are made in conversation with the agent. Developers typically start by explaining what they want along with some constraints. The agent then suggests a plan, and they refine it together over several prompts [6]. During such conversations, decisions are made, and eventually the developer requests the agent to apply the planned changes in the codebase. While the change is made and the code is then committed, the reasoning behind it is not. It stays in the developer's conversation history, where teammates cannot see it and where it is easily lost.

Storey calls the absence of explicit goals, constraints, and rationale intent debt, and notes that intent is best documented at the time a decision is made, since recovering it later can be difficult [7]. One way of minimising the risk of intent debt is the use of decision records, which state what was decided, why, and what was ruled out. Conversations with agents contain exactly this information.

To close these gaps, we present Tracybot, an open-source tool that integrates with the developer's IDE (VS Code), coding agents (Claude, Codex, and OpenCode), and Git. Tracybot records each change discussed in a conversation with an agent as a Tasklet, which groups several prompts planning the change with a final build prompt that applies the change in the codebase, together with the agent's responses.

Its main features are: (i) automatically capturing Tasklets during development and mapping prompts to the LLM-generated code, so that developers can click a line in the editor to read the conversation that led to it; (ii) keeping a Tasklet history of earlier Tasklets that changed the same line, so that later changes do not hide the reasoning behind earlier ones, and so that developers can see how the generated code evolved; (iii) maintaining the attribution as the code changes, so that small edits by the developer (e.g., formatting) leave the AI attribution in place, while a major human rewrite (e.g., changing the entire logic) removes it; and (iv) exporting Tasklets as decision records on demand to turn important decisions in conversations into standalone documents. All of this runs in the background using Git features, without interfering with how developers prompt or commit.