Technology28 min

Autonomous software with Claude Code: 2,860 PRs in 45 days

45 days since the first post. 2,860 PRs, 146 decisions, 106 sessions I didn't start. Where is the system on the levels of autonomy, how much work does it do, and where does it still get stuck on me?

Türkçe oku

In the first post I wrote about the first five weeks of the autonomous software system I built on my own computer. That post was mostly a list of mistakes. I was so busy building the system that would build the products that there was no time left for the products, every agent read the whole constitution, and every decision came to me. At the end of the post I wrote down my next goal: every job I still do by hand is an obstacle I need to get past.

This post covers October 8 to today, the next 45 days. The question is a bit different this time. How much work the system does is already clear. What I really want to know is how much of it gets done when I'm not around.

45 days · 2,860 merged PRs · 21 repos · 146 decisions · 106 sessions I didn't start · 11 runners, 4 machines

Levels of autonomy

To show which stage we've reached, we need a scale. The one the industry usually cites for levels of automation, and the one we often turned to on platform teams when automating processes, is SAE's 0 to 5, made for self-driving cars, but there is a scale that fits agentic development better: Levels of Autonomy for AI Agents, a 2025 paper by Feng, McDonald and Zhang. It doesn't define the levels by what the agent can do but by the role the user plays. There are five levels: operator, collaborator, consultant, approver and observer. I adapted the paper's definitions to our system myself.

Levels of autonomy: 1 operator, 2 collaborator, 3 consultant, 4 approver, 5 observer. Today we are at level 4.

The five levels of Feng, McDonald and Zhang, adapted to our system. Orange is where we are today.

When the first post ended we were trying to move from level 2 to level 3, which means I was trying to become the consultant. The team lead split up the work, and the acting-ceo was trying to close decisions on my behalf, but it couldn't quite do it the way I wanted. And everything started with a session I opened. If I didn't sit down at the computer, no work started at all.

Today we are at level four: approver. The system starts team leads without me opening a session, and when there is nothing Ready, it grooms the next issue from the backlog by itself. It no longer asks me about operational work on GitHub, Google Cloud, the App Store or Play Store; it only brings me the decisions we named in advance. The last rules for this level arrived on November 16 and 17. In the five days after that the system started 44 sessions, and none of them got stuck at startup, crashed or ran out of time. At level five I'll only be watching. Spend, release, design and constitution decisions will belong to the system too. We're not there yet, and I explain why further down.

1- Volume: 64 PRs a day

In the first five weeks, 1,108 PRs were merged. In the next 45 days that number was 2,860. The daily average went from 29 to 64. Agents opened 2,243 of them, 616 are Renovate's dependency updates, and GitHub Actions opened the remaining 1. Without Renovate, the daily average is 50. The median time between an agent opening a PR and that PR being merged is 8.5 minutes (9 minutes measured from the first commit, below).

Merged PRs per week. Orange is system infrastructure, blue is products and other repos, gray is Renovate. The last column is a five-day week.

Merged PRs per week. Left of the dashed line is the period the first post covered.

2,860 merged PRs. The busiest day was November 2, with 155 PRs merged.

The gray part is Renovate. When it started on October 11, it opened every update that had piled up in every repo as a separate PR, around 170 PRs a week. Once the backlog was cleared, it kept opening more than 100 PRs a week. A bit of over-engineering, you could say. So on November 2 I stopped it from opening a PR for every update. Now it only runs on Monday nights between 00:00 and 03:00, with at most 5 PRs open at a time. Renovate PRs per week went from 169 to 33, then to 14 and 9.

The orange part is the system infrastructure. The main problem in the first post was that we were writing process instead of product. The system infrastructure's share of all PRs was 12.8% in the first five weeks and dropped to 9.2% in the next 45 days. The orange bump in the week of November 10 comes from setting up the dispatcher. I come back to the drop in the last week in the dispatcher section.

