Decreasing code editing failures by 38% with output normalization
blog.sweep.dev·15h·
Discuss: Hacker News
Flag this post

Decreasing code editing failures by 38% with output normalization

• November 03, 2025

We’re building a better coding agent for JetBrains.


Editing code is the most error-prone step in any coding agent. Here’s how we decreased the error rate of string replace in our JetBrains coding agent by 38%.

How Coding Agents Work

For those unfamiliar, coding agents work by taking a user request and repeatedly calling tools to complete it.

Tools are functions where the LLM provides the arguments and the agent (or harness) executes the function with those arguments.

For example, if you want an LLM to check stock prices, you would first want to implement a tool to fetch the stock price (by calling the correct api).

Then the LLM can provide the correct args to “check_stock”:…

Similar Posts

Loading similar posts...