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
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/Vga1F5eO04.
Create a lesson
Related papers
SPARK: Semantic-preserving Prompt Mutation for Code Generation using Consensus-based Verification Framework
Shared title terminology · Alireza Daghigh, Chung-Yu Wang, Luca Filippelli et al.
How developers split roles among them and a coding agent and what "collaboration" means
Shared title terminology · Linus Ververs, Helya Dadkhah, Lutz Prechelt
EmbedGym: Letting Coding Agents Develop and Debug Embedded Firmware Without Physical Hardware
Shared title terminology · Minghui Zhao, Yiming Li, Sophie Zhu et al.
Beyond Prompts: Runtime Contracts for Coding Agents
Shared title terminology · Reda Heddad
AgentScript-Eval: Benchmarking LLMs and Agents for Code Generation in an Enterprise DSL
Shared title terminology · Dipin Khati, Shubham Mehrotra, Bin Bi et al.
From Delegation to Action Approval: An Exploratory Study of Developers' Practices in Collaborating with AI Coding Agents
Shared title terminology · Yinan Wu, Dominik Wermke, Ze Shi Li et al.