Most of the work goes to two products. The one with the most work, with 710 PRs, is an app about electric vehicles. A fantasy NBA assistant follows with 618 PRs (one of my favourite pastimes :) The number of repos that received merges went from 11 to 21. Some of the new ones are the open source projects I mention below.

The issue side looks similar. 1,759 issues were opened in this period: 371 of them are bugs and 80 are labeled security. There are 24 repos in total today, with 20 open issues across all of them.

2- 4 key metrics

Software teams usually measure delivery performance with DORA's 4 key metrics: deployment frequency, lead time for changes, change failure rate and time to restore service. I pulled them from GitHub data, with Renovate's PRs left out of all of them. They aren't exactly DORA's own definitions, so for each one I also say what I counted.

Four metrics. At the top, commits deployed to production per day, with days that have no records in gray. Below, per week: median minutes from first commit to merge, the share of merged PRs that are fixes or reverts, and the median time from a bug issue opening to being resolved.

4 key metrics. Left of the dashed line is the period the first post covered.

Deployment frequency: I counted the commits that went to production. Only production deploy workflows are in it, not uploads to the store test tracks, and a commit deployed by two workflows counts once. The gray spans in the chart are days with no GitHub Actions records. Actions did run on those days, the run numbers skip ahead, so the records were deleted afterwards. I couldn't find out why; I think it was probably the GitHub incident on November 11. On the 17 days with records after October 8, 267 commits went to production, 16 a day on average. The fantasy NBA assistant takes 5.9 of those a day and the electric vehicle app 4.1. Deploys are fewer than merges, because merges that arrive while a deploy is running wait in line and then go out in a single deploy.

Lead time for changes: DORA measures it from commit to production. The median from a PR's first commit to its merge is 9 minutes, almost the same as in the first post's period. After 37 and 28 minutes in the first two weeks it settled between 7 and 11 minutes, and last week it was 5. I could only measure the part up to production on days with deploy records. For 480 PRs after October 8, the median from first commit to the end of the deploy was 39 minutes. The median for the part from merge to the end of the deploy is 17 minutes.

Change failure rate: there's no direct record for this. We don't track which deploy broke something in production. Instead I looked at how many of the merged PRs were fixes or reverts. It was 30.4% in the first post's period and fell to 25.3% in the next 45 days. This isn't exactly change failure rate, because not every fix repairs the previous deploy; some close an old bug. But it shows how much of the work goes to fixing things. The failure rate of the deploy workflows themselves fell too: 4 of the 39 deploys before October 8 failed, and 8 of the 351 after, so from 10.3% to 2.3%.

Time to restore service: I looked at the median time from a bug issue opening to being resolved and closed, leaving out the ones closed as "not planned". The median went from 29 minutes to 22. The real difference is in the long tail. The p90 used to be 9.8 hours; now it's 5 hours.

3- Most decisions don't reach me, and the ones that do come in one morning message

In the first post I wrote about the acting-ceo. This agent closes, on my behalf, the decisions that don't need to come to me. In the last 45 days, 146 decision issues were opened and all of them were closed. 129 were closed on the day they were opened. The median wait was 28 minutes.

Decision issues: 75 in the first five weeks, 146 in the next 45 days. 43 ceo-action issues have come to me since November 13.

Decision issues, and the ones that reached me through the inbox set up on November 13.

For the ones that do need me, we set up an inbox on November 13. If a decision is one only I can take, the agent opens the issue with the ceo-action label and carries on with the default it recommends, without waiting. Every morning the acting-ceo sends me the open ones as numbered questions in a single Telegram message. I write my answers, and it records each answer on its issue. Since then 43 issues have come to me. In the first four days it was 2 or 3 a day; after November 17 it went up to 6 or 7 a day. About a third of them aren't really decisions either. They're something that has to be done with my account in Play Console or App Store Connect: an action, a sign-in or an upload.

A few examples of the decisions that came to me: one was a design choice where I picked one of three options. One was approving the cost of the killswitch that kicks in when the budget is exceeded. And one was moving the electric vehicle app to production on the Play Store.

