Answering Developer Questions with Annotated Agent-Discovered Program Traces
Abstract
Developers often find themselves asking questions that cut across a code base. Answering these questions requires gathering relevant facts and tracing flow through the program. Yet today’s tools offer limited support for answering these questions. Developers can either use imprecise AI tools that ignore flow or flow-tracing tools that impose a great number of choices. In this paper, we introduce a new kind of tool that answers questions better by bringing together elements of both AI and flow. We instantiate this idea in Trailblazer, a system underpinned by an AI agent that simulates an information forager, iteratively tracing program dependencies in search of answers. Then, Trailblazer packages information it found into an answer digest, which includes interactive, annotated traces of exploration. These traces can be stepped through to help developers orient to the code and find where the answer is distributed within it. In a lab study, Trailblazer helped participants answer questions more efficiently and gain greater familiarity with program flow than an AI question answering baseline. This shows how AI agents can leverage program flow to bring additional structure and clarity to its answers.
- Venue
- UIST 2025
- Volume
- Proceedings of the 38th Annual ACM Symposium on User Interface Software and Technology
- DOI
- 10.1145/3746059.3747652
- https://dl.acm.org/doi/pdf/10.1145/3746059.3747652
- Anthology ID
2025.uist.58
Cite
@inproceedings{yan-etal-2025-answering,
title = {{Answering Developer Questions with Annotated Agent-Discovered Program Traces}},
author = {Litao Yan and Jeffrey Tao and Lydia B Chilton and Andrew Head},
booktitle = {Proceedings of the 38th Annual ACM Symposium on User Interface Software and Technology},
isbn = {9798400720376},
year = {2025},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/3746059.3747652},
url = {https://doi.org/10.1145/3746059.3747652},
abstract = {Developers often find themselves asking questions that cut across a code base. Answering these questions requires gathering relevant facts and tracing flow through the program. Yet today’s tools offer limited support for answering these questions. Developers can either use imprecise AI tools that ignore flow or flow-tracing tools that impose a great number of choices. In this paper, we introduce a new kind of tool that answers questions better by bringing together elements of both AI and flow. We instantiate this idea in Trailblazer, a system underpinned by an AI agent that simulates an information forager, iteratively tracing program dependencies in search of answers. Then, Trailblazer packages information it found into an answer digest, which includes interactive, annotated traces of exploration. These traces can be stepped through to help developers orient to the code and find where the answer is distributed within it. In a lab study, Trailblazer helped participants answer questions more efficiently and gain greater familiarity with program flow than an AI question answering baseline. This shows how AI agents can leverage program flow to bring additional structure and clarity to its answers.}
}