<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Code-Quality on Ole Rabanal</title><link>https://omrr.no/tags/code-quality/</link><description>Recent content in Code-Quality on Ole Rabanal</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 21 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://omrr.no/tags/code-quality/index.xml" rel="self" type="application/rss+xml"/><item><title>What complexity costs AI agents</title><link>https://omrr.no/writing/what-complexity-costs-ai-agents/</link><pubDate>Sat, 21 Nov 2026 00:00:00 +0000</pubDate><guid>https://omrr.no/writing/what-complexity-costs-ai-agents/</guid><description>&lt;p&gt;I came across &lt;a href="https://codescene.com/blog/does-code-quality-affect-ai-token-costs"&gt;Markus Borg’s write-up&lt;/a&gt; through &lt;a href="https://martinfowler.com/fragments/2026-11-20.html"&gt;Martin Fowler’s Fragments&lt;/a&gt;. The headline caught my attention: “Does code quality affect AI token costs?” The study looked at how many tokens agents use to review and fix pull requests, and whether code quality helps explain that beyond the size of the change. My first thought: finally, we have some numbers.&lt;/p&gt;&#10;&lt;p&gt;In a &lt;a href="https://arxiv.org/abs/2610.21914"&gt;study of 465 agent-authored pull requests&lt;/a&gt; from open-source repositories, the researchers used CodeScene’s CodeHealth metric. It combines signals such as file length, deeply nested logic, and complex methods into a score from 1 to 10. Before review, they scored each whole file the PR touched as it stood with the changes applied. They then averaged those scores, giving more weight to files with more changed lines.&lt;/p&gt;</description></item></channel></rss>