4- 106 sessions I didn't start

Six weeks ago the real obstacle was this: if I didn't open a session, no work started. On November 12 I had a dispatcher built to fix that. The acting-ceo stays open in a terminal all the time and restarts every morning at 08:00 to clear its cache. Every 30 minutes it checks the queue and starts a team lead in the background for every product that has open work and no running lead. I couldn't build an agent that lives 24 hours and reacts the moment work arrives; it still polls GitHub issues every half hour. When the lead is done, its session closes. The next step is an event based setup, so work can move forward as soon as it's opened.

The first run was on November 13. By November 22, 106 lead sessions had been started, and they ran for 58 hours in total. The median session took 7.4 minutes.

How the 106 sessions the dispatcher started ended. November 13–17: 25 work done, 13 blocked, 10 stuck at startup, 5 crashed, 4 ran out of time, 2 left a handoff note, 3 stopped. November 18–22: 33 work done, 10 blocked, 1 left a handoff note.

Sessions the dispatcher started and how they ended, before and after the November 17 fixes.

The left panel should be read like the mistake list in the first post. Between November 13 and 17, 25 sessions finished their work. But "work done" is the lead's own exit reason; it doesn't mean each one merged a PR. 13 sessions hit a blocker, labeled the issue blocked and left, which is the right behavior. Most of the orange ones, though, are my fault. 10 sessions got stuck before they even started, 5 crashed and 4 ran out of time. The remaining 3 were all stopped by hand on November 14. While the 106 sessions were running, 65 PRs were merged in these repos in total.

The busiest day was November 17, with 30 sessions started. 10 of them got stuck at startup and 11 hit a blocker. It turned out that a stuck lead was sitting at a confirmation screen at startup with nobody to answer it, holding its slot on the machine for hours. Three fixes came the same day. First, a watchdog that closes a lead that produces no output within 10 minutes. Second, the dispatcher could only start one lead per half-hour round, so even when jordan (2019 MacBook Pro) was idle, its turn waited for the next round. Now both machines can start their own leads in the same round. Third, a product could get at most 4 leads a day. We had set that cap so a product that kept crashing wouldn't eat the whole day. But sessions that finished their work counted toward it too, so a product that was going well hit the cap around noon and stopped. We raised the cap to 8 and stopped counting sessions that finish their work.

The right panel is the five days after the fixes. Between November 18 and 22, 44 sessions ended. 33 finished their work, 10 hit a blocker and one left a handoff note. Not a single session got stuck at startup, crashed or ran out of time.

But over the same days the volume dropped. Between November 18 and 21, an average of 32 PRs a day were merged without Renovate; the week before it was 59 a day. Each machine runs only one lead at a time. Today, according to the dispatcher's status file, five products are waiting for their turn on jordan (Mac), and 11 repos either have no Ready work or their work is blocked.

2 machines now run leads. 50 sessions started on kobe (Windows PC) and 56 on jordan (2019 MacBook Pro).

In the first post I wrote that the agents could only run on one machine and the other machines only ran CI. Since November 14 jordan (Mac) runs leads too. Also, there are four machines now. On November 9 I installed Ubuntu Server 26.04.1 LTS, just like on bird (MacBook Pro 2011), on a 2015 MacBook Pro that was lying unused in a drawer and added two more runners. Naming machines is a practice I like and have used before. This time I named them after NBA players: kobe (Windows PC), jordan (2019 MacBook Pro), duncan (2015 MacBook Pro) and bird (2011 MacBook Pro). In December they will be joined by luka, a 32 GB M6 Mac mini that will be the heart of the system. I plan to run local LLMs on it too. There are 11 runners in total. duncan, like bird, is an old machine, so for now it only takes light CI jobs like secret scanning and doc linting.

5- The constitution grew again

