Archive

Posts Tagged ‘coding agent’

Coding agents as developer tool or tool front end?

November 22, 2026 (5 days ago) No comments

Will the use of coding agents become so pervasive that most existing developer tools fade away?

The Linux kernel has motivated the creation of many developer tools, some of which have been adopted by the kernel developers. One such is Coccinelle, which is used to apply automated patches to many files, e.g., changing the name of a function or adding/removing arguments, when an api is changed.

The plot below shows the growth in the number of source files in the device driver directory between 2011 (kernel version 3.0) and 2026 (version 7.0; code+data):

Number of source files in the device driver directory of the kernel between version 3 and 7.2.

The term collateral evolution originated with the 2006 paper Understanding Collateral Evolution in Linux Device Drivers, which investigated the coordinated update of device drivers when a kernel interface changed. The 2007 paper SmPL: A Domain-Specific Language for Specifying Collateral Evolutions in Linux Device Drivers showed how Coccinelle was an effective tool for mass updating of C source files.

Despite 20 years of active use, if coding agents can do a comparable job to Coccinelle, then future kernel maintainers may switch to applying the tool they use most of the time, i.e., a coding agent. They might instruct a coding agent to drive Coccinelle to make the changes, or instruct the agent to make the changes directly.

The recent paper Keeping Up with the Kernel: Can LLMs Adapt Linux Drivers to Interface Changes?, by Yang, Liu, Kharlamova, Alqasimi, Zhang, Ismail, Sun, and Xue, compared the performance of coding agents against Coccinelle.

The coding agents (DeepSeek Flash, Claude Sonnet 5.5, and GPT-6.1 Sol) did not perform very well. Applying the same patch to many files is probably not a common activity in the training data of coding agent. We will have to wait and how much coding agents improve on this important niche activity.

C is the only language that has a tool as effective as Coccinelle (thanks to the long term work of Julia Lawall; a Java implementation appears abandoned). There has been talk of supporting C++ version, but the size of the language has deterred implementers. Many IDEs support global refactorings, but I don’t know how well they would handle the optional feature support used in the kernel sources.

Using coding agents to patch thousands of files is not an efficient use of resources. Having an agent use Coccinelle to do the work make sense. This is not to say that this is how things will be done. Using coding agents to create a Coccinelle for another language (Python?) is now on my list of things to do (don’t hold your breath).

Writing new code is the high status activity that attracts developers, while maintenance is the lower status activity that occupies most developer time. Will the developer/manager of a coding agent writing new code be considered as higher status than using a coding agent to do maintenance? Management’s strong preference for maintenance is driven by cost and the desire to minimise the likelihood of introducing coding mistakes by minimising the changes made. Now that coding agents have removed the implementation cost hurdle, managers will have to keep close tabs on what developers to ensure they are only doing the high status activity when necessary.

The future is a personal menagerie of bespoke apps

November 15, 2026 (2 weeks ago) 4 comments

Developers write small programs to solve specific problems, with some of these programs deleted soon after use and a few having a long lifetime. It is now possible to cheaply create much larger programs to solve specific problems, thanks to coding agents.

It’s now possible for non-programmers to create small application (I have chatted with many such people). How many non-programmers might be creating applications?

My experience attending hackathons over the last 15-years provides one data-point. The attrition rate at hackathons, pre-coding agent, was around 50% gone by lunchtime and another 50% before submission time, i.e., around 25% of the original attendees actually presented (usually as part of a team). The main reason people left, is that they could not code. They would attend a hackathon thinking they could pick it up on the day, and then had a rude awakening. In hackathons with coding agents, some people still leave, but the attrition rate is not noticeable. It’s no longer necessary to be able to code to solve a problem using software. Based on this niche sample, it could be claimed that the total population of people interested in implementing their ideas in software is four times the number of developers.

I expect that the purpose of many of the programs created by non-programmers will be the same as developers, i.e., to solve specific, personal, problems. Selling programs commercially, that started as personal projects, is rarely worth the effort, or the creator is not willing to risk the investment and effort attempting to make it a commercial success.

Developers operate in an environment that naturally supports the storing and execution of the programs they create. Non-programmers sometimes have such an environment, e.g., phone based apps. One popular web-based app hosting/execution service is Vercel.

It’s a natural progression for companies that provide coding agents to also provide a means to store and execute these programs. Support for web-base apps is the obvious first step. Providing the ability to execute any program built using a coding agent is fraught with security and safety issues, and it will probably be a while before these are sorted out. Perhaps they will offer customers to set up and run their own App Store.

