Urgent.News

What's breaking now, across hundreds of outlets.

AI

Teachback: learning while coding with AI

After using agents for all sorts of software engineering work, I started noticing that I was retaining less of what I learned. I wasn't the only one: in How AI Impacts Skill Formation , 52 participants with Python experience learned Trio, an asynchronous programming library they had never used before. The paper reports a 15.4% difference in quiz scores, with the AI group scoring lower, and no…

Teachback is a tool designed to help developers retain knowledge while coding with AI assistance. After using AI agents for various software engineering tasks, the author noticed they were retaining less of what they learned. To address this, they created Teachback, inspired by a study on metacognitive scripts. The study found that participants using a gated AI assistant repaired errors at a higher rate than those using ungated AI.

Teachback consists of three parts: a gate, solo or worked examples, and recall. The gate requires the agent to ask the user to explain why a change is needed and how it connects to other parts of the project. If the user's explanation misses the causal link, the agent asks follow-up questions. Solo or worked examples involve writing the parts the user already knows, while the agent reviews and provides worked examples for parts the user doesn't understand.

Recall involves checking for knowledge gaps and scheduling spaced reviews using an algorithm like FSRS.

In an experiment, the author compared Teachback with full delegation in fixing two issues: prometheus/client_python and opentelemetry-python. Using Teachback led to a 2.5-point gain in knowledge recall, while delegation stayed at 2.5 points without improvement. The Teachback bug was more complex, requiring the user to understand the issue and leverage the agent's context, which took longer but yielded better results.

The cost of using Teachback was 86 minutes, compared to 11 minutes for full delegation. While the experiment shows promise for Teachback in retaining knowledge during complex coding tasks, more research is needed to confirm its effectiveness and time efficiency.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

More from Friday 27 November →