Item eight on the "if I started over" list in the first post was this: before adding a new rule I would look at the existing rules, and I would review the constitution at regular intervals. Two weeks after publishing that post, I made the same mistake again.

Word count of CLAUDE.md after each commit. The drop on October 26 is the cut by a third.

Word count of the main file every agent reads from the top in every session. The 1,119 in the first post came from a different count.

The constitution had grown to 2,359 words on October 25. On October 26 I had an agent cut it by a third, and it went down to 1,494 words. But with the rules that came on November 12 it went up to 1,768, and with the ones on November 16 to 2,026. The first batch was about the inbox, the dispatcher, the session lifetime and the context limit, and the second was about operational authority and the backlog. So these are rules we really needed, but the text every agent reads on every turn still keeps getting longer. Since November 16 no new rule has gone in, and it stays at 2,026 words.

6- Harness agnostic: not tied to Claude Code alone

By the way, since October 20 I've been trying to make the system harness agnostic. Until then the constitution, the agent definitions, the skills and the hooks were all written for Claude Code alone. Claude Code's tool names, settings and context numbers were everywhere. I wanted to work in Codex for a while. I also want to be able to try every new harness or model that comes out without rebuilding the system from scratch. So we split the constitution in two. One part has the rules that apply in every harness, and the other has notes specific to Claude Code. The same week we also ran a small pilot with Codex. Today the agents still mostly run on Claude Code, but the rules are no longer tied to one harness. The numbers in the chart only show the shared part; with the Claude Code notes, the text every agent reads today is 2,545 words. Getting Claude to do this conversion was hard, too. It was extremely reluctant and kept coming up with excuses not to do it. It tried to talk me out of it by explaining that Codex falls short in many areas and that security holes could appear :) I had a similar experience on a project where I wanted to build a Grok Bot. It handed me a link to an article about Grok's problems with personal data and said let's not do this. I don't think it's nice that it works this hard to keep me from using a competing product. Its concerns may be real, but nobody can convince me that the people who build Claude didn't add this behavior on purpose.

7- We still spend tokens on reading

In the first post I explained that what uses up the limit isn't the code being written but the conversations that grow longer and get read from the top every time. In this period we saw that in numbers too.

Model calls per week and average context per call, October 20 – November 22. Claude Code sessions on kobe (Windows PC) only.

Model calls per week and the average context read per call.

An average model call reads 79 to 98 thousand tokens of context every time. In the week of November 10, on kobe (Windows PC) alone, there were 27,219 model calls and 2.3 billion tokens read in total. 96% of that is read from cache, and the tokens the model wrote are 0.7% of the total. So the finding from the first post still holds: the cost is the number of turns times the size of the context. Last week the number of calls fell to 10,571, but the average context per call went up to 98 thousand.

On October 25 I had a 7-day token audit done. As a result we gave the reviews of small changes to a cheaper model, cut the turn cap of the developer agents, the most model calls they can make on a single task, from 150 to 80 and turned off MCP servers we didn't use. On November 12 we also set a context limit of 200 thousand tokens and capped a session's lifetime at 10 hours. Since November 14 a session compacts itself when it gets close to that limit. The numbers in the chart don't include the sessions on jordan (Mac) or Codex, and the logs before mid-October were deleted. So I don't compare these directly with the ratios in the first post. But we do see the difference in the weekly limit. In the first post I wrote that the weekly limit lasted 3-4 days in mid-September and 6-6.5 days when I wrote that post. Now it rarely fills up. According to the session logs on kobe (Windows PC) and jordan (Mac), the last times we hit the weekly limit were October 29 and November 11, and since the limit reset on November 13 we haven't hit it once. This week we used 25% of the limit in the first two and a half days; at this pace we'll close the week around 70%. The drop in the number of calls over the last weeks plays a part in that too.

8- Open source projects