Having a personal App Store will reduce the need to submit any updated versions to Google/Apple, and reduce the maintenance effort of keeping up to date with changes to vendor libraries. A 2025 analysis of 2.3 million apps present in the Google Play Store in 2021 found that 76.3% were no longer in the Play Store.

From the users’ perspective, installing from a personal App Stores could be risky.

The future of small’ish niche applications is bespoke simplicity, rather than the singing and dancing, appeal to a wide audience, than current applications tend to be.

Given that things tend to get more complicated over time, the size of these ‘small’ apps will probably grow larger.

Non-trivial data analysis using coding agents

November 8, 2026 (3 weeks ago) No comments

Users cause faults in that they select the code that is executed (via the application functionality used), and provide the input that triggers the coding mistakes. Some application functionality is rarely used, while other functionality is often used. Can we go as far as to say that 20% of functionality is used 80% of the time?

The paper Are 20% of Files Responsible for 80% of Defects?, by N. Walkinshaw and L. Minku sounds like it might provide evidence to help validate the application usage assumption. The authors collected data on 100 GitHub projects, recording the files modified to fix a reported fault, plus various source code metrics. Their analysis looked for a correlation between the number of fault related fixes applied to a file and its source metrics. They did not find meaningful correlations, and that the commonly cited 80/20 split is somewhat fuzzy in practice.

I emailed the authors after the paper was published in 2018, to explain my interpretation of the 80/20 rule, i.e., driven by commonly executed code. The authors said they wanted to take the work further and were interested in exploring this alternative explanation. Researcher projects need funding, which takes time and effort to acquire, in the meantime COVID and then LLMs arrived.

Clustering a program’s source files by functionality, and then finding correlations between these clusters and fault driven fixes would once have required lots of work, and been a great PhD project. Now we have coding agents doing PhD level work in various fields. Perhaps an agent can do the heavy lifting of clustering the source files. Trusting one agent’s analysis would be naive (an analysis of one dataset by 29 independent human teams produced a surprisingly wide variety of conclusions), and the following analysis uses Claude Opus 5.5 (conversation here) and Devin (conversation here).

The paper analysed a version of each project in 2018, and the associated dataset includes the GitHub hash needed to download the corresponding snapshot of each project repo, e.g.,
https://github.com/buildbot/buildbot/archive/62ef53c36dd1d8a663f62ed4301a282a53b96d23.zip

A few Python and Java projects were downloaded as test cases. LLM performance is likely to be the strongest for these languages because of the quantity of training data available.

Not having any domain knowledge for the projects, I chose two reasonable sounding clustering factors: a description of the functionality implemented by the code contained in a file and the file’s ‘call-graph’. The first instruction give to the agent was:

The attached zip file contains a 2018 version of the buildbot
Continuous Integration Framework written in python.
Create a csv file containing each python file, F, one per row.
Describe the application functionality implemented by the code
in the file, F, and list all the other files that contain one
or more functions that are called by a function in the file F.

followed by the instruction:

Create a hierarchy of file clusters, based on the functionality
they implement and use.

The file/fault information for all the projects is contained in loc_churn_defects.csv. I’m sure the agent could have extracted the rows specific to each project, but I wanted to look at each project’s data first (old habits die hard; I also did the FpLOC calculation, got it wrong the first time, Claude pointed out my mistake and corrected it!).

The column FpLOC in the attached csv file lists the number of
faults fixed per line in the python file listed in the
corresponding File column.
To what extent are files with high FpLOC clustered together and
files with a low FpLOC clustered together.

Both agents agreed that while there was some correlation between faults and fixes, it was at best mild. Both pointed out that file age is likely to be an important factor (i.e., more faults fixed in older files), and that adding this information could improve the correlation being sought.

The agents both took around 15 minutes elapsed time per project. The Devin chain-of-thought was interesting, while Claude was mostly uninformative while working.

Rather than spend time looking at the csv files produced (available via the conversation links above), and the summary analysis given after each question, I got the agents to write a paper:

Write a paper that describes the techniques used to describe
each file, the hierarchical clustering algorithm, followed by
the results of the investigating to find a connection between
fault fixed and clustering.  Suggest factors that limit the
accuracy of the analysis and what could be done to gain a greater
understanding of the connection between files and fixed faults

The Claude Opus report was rather poor (just one graph; perhaps there is a data analysis toggle that needs to be set), while the Devin report was rather good (interesting graphs and analysis).

Without information on the age of the files, a very important factor, this dataset is not sufficient to say anything reliable about a possible 20/80 split.

