specloop

  1. Some statistics first

    Before starting the deep dive into my most important thought on AI development, I’d like to share some stats on the example I’ll be using for this series: Coffer, the site engine this blog uses. It’s the project I started as an exercise in AI development on a new scale. I decided that AI should be used as an independent developer who knows their craft, and that I should stop controlling their technical decisions. So, I wrote down my functional requirements, gave AI full freedom over the solution and fed the spec into Specloop, my harness for Claude Code. So, in this article I’ll give you some of the statistics I found interesting from the first release’s implementation.

    A part of my spec for the site engine
    Fig. 1. A part of my spec for the site engine

    Token Totals

    API calls Input (uncached) Output Cache write Cache read
    Main session 568 895 486,000 5,056,212 179,526,120
    Subagents (164) 6,045 12,374 5,506,509 18,738,056 862,547,901
    Total 6,613 13,269 5,992,509 23,794,268 1,042,074,021

    Model, Agent and Subagent Use

    Models: nearly everything ran on Sonnet 5.5. Opus 5.5 accounts for 13 main calls and 16 subagent calls, about 93k output tokens in total.

    Cache: cache reads are about 98% of all input tokens processed. That is expected here, because each subagent call re-reads a large cached prefix.

    Subagent share: subagents account for about 92% of output and 83% of cache reads.

    Code Production

    Added since the branch base: 58 commits, 420 files and 82,493 lines. All figures are added lines; nothing was deleted relative to the base.

    Final Result

    Category Files Lines
    coffer engine source (coffer/src) 74 26,941
    coffer engine tests 58 26,471
    Repo tests (scripts/test, scripts/site-test, fixtures) 50 8,353
    coffer theme, example, i18n, LICENSE, CI, generators and other config 82 7,211
    coffer docs (coffer/docs, README, CHANGELOG) 31 3,739
    Repo scripts (deploy, refresh, Cloudflare, prepare, split) 11 3,283
    Site themes (templates, CSS, i18n) 16 1,404
    Root docs (AUTHORING.md, OPERATIONS.md, README and others) 31 1,282
    Content (posts, pages, YAML) 16 466
    GitHub Actions workflows 3 372
    Other content files 6 77
    Total 378 79,599

    What’s Next

    Next I’ll go into deeper details on how and why I did what and what my thoughts are on the technology.

  2. Finally built me a site

    Preamble

    For years I wanted a personal site. Something between a blog, a dump of write-ups, and a project showcase.

    Off-the-shelf engines were either monstrous, gave me too little control, or both. Every time I sat down to build my own, I over-engineered it, got distracted after a couple of commits, and by the next attempt the whole concept was outdated.

    The Reality Check

    Then Misha Tiunov launched his site — fully static. Pages rendered ahead of time, lightweight HTML on the server. No backend, no database, no pricey VPS.

    And it made me wonder: do I really need a JVM, a DI container and an RDBMS to serve a few kilobytes of text to ten visitors a month? Read-only notes. I don’t even want comments.

    My Identity Crisis

    At the same time, I’m rewiring myself from an AI-assisted senior developer into a full-time AI wrangler. So the engine became my training ground.

    I wrote a spec that deliberately named zero technical solutions. Only what I have (a domain on Cloudflare) and what I want: publishing by git push, multiple blogs, themes, tags, a project showcase.

    Fed it to my self-made Claude harness. The beast chugged for about three days, produced 60 commits — and voilà.

    The Result

    What came out:

    • Hosting on Cloudflare’s S3-compatible storage — the free tier will last me a very long time
    • Build on GitHub Actions, on push to main and on a schedule — also free at my scale
    • I write markdown in a plain text editor, push to main, and a few minutes later it’s live

    I’ll Explain

    Next, I’ll go deeper into my current development process and how I believe we, former programmers, should adapt to the modern AI reality. So this blog post is the first in the series.