In this period I also open-sourced some of the system's work. The agents wrote all of it, and you can use it too:

  • stampboard: a live board that shows GitHub Actions jobs, PRs, issues and Claude Code agents on one page, the page that's always open in my Chrome.
  • console-band: a Claude Code mod that draws a band of a few lines above the prompt. Context, limits, cache, git and running agents at a glance.
  • halimiz-podcast: I used to have an AI news bulletin prepared for myself to read in the mornings. Then I wanted to listen to it in the car, so I had NotebookLM make an audio overview of each bulletin. NotebookLM's player wasn't practical, so I put the episodes on Spotify. That's how it became my own podcast: HAL'imiz Ne Olacak?, in Turkish. A workflow publishes the RSS feed, the site and the SEO side. There are 19 episodes so far.
  • ha-blink-live and ha-aqara-cube-blueprint: two small Home Assistant projects. One is a live view for Blink cameras, the other is a blueprint for using an Aqara Cube as a light remote.

Since November 15 all five public repos are in the dispatcher's queue too. If they have open work, a lead starts for them as well.

9- Second brain

There was a problem at level four. When the acting-ceo made a decision, it didn't know my priorities, only the rules in the constitution. To fix that, on November 13 I started a personal Second brain repo, completely separate from the system. It holds what I know, how I write, how I decide and what I care about. It got 138 commits in nine days.

The setup is based on Karpathy's LLM Wiki idea. Raw sources sit in a folder, and an agent reads them and turns them into wiki pages that link to each other. I added layers on top of that. At the bottom are the raw sources; agents can only read them, and a git hook rejects any commit that tries to change them. Above that is the wiki the agents write, then my identity and writing style, then my decision principles and a log of my past decisions. At the top there is a mandate file that says what an agent may do on my behalf. Each layer cites the one below it. The rules are in a single file, and Claude Code and Codex both read the same file.

The first thing I put in was my own writing. A profile repo of about 14 thousand lines and the system's long-term memory were the starting point. On top of that, when you download your own data from Instagram, Twitter, Facebook, YouTube, Google, Ekşi Sözlük, LinkedIn and the like, you get a huge history. With comments, likes, watch and search histories, you can build a system that knows you better than you know yourself. Seeing messages from 15 or 20 years ago, or posts you liked, feels a bit strange at first, but let's just say the goal is to train the system :) While analyzing them the agent even found an anomaly on Instagram. In November and December 2020 I had liked thousands of posts. It wrote that this wasn't normal and that the account had probably been taken over at the time. And indeed, back then some strange things had happened on the account because of a permission I gave to some silly app, but I didn't know that app had been liking posts in my name. The raw writing archive is encrypted with git-crypt. Today there are 39 source pages, 7 concepts, 6 entities and 12 synthesis pages. Feeding it is mostly automatic. Every day kobe (Windows PC) reads new sources and adds each one to the wiki as a page. Every week it checks the pages for contradictions, stale facts and missing links. Also once a week it proposes changes to my principles and identity files from what I said, and I merge those myself.

On the decision side we logged 84 of my past decisions and drew my principles only from that log. Then a skill was written that predicts what I would answer to a decision question. We tested it with 19 questions whose answers the skill had never seen. It picked the answer I picked in 15 of the 19, which is 79%. Since November 17 the acting-ceo asks this skill first when it makes a decision. Of course the final call is still the acting-ceo's; this is only a recommendation for it.

The agent does work on GitHub on my behalf. It drafts replies to comments on the public repos. Yesterday, for example, it drafted a reply to a bug report on the Blink integration saying the camera stream drops now and then, and it was sent once I approved it. It also opened an issue on another open source repo: it reported that location never arrives in web apps built for Meta's Ray-Ban Display glasses.

The problems I noticed in the six weeks after the first post, and the fixes that replaced them.

The problem → fix list of the next six weeks. The numbers are issues in the system's main repo.

How it works today