Both Clause Opus 5.5 and Devlin performed very well. When doing research for real I would want more chain-of-thought, both to gain confidence about the final answer and to read about possible new ideas. The chain-of-thought provided by Chinese models makes them my first choice for building mathematical models. I need to experiment with the Chinese coding agents.

Program to extract x/y coordinates of points in pdf graphs

October 18, 2026 No comments

There are two techniques for specifying the display information contained in any graph within a pdf file. Raster graphics specifies (e.g., jpeg and png formats) the location and color of pixels, and vector graphics specifies (e.g., pdf and svg) the x/y coordinates of shapes/colors on the page. With vector graphics it’s possible to calculate the graph-axis relative positions of displayed symbols using the page relative x/y positions of each symbol (denoting a measurement point), the graph axis and axis tick marks/values; something I first did out in 2013. My Evidence-base software engineering book contains 10+ datasets that have been manually extracted from vector graphics within pdf files, i.e., by writing a graph specific awk script (a summary of the processes and tools used).

Can coding agents be used to implement a program detects and extracts the x/y coordinates (axis relative) of data points in any graphs, implemented using vector graphics, contained in a pdf file?

Do LLMs know of any tools that already do this? No.

This weekend I attended the Reinvent the Wheel: A Tools for Science Hack, where attendees were given credits for a month of Claude Max (these days I don’t write enough code to make it worth spending more than $20 per month on subscriptions). This was a perfect opportunity, and motivation, to create a specification of the data point x/y coordinate extraction process, and then to attempt to get a coding agent to generate a python program that extracted this data from any pdf file (whose plots were created using vector graphics).

Data points within a graph are drawn using a variety of symbols, and the symbols are drawn using a variety of techniques. For instances, a circle might be drawn using a single internal pdf instruction, drawing four quadrants using Bézier curves, or even eight Bézier curves, or who knows what (it’s very frustrating).

Then there are the tick marks along the axis, some of which are labelled with numeric values, don’t always start/finish at the ends of the axis, and denote a scale that could be linear or logarithmic.

My plan was to specify what was required, briefly describe the internal organization of a pdf file, provide a pdf file containing a single graph and the corresponding extracted data, as a csv file, and see what happens.

The start of my conversation with Claude Opus 5.5 follows:

Write a python program that takes as input a pdf file and
outputs the x/y coordinates of individual data points displayed
using vector graphics.
 
The vector graphics, as specified by internal pdf instructions,
used to display these data points appear on lines bracketed by
lines that just contain the words "stream" and "endstream"
 
The data points appear within a graph displayed on a page.
This graph contains an x and y axis and may contain other
unrelated lines and text within the plot's x/y axis.
 
The required x/y data point coordinates must be relative to
the values displayed on the plot's x and y axis.
Each x and y axis is drawn as one long line and short tick
marks for particular axis values.
An internal instruction is used to display a numeric value
close to its associated tick mark.
 
Various symbols may be used to display each data point.
For instance, in the attached pdf file a data point is denoted
by a circle created by joining four bezier curves.
The required x/y coordinate is at the center of the
approximate circle drawn by these four bezier curves.
 
All data point coordinates must be output, even data points
having the same x/y coordinates as other data points.
 
The attached file schump.tgz contains a pdf file and
a csv file containing the internal x/y positions of the
data points and the corresponding graph relative x/y positions,
it also contains the page number and the color of the data points.
Each graph is numbered.

It took about 15 minutes to create a python program that extracted the information from the pdf file that matched the contents of the csv file. I was impressed.

The generated program was then extended one feature at a time by describing some possible characteristics of a graph, and attaching a pdf containing a graph containing those characteristics; for instance (another 15-20 minutes):

Extend the program to support data points displayed as a
diamond shape created by drawing four lines.
 
The attached file 53cfc681e8e2afa9feb5820f4886e3018005-009.pdf
is a pdf file. The data points are denoted by diamonds created
by drawing four short lines.

This one/two feature at a time iteration looped six or so times before I grouped the remaining features into one update. Two+ hours later Claude provided 4K+ LOC of python code that appeared to handle everything.

The most impressive behavior was spotting minor issues that I had not mentioned and supporting them, or asking if they should be supported.

The pdfgraph2csv GitHub repo contains the code + regression tests.

Is the information in the output csv files correct?

The x/y coordinates of the points in the graphs in my book are available to be checked against. I also plan to repeat the process using a coding agent from another vendor, and to compare the contents of the corresponding csv files. N-version programming, here we come.

