A new study from JetBrains Research found that 60% of developers are ready to delegate code refactoring to AI. Forecasters had guessed only 44%.
Refactoring means cleaning up and reorganizing existing code without changing what it does. It is like tidying a room: the room works the same, but it is easier to use.
What the study was about
We often ask what AI models will be able to do next. JetBrains asked a second question: what will developers be willing to let AI do? Being able to finish a task is not the same as being trusted with it.
To explore both, JetBrains ran a forecasting challenge called AI Outlook With JetBrains on Metaculus, a forecasting platform. People predicted AI benchmark results and developers' attitudes toward AI. There were 6,039 forecast submissions from 296 participants.
JetBrains compared the predictions with real results. For developer attitudes, it used the 2026 edition of its Developer Ecosystem Survey. The top three forecasters were tdeeno (529 points), dimaklenchin (525), and KirillYakunin (515).
Where developers surprised the forecasters
Readiness to delegate changed from task to task. Forecasters were too cautious on some tasks and too hopeful on others.
- Refactoring: forecast 44%, result 60%.
- Debugging: forecast 34%, result 46%.
- Using cloud-based generative AI at work: forecast about 69%, result 62%.
- Belief that demand for developers will fall: forecast about 44%, result 37%.
- Writing boilerplate code: forecast about 80%, result 80%.
- Checking code for possible issues: forecast 63%, result 62%.
Boilerplate code is repeated, routine code that developers write again and again. It is also where forecasters were most accurate.
So a simple claim like "developers will embrace AI" hides a lot. Willingness to delegate debugging, to use a cloud service, and to feel secure about jobs are separate questions.
How attitudes have grown
JetBrains also points to its report on developer sentiment for context. Between April to June 2025 and May to July 2026:
- Readiness to delegate writing application logic rose from 18% to 50%.
- Readiness to delegate test writing rose from 50% to 75%.
More developers also expect AI skills to be required. The report found 79% expect employers to require proficiency with AI development tools, up from 59% in 2024. The share who believe AI coding will reduce demand for developers rose from 28% in 2024 to 37% in 2026.
JetBrains stresses that these numbers show beliefs, not measured job losses. They also come from surveys of different groups over time, not the same people tracked year after year.
An unexpected pattern among AI fans
JetBrains could link 60 complete research questionnaires to participants' forecasts. The questionnaire asked how much interest, enjoyment, and fun would motivate people to use AI at work.
All six estimated links between enjoying AI and forecasts were negative. People who expected to enjoy AI tended to predict that fewer other developers would be ready to delegate. The clearest cases were refactoring, improving or optimizing code, and debugging.
The difference was small: one point higher on a five-point enjoyment scale went with forecasts about 1.5 percentage points lower. JetBrains calls this an exploratory finding and notes the sample was small and voluntary.
Enjoyment and personal value are different
On jobs, the pattern split. Forecasters who expected to enjoy AI predicted less agreement that AI could replace developers or reduce demand for them. Those who expected AI to be useful to them predicted more agreement.
An enjoyment score of 4 instead of 3 matched an estimate about 1.9 points lower. The same step in usefulness matched an estimate about 1.9 points higher. JetBrains did not ask people to explain their answers, so it cannot say why.
What this means for developer tools
- Ask separately whether people enjoy a tool, find it valuable, feel capable with it, and expect colleagues to accept it.
- Product teams should ask which tasks developers will delegate and under what conditions.
- Researchers should track task-specific experience over time and test the pattern in a larger sample.
What It Means for Developers
The study is about attitudes, not about how well AI refactors code. Still, it hints at where tools may be accepted first.
What It Means for Software Developers
- Refactoring and debugging are tasks where more developers are open to AI help than many people expected. You may find colleagues ready to try them.
- Readiness is not the same as quality. Review AI-made changes and run your tests, just as you would for a teammate's code.
- Trust differs by task, so try AI on one narrow job first, such as boilerplate or tests, before handing over bigger changes.
- Expectations about employers are rising, since 79% expect AI tool skills to be required. Learning to use these tools well may help you.
- For one team's view on keeping code healthy beyond new features, read our story on Kent Beck on software development needing more than features.
- If you build with JVM languages, see how agent tooling is changing in our story on Spring AI Agent and Koog.
Bottom line
Developers are more ready to hand refactoring and debugging to AI than forecasters expected. They are also less ready on some other questions, such as cloud AI use and fears about demand for developers.
The big lesson is that attitudes depend on the task. Treat each workflow separately, and keep checking the results.