In the morning I see the acting-ceo's message on Telegram. It only has the decisions that only I can take, numbered. I write my answers and it handles the rest. During the day the acting-ceo checks the queue every 30 minutes and starts team leads on kobe (Windows PC) and jordan (Mac) for the products that have work. The lead splits the work among the agents, PRs get opened, reviewed by the bot account and merged when CI is green. When there's nothing Ready, the lead grooms the most valuable issue in the backlog itself. If there's work it can't move forward, it writes down the reason and leaves it with the blocked label.

On November 16 I also gave the system a standing authority: operational work is the agents' work and gets done without asking me. Issues, branches, PRs, merges, workflows, each product's own cloud project, and the stores up to TestFlight and the closed testing tracks are all included. I'm only asked about spend, public release and design choices. And when it gets stuck somewhere only my account can sign in to, it comes to me saying "you need to sign in, I couldn't go on". It asks those as items in the morning message, not as a question that stops the session.

The products' landing pages are part of this setup too. On November 5 I added a rule that every product gets a landing page on its own subdomain, and I added an SEO developer to the system as a new role. I picked the shared design of the landing pages myself, from three options. Now whenever a new user flow or a new design pattern is needed, the UX agent brings me at least three options, and implementation doesn't start until I pick one.

The last level: observer

To get to level five I need to hand the system the four decisions I still keep: spend, release, design and the constitution. Part of the technical groundwork for these is actually ready. There's a killswitch that kicks in when the budget is exceeded, and the agents are already the ones who upload to the stores and move builds to the test tracks. But I have reasons for keeping these for now.

I stubbornly want to make the design decisions myself. Partly just because I want to, but it's not irrational either. The system still has problems with UI design, especially when it changes an existing design instead of starting from scratch. Left completely on its own, it produces very bad results.

When it comes to spend, 100% of the authority is mine, since I'm the one who pays the credit card at the end of the month. If it's going to pay, it can have it :) I also got burned once, entirely by my own mistake. On Google Cloud Run, which I expected to cost a few dollars a month, a setting in one project was changed so the service stayed up 24 hours a day. By the time I noticed, close to $70 had been spent. After that I added a rule to the constitution: no editing cloud service settings without asking.

I don't want any article of the constitution touched. Without it, the system takes on work I would never want just to finish the apps, and it tends to remove security layers. Even with the constitution it sometimes oversteps. One day I saw in a lead agent's summary that a subagent had read a file it must not read, to finish a job. The lead had noticed, rolled back the work, removed the code from the git history and terminated that agent. I sat frozen, staring at the screen for quite a while as I read it :) It's not a problem for now, but who knows where this leads.

The release decision I'll give up soon. At first I thought going to production was always a PM decision. But the PM role is also shaped by the briefs given to an agent, and those will eventually move to level 5 too.

Conclusion

In the first post I wrote that I was the one who had to teach the agents to work together. Six weeks later I think that part has mostly settled. 64 PRs get merged a day, all 146 decision issues were closed, and I didn't start 106 of the sessions. After the November 17 fixes, no session got stuck at startup, crashed or was cut short.

But not everything is fine. The system still wakes up every half hour, not when work arrives. Each machine runs only one lead at a time. The sessions became reliable, but over the same days the daily PR count fell from 59 to 32. I need to raise reliability without eating into velocity, and that's what the event based setup is for.

My own mistakes repeat too. In the first post I made a note to myself not to bloat the constitution, and two weeks later it was over 2,000 words again. Tokens are the same story: the money still goes to reading, not writing. Adding a rule is easy; removing one takes someone sitting down and reading all of them.

While pulling the 4 key metrics for this post I noticed something else. The system does all this work, but part of the records that would show how well it does it are missing. There are no deploy records at all for many days, and we don't separately track what broke in production. We built the system for speed, not for measuring.

The second brain became part of this setup too. The acting-ceo no longer decides only by the constitution; it also looks at how I decide, and it gives the same answer as me on 79% of the test questions. Getting to the observer level depends partly on that number going up.

Of the decisions I still keep, I'm thinking of handing release to the system first. Spend and design stay with me for now, and the constitution stays with me too.