Programming language choice is becoming a build option

October 11, 2026 No comments

What significant problems do high-level programming languages solve in a world of coding agents?

The original rationale for using high-level languages was to reduce the cost of porting existing software to different platforms. In a coding agent world, this is a benefit for those interested in having their software run on more than one platform. Is it a worthwhile benefit for those running on just iOS and Android (Shopify recently switched to a common codebase in React Native)? A general answer to this question will have to wait until things have settled down, some years from now.

Some software systems have configuration options that are selected at compile time. Having coding agents generate all possible option configurations is only practical when there are only a few possible combinations. The Linux kernel contains around 15,000 options, and while many of the 10^{35663} possible option combinations are unrealistic, just 243,323 combinations produces a huge variety of executable programs. The source code approach is the only workable approach when many compiler time options need to be supported.

Existing practice is that program source code is written in a high level language, which is then translated to an executable form. Generating source in the programming language(s) being actively used enables coding agents to be seamlessly integrated into existing practices.

In specification based programming, English (or another human language) is the language used to create software. The actual programming language used when generating source code is not yet irrelevant.

Various kinds of activities are reviewed during the development of a software system. These include: requirements review, design review, code review, test review, and acceptance review.

Source code is needed for code review, which is frequently talked about but infrequently performed (an analysis of evidence; see section 6.6.1 for a summary of practices). Code review is a great mechanism for synchronizing practices within a team, training new developers and generally keeping team members up to date with what others are doing. These are benefits that apply when software is written by people. When source is generated by a coding agent, why do people need to review it? The reasons I have heard involve issues covered during requirements and design reviews. Another coding agent might check the code looking for mistakes, and this could be labelled as a (non-human) code review.

If the generated source is not going to be read by people, does it matter which programming language is used to generated it?

Coding agents require source code for training, and this is available in a variety of programming languages. Quantity of source code training data has a significant impact on LLM performance. Generating source in the language most likely to elicit the best coding agent performance is the obvious answer.

Choice of programming language is sometimes driven by current fashions, happenstance or a particular belief system. For instance, the conversion of existing non-Rust source to Rust is driven by the current fashionably status of that language, along with the effectiveness and low cost of coding agents.

Programming languages choice is evolving in to being a configuration option.

I’m sure that eventually somebody will convert the Linux kernel to Cobol and build a running system. As a start, I used the Devin coding agent to convert the contents of the kernel init directory to Cobol source and Fortran source. Both sets of source compile, but don’t link against any other kernel object files.

Before coding agents hackers were content to create their own new Linux distribution. To be leading edge in the future, a hacker will need to translate the Linux kernel and/or distribution to a language of their own creation (LLMs are now building compilers).

Single-handedly creating/implementing a language and using it to implement an operating system used to be a niche activity. First released in 2005, Terry A. Davis single-handedly wrote TempleOS in a language he created and implemented called HolyC, driven by a revelation from God. In the coming years, I expect to see many of these belief driven projects.

Source line length before coding agents

September 20, 2026 1 comment

Will coding agent generated source code contain the same consistent patterns of behaviors that appear in human written source?

A brief analysis would suggest that the answer is: Yes. LLM training data is human written code, and coding agents are generating code to implement the functionality that developers would have otherwise implemented themselves.

Some coding patterns are driven by historical accidents, or at least appear to be. A line of code has to be visible on the display seen by the person writing it. Consequently, a line of source containing more characters that can be displayed on a line are likely to be rare. The plot below shows the number of C/C++ source lines containing a given number of characters in early 2000 (red) and 2026 (green), and the number of lines containing a given number of tokens in 2000 (blue), lines are fitted exponentials, and vertical grey lines at 80 and 120 characters (common default value used for tab characters; code+data):

Number of C source lines containing a given number of characters in 2000 and 2006, and tokens in 2006, with some regression lines.

The dramatic drop in the number of lines of a given length, just below 80 characters, is consistent with the majority of character-based displays having lines containing 80 characters (the same as punched cards). A revolution in display technology happened between 2000 and 2026, namely CRTs were replaced by LCDs, significantly increasing possible display width. The decline in number of lines containing a given number of characters has decreased since 2000. In 2026, the 80 character line length break-point is less dramatic than in 2000, and the decline a lot less steep. Also, there appears to be a new break-point emerging at 120 characters; perhaps without LLMs the 80 character break-point would have gradually disappeared. While bit-mapped displays don’t have lines, existing practices live on and evolve.

