Code Shaping: Iterative Code Editing with Free-form AI-Interpreted Sketching

Ryan Yen, Jian Zhao and Daniel Vogel

Abstract

We introduce the concept of code shaping, an interaction paradigm for editing code using free-form sketch annotations directly on top of the code and console output. To evaluate this concept, we conducted a three-stage design study with 18 different programmers to investigate how sketches can communicate intended code edits to an AI model for interpretation and execution. The results show how different sketches are used, the strategies programmers employ during iterative interactions with AI interpretations, and interaction design principles that support the reconciliation between the code editor and sketches. Finally, we demonstrate the practical application of the code shaping concept with two use case scenarios, illustrating design implications from the study.

Venue
CHI 2025
Volume
Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3706598.3713822
PDF
https://dl.acm.org/doi/pdf/10.1145/3706598.3713822
Anthology ID
2025.chi.735

Cite

@inproceedings{yen-etal-2025-code,
    title = {{Code Shaping: Iterative Code Editing with Free-form AI-Interpreted Sketching}},
    author = {Ryan Yen and Jian Zhao and Daniel Vogel},
    booktitle = {Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems},
    isbn = {9798400713941},
    year = {2025},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3706598.3713822},
    url = {https://doi.org/10.1145/3706598.3713822},
    abstract = {We introduce the concept of code shaping, an interaction paradigm for editing code using free-form sketch annotations directly on top of the code and console output. To evaluate this concept, we conducted a three-stage design study with 18 different programmers to investigate how sketches can communicate intended code edits to an AI model for interpretation and execution. The results show how different sketches are used, the strategies programmers employ during iterative interactions with AI interpretations, and interaction design principles that support the reconciliation between the code editor and sketches. Finally, we demonstrate the practical application of the code shaping concept with two use case scenarios, illustrating design implications from the study.}
}