The number of lines containing a given number of tokens, for the early 2000 measurements, decreases exponentially, with lines approx e^{-0.22*tokens}. Whitespace indentation adds characters, not tokens.

Most long lines are caused by indentation of the source code, e.g., indenting the body of an if-statement. Indentation is used to reduce the developer effort needed to understand statement clustering and sequencing.

The plot below shows the number of if-statements occurring at a given nesting level, along with regression fits, of the form ifStmts approx e^{-0.66nestingLevel}, to the 2026 Vim and SQLite data; the Linux data was better fitted by a power law (code+data):

Number of occurrences of if-statements at a given nesting level, with fitted regression lines.

Some of the reasons developers write deeply nested code include: the nested code accesses local variables that would be a hassle to pass as function arguments, creating a function would interrupt their train of thought.

Deep nesting is often cited as bad practice, along with the usual unsubstantiated claims about it being error-prone, or hard to understand, or whatever.

Coding agents indent code because the training data contains indented code, and because the generated source is likely to be looked at and modified by developers. Attention based LLMs include information on the position of the token on a line, so given the contents of the training data, coding agents are unlikely to generate lines containing more than 80 characters.

If a time is reached when most developers don’t look at agent created code (few look at the assembly code generated by compilers), its visual layout becomes irrelevant. There are cost savings to be made by not indenting or limiting nesting depth. Indentation increases coding agent costs by consuming more tokens. Creating a new function consumes more tokens that simply generating a deeper nesting level.

If a developer wants to see indented source, they can always use a pretty printer.

A coding agent can be told not to indent, but given their training data do they indent internally and then remove it, i.e., an increase in token usage? This is another question to the growing list of Mechanistic interpretability problems.

Software effort estimation in 2026

September 6, 2026 No comments

It’s 2.5 years since my 2024 post summarizing what I knew about software effort estimation. For ongoing projects the role of estimation is as a planning tool, breaking down a large chunk of work into what are estimated to be small, well-defined, chunks. With two-thirds of estimates being within a factor of four (over or under) of the actuals, accuracy was not a primary goal.

The impact of coding agents capable of implementing these small tasks for peanuts is on developer staffing, not on the need for planning and breaking down work into connected small chunks.

Coding agents follow the specification they are given. Large, complicated programs will have large complicated specifications, which are likely to require a lot of human effort to create. For instance, the specification for the recent LLM generated C compiler

How long will it take to create a specification and how many iterations will be needed to create a good enough program? Estimation has not gone away, it has just moved upstream of the implementation. While specifications have existed millennia longer than software development, we are at the start of learning to use them to direct coding agents (the term vibe coding was created in February 2025). While logs of developer coding agent sessions are starting to be collected, it will take some years for patterns of practice to stabilize.

The process followed to estimate Function Points appears to be ideally placed to be extended to cover specification creation for coding agents.

Peanuts in bulk can be expensive. The novelty of much lower costs, when using coding agents, will soon wear off. Agent costs will become the new normal, which means there will be pressure to reduce them, and management will want estimates because the requirement to fill in boxes has not gone away.

Is agent token consumption purely a driven by the LLM(s) used and the selected configuration values? A recent study investigated the impact of the wording of the specification on the tokens spent by a selection of agents. The results showed that a specification containing bare user stories increased token spending by 30%. We will have to wait to find out whether the implications of this result (i.e., investing in more detailed user stories reduces token spending) replicates.

It would be very useful to have an estimate of likely token usage for a given specification, before any code is generated, or perhaps a real-time cost estimate during generation. One study found that current frontier models failed to accurately predict their own token usage (correlation of 0.39), humans predictions were equally poor.

Many projects don’t have a separate line item for testing costs, which often get bundled with implementation costs (the SEA Data Warehouse dataset separates out design/implementation/testing effort). Large projects may have people who work on integration and/or release testing.

When coding agents are used, testing is clearly a distinct piece of work separate from implementation. How effective is the specification used to generate the code at generating good enough tests? Current research is an extension of existing testing practices, rather than anything coding agent specific. A lot of existing research has focused on unit testing, and of course models have been fine-tuned for unit testing.

Implementation cost reductions have brought N-version programming into the realm of consideration for some projects.

Will the way developers work change to be like tradesmen who are hired to install a new fitted kitchen or bathroom? With developers installing new application functionality specified by the client. Perhaps some will be more like builders hired to make structural changes to a house, while others will do small jobs, like plumbers, electricians and carpet fitters.

As always, some researchers fail to move on when the world changes and continue to publish papers that use LLMs to estimate human task implementation time.