How I work with AI

People keep asking me how I actually work day to day with agents, and I realised I had been answering from memory. So I pointed Claude at my own session logs (everything in ~/.claude/projects) for the last 30 days, 28 October to 27 November, and asked it to count. This post is what came out, plus the working pattern behind the numbers.

Note: The stats cover every session, including client and private work. The examples are all from my public projects: Fling, Rocketflare and drizzle-cube.

The numbers

Last 30 days
Sessions232
Prompts I typed2,793
Working directories45
Sub-agents launched2,010
Tool calls41,385 (80% of them Bash)
Tokens30.8 billion
Nominal API costabout $14,000
Lines added / removed~985,000 / ~95,000

Some notes on reading that table.

The tokens are almost all cache reads: 30.1 billion of the 30.8 billion. Only 117 million were output tokens. Long sessions re-read the same context over and over, and caching is what makes that affordable. If you are ever tempted to price agent work by “how much did it write”, don’t.

cache reads 30.1B (97.5%) 30.8 billion tokens in 30 days cache writes 657M (2.1%), output 117M (0.4%), fresh input 385K everything Claude actually wrote fits in that last sliver
Figure 1. Where 30.8 billion tokens went. Almost all of it is the same context being re-read.

The cost is the figure Claude Code records for each session, priced at API rates. It is a nominal number, but a useful one: it is what this way of working would cost if you paid per token. A typical day came to around $220, and four days went over $1,300. The single most expensive session was a legacy codebase analysis that launched 427 sub-agents and cost $1,614 on its own.

Almost everything ran on Opus. It accounts for 98% of the tokens, sub-agents included. The bottleneck is my attention, so I would rather pay for the model that gets it right first time.

The lines figure is Claude Code’s own counter, and it counts plans, docs and tests as well as code. Read it as churn.

My prompts are short. The median is 63 characters, and 59% are under 80. A lot of them are yes, agree, c or ok, lets get the PR up. The first prompt of a session is longer (median 171 characters), because that is where I describe the task. After that I am mostly answering questions and making calls.

511 under 20 1,142 20 to 80 826 80 to 200 235 200 to 500 79 over 500 characters per prompt (2,793 prompts, median 63) "yes", "agree", "c", "release", "you can merge"
Figure 2. How long my prompts are. Most of them are answers, not instructions.

Multi-project, not multi-worktree

There is a popular picture of AI-assisted engineering where one person runs five agents in five git worktrees, all on the same codebase, and merges the results. I don’t work like that, and the data backs it up.

  • Only 10 of my 232 sessions touched a git worktree at all.
  • In an average active quarter of an hour I had 2 sessions running (90th percentile 3, maximum 8).
  • Of the 782 quarter-hours where more than one session was active, only 162 (21%) had two sessions in the same repo.
  • On a typical day I touched 6 different projects, and on the busiest, 11.

So I do run things in parallel, but the parallelism is across projects. Here is Friday 20 November. Six projects had sessions that day, and between 06:45 and 08:15 five of them were going at once. Rocketflare and Rocketpod each had one long build running from a plan, while I reviewed and merged contributor PRs on drizzle-cube and moved three private projects along in between. Look at private B, private C and the afternoon on private A: each starts orange and turns blue, plan and grill then build in one session. The orange is short. Most of the day is building, and the brown work around it of running things, testing them, reviewing and shipping.

05:00 07:00 09:00 11:00 13:00 15:00 17:00 19:00 rocketflare rocketpod drizzle-cube private A private B private C MCP server, built from a plan: 53 sub-agents, $116 migrate to Rocketflare 0.40 from a port doc: $96 review and merge contributor PRs: $8 planning / grilling building running, testing, reviewing, shipping
Figure 3. Friday 20 November, UK time. One row per project, one block per 10 minutes, coloured by what the tool calls show was happening in it. Where two sessions overlap in a project they sit on two lines.

When a build is running I am mostly waiting, so I go and make a decision somewhere else.

Not every day looks like that. Here are three more weekdays, same colours, with the private projects keeping the same letter throughout.

Tuesday 3 November 04 06 08 10 12 14 16 18 20 22 private Q fling private G private D rocketflare private B drizzle-cube lastlight private S private E private A Tuesday 17 November 04 06 08 10 12 14 16 18 20 22 private F rocketflare private A private I private D private C Wednesday 25 November 04 06 08 10 12 14 16 18 20 22 drizzle-cube private E fling private A rocketflare private D
Figure 4. Three more weekdays, UK time, 04:00 to 22:00. Same colours as Figure 3: orange is planning or grilling, blue is building, brown is running, testing, reviewing and shipping.
  • Tuesday 3 November was the busiest day of the month: 11 projects, and mostly brown. Lots of short check-ins: reviewing contributor PRs on Rocketflare and drizzle-cube, syncing Last Light, adding review forms to Fling. A day like that is mostly me keeping things moving.
  • Tuesday 17 November has the Rocketflare knowledge base work described below in the morning, and an analysis of a legacy codebase grinding through 427 sub-agents on private F until mid-afternoon. Later on, private A, C and D each planned the same row-level security change at once, coordinated from private I. That is the nearest I came all month to the many-worktrees picture, and it was one change across three separate codebases rather than one feature split up.
  • Wednesday 25 November was a design day, with far more orange. I spent most of it being grilled: on Fling issue 122, on a new default design theme for Rocketflare, and in a long session on private E answering questions about a legacy system.

The reason is attention. Each of those sessions needs me to make decisions: answer a design question, look at a running dev server, say whether the output is right. Splitting one feature across several worktrees means I am reviewing several partial versions of the same thing, and then paying to merge them. Splitting across projects means each context switch lands me somewhere different and fresh, and each agent works on the whole of one coherent task. When I asked for parallel work inside a project I usually said so explicitly, and usually in the negative: use sub-agents where helpful - but lets not use worktrees but work sequentially, or use sub-agents and orchestrate from here where helpful, dont go crazy with worktrees.

Plan, grill, then build

Most substantial work goes through the same three steps.

Plan describe the whole feature research how others do it design doc on Fling Grill one question at a time recommended answer each "yes", "agree", "c" Build same session, or a fresh one Opus orchestrates sub-agents do the work Iterate big change: same flow small change: just ask plan + grill: 1 hour, 26 prompts, $12 build: 4 hours, 15 sub-agents, $108, released next change
Figure 5. The loop. Numbers are from the Fling site servers feature below.
  1. Plan. I describe what I want, often with a request to research how others solve it first, and ask for a design doc or plan. For anything visual or anything I want other people to look at, the doc is an HTML page published on Fling, so it gets a URL and people (including me) can comment on it.
  2. Grill. Grill me on this. The grill skill makes Claude interview me one question at a time, each with its recommended answer, until we have walked every branch of the design. This is where most of my short prompts come from. The plan gets updated as we go.
  3. Build. Usually straight on in the same session once the grill is done. For bigger pieces I start a fresh session with a prompt that points at the plan: lets build it, use sub-agents to orchestrate here. Either way, Opus reads the plan, splits it into chunks, hands those to sub-agents, checks what comes back, and keeps me in the loop on decisions that need me.

Of the 136 sessions that included any planning or grilling, 103 (76%) went on to build in that same session. The two examples below are the other kind, where the plan was big enough to deserve a clean context.

Then iterate, using the same flow if the change is big enough and just asking directly if it isn’t.

Example: Fling site servers

Fling is a bit like Claude Artifacts, except you own it: your agent publishes a page or a static site to your own hosting, at a URL you control, where people can view it and comment on it. On 15 November I wanted it to also run a small server alongside a site so people could build a basic API.

The design session started at 05:37 with: I want to explore whats needed to have fling also run a basic node server (ideally in some kind of isolate?) so that folks can build basic backend APIs alongside their site. It would need to be fully compiled with all deps vendored (no npm install). Twenty minutes in, I asked for syntax highlighting in the doc and a link for a term it had used. Then grill me on this design doc, and the next half hour was mostly this:

yes i think the first release must include egress (open or not is fine), and secrets
public sites are still only deployable by members - so what is the risk you are point at?
api only works on the root and site level - and agree path publishers / paths cant have servers
yes perfect - we shouldnt log emails; can we log something else to identify the user if needed?
agree
yes
no I want it in one PR
yes update and republish
there is a new comment on the doc

26 prompts, one hour, $12. The output was a design doc on Fling with every decision recorded.

The build session started a minute later: we now have a cool feature to add to fling: [the review page] lets build it. use sub-agents to orchestrate here, ensure that we also add to the why-site as part of the build. Over the next four hours it ran 15 sub-agents, wrote about 13,500 lines across the feature, infrastructure and docs, deployed a branch to a test instance for me to try, and cut a release. My 23 prompts in that session were things like you can redeploy, ok its merged, release and once its green you can merge.

Example: Rocketflare knowledge base

Two days later, same shape, on Rocketflare. At 06:03: I want to review our current knowledge base / rag / semantic search approach to ‘leading’ solutions - e.g. what Mastra or others (please research it!) and cloudflare or anthropic themselves propose. Create a detailed report of capabilities / gaps. Then grill me on this, and a run of answers like c, b - but b needs to be kit only and I think per person memory should be a different topic and potentially its own plugin, so lets park it. 31 minutes, $9, and it ended with a plan doc and GitHub issues.

At 06:38: Lets begin on docs/plans/knowledge-facts-iteration-1.md, use sub-agents where helpful. That session ran into the next morning, cost $104, added about 10,600 lines, and ended with a release. The follow-on work went into issues #148 to #159.

Point it at something that already works

Research is useful, but the thing I do even more is point the agent at a working example. Usually that is one of my own projects: we already do this in X, bring it over. Over the month, 53 sessions referred to another of my local projects by path, 24 different projects in all, and 25 more pointed at an outside repo or product to compare against. Together that is 74 of the 232 sessions, and 43 of the 103 plan, grill and build sessions.

Agents love to copy. Give one a working example and it will follow it closely, which gives you far more control over the output than any amount of description. A working example carries hundreds of decisions a description never will: the naming, the error handling, how it is tested, the awkward edge case someone already hit. The agent reads the code and copies what works, and the plan and the grill can concentrate on what has to be different this time. It is the same point I made about the assets agents copy from: the more good examples you have lying around, the faster everything else goes.

rocketflare rocketpod private D private A fling Mastra, Cloudflare, Anthropic planotator OIDC login core fixes back user guide, MCP auth XLS import agent durability, RAG Claude Code integration
Figure 6. Some of what got copied where this month. Solid boxes are my projects, dashed ones are outside examples.

Some prompts from the month:

  • Rocketflare, 7 November: Recently we made a suite of changes to ~/work/rocketpod to support full OIDC flows (with AWS cognito) for example; I want to bring this over neatly to rocketflare - but was wondering if this is also a good time to bring SAML / SCIM over? That became a plugin: 48 prompts, 14 sub-agents, $94.
  • Rocketflare, 10 November: I want to create a new rocketflare plugin (open source) that is copied from the guide that is in ~/work/[private D]. The guide, its knowledge base, search and chat came across as a plugin in one session: 10 prompts, 9 sub-agents, $91.
  • Rocketflare, 17 November, in the middle of the knowledge base build: We added the ability to parse XLS into the kb in ~/work/[private A]; is that worth including? It was.
  • Rocketflare, 30 October, in reverse: We actually built some apps from rocketpod - ~/work/[private D] and ~/work/[private A] - it may be there are also lessons from those we can bring back re. where we had to manually ‘eject’ it. The apps built on the starter kit are examples too, of where the kit got in the way.
  • Fling, 4 November, against an outside product: Fling now has a lot of comparable functions to planotator - but i think misses some of the cool deep integration into claude code (and maybe other tools); can you do a deeep dive - whats missing to make it frictionless in the same way? 38 prompts, 20 sub-agents, $99, and a user guide page at the end of it.
  • Last Light, 6 and 13 November, with just a link and a question: https://github.com/stencil-hq/ovnfs < would this help lastlight manage its repo checkouts and work? Sometimes the answer is no, and finding that out cost a few dollars.

The prompt shape is nearly always the same: a path or a link, what I like about it, and what should be different here.

The repo needs to be ready for agents

Copying cuts both ways. An agent will copy whatever it finds, so a messy repo produces more mess, and fast. Before any of the above works well, the project itself has to be set up for agents: consistent, well structured, and documented where the agent will actually look.

Rocketflare is the furthest along. It has a root CLAUDE.md (with AGENTS.md symlinked to it so other tools find it too), 24 more CLAUDE.md files next to the code they describe, and 8 rule files in .claude/rules/ that only load when the agent touches matching paths:

rocketflare/
├── CLAUDE.md what this is, commands, rules that apply everywhere
├── AGENTS.md -> CLAUDE.md
├── .claude/rules/ each one loads only for its paths
│ ├── api.md paths: apps/web/src/api/**
│ ├── database.md
│ ├── testing.md
│ └── ... cli, cloudflare, code-quality, tools, ui
└── apps/web/src/
├── api/services/knowledge/CLAUDE.md knowledge facts: how it works and why
├── db/schema/CLAUDE.md
├── permissions/CLAUDE.md
├── plugins/example-feature/CLAUDE.md the reference plugin: read it first, delete it second
└── ... 19 more

drizzle-cube has the same shape on a smaller scale, with 14 agent docs: one per area (src/server, src/client, src/adapters, src/i18n, src/cli, tests) and some deeper ones for the trickier parts. The nested docs matter most. An agent working in api/services/knowledge reads the file sitting right there, which knows far more about that corner than a root file ever could, and it doesn’t have to load everything else to get it.

The docs also drift, because the code under them keeps changing. So I check them like code. On 8 November I asked: Is there a good skill externally (one of matt pococks?) that assesses if a repo is ‘ready’ for agents (e.g. claude/agent.md, also in sub-folders, rules etc) - is it well documented and consistent? like a checklist fix. That session ended with an /rf-agent-docs skill in Rocketflare that audits the agent docs, and a PR fixing what it found. The same docs ship to every app built from the kit, so each one starts out ready for agents. The reference plugin in that tree is there for exactly the reason in the last section: its own doc says it “exists to be read first and deleted second”.

Consistency is the other half. One way to do auth, one way to write a route, one test pattern. When there are two ways of doing something, the agent picks one at random, and you get a third.

Big tasks, not micro tasks

The tasks I hand over are large: a whole feature with its infrastructure, docs and release, a security review of an entire repo, an MCP server for a framework. A few from the last month:

TaskPromptsSub-agentsCost
Red-team security review of Rocketflare10180$430
Fling site servers, design doc to release2315$108
Rocketflare knowledge facts, iteration 1199$104
Rocketflare MCP server, from plan1453$116

I don’t break work into tiny steps and drive each one, because that makes me the slowest part of the loop. Every micro task needs a prompt, a wait and a review, and the agent never gets enough of the picture to make good local decisions. With a grilled plan in hand, Opus has the context to decide how to split the work and when to come back to me. My job is to make the decisions it can’t, and to check the result.

How the sessions break down

To see whether the pattern holds outside my favourite examples, I sorted all 232 sessions using the same per-block classification as the day charts.

sessions 44% 14% 9% 32% cost 81% 7% 11% plan, grill, build plan / grill only build from a plan direct
Figure 7. Share of sessions and share of nominal cost, by what happened in the session.
SessionsMedian promptsMedian costShare of cost
Plan, grill and build in one session103 (44%)16$3281%
Plan or grill only33 (14%)5$31%
Build from an existing plan or issue21 (9%)8$347%
Direct “do this”75 (32%)3$211%

The plan, grill and build sessions are the main way I work. They hold 276 of the 327 times Claude stopped to ask me a structured question, launch 16 sub-agents on average, and account for most of the cost.

The plan-only sessions are cheap. Some are designs that got built later in a fresh session, like the email notifications design for Fling, which the next session picked up with lets build the notifications plan. Others are ideas I looked at and parked, like whether Rivet’s agentOS or ovnfs would help Last Light. A $3 grill that ends in “not now” is a good outcome.

One caveat on the classification: writing a design doc counts as building, because it is a file edit. The design sessions in the two examples above produced long HTML docs, so they land in the first row.

The direct sessions are a different animal. More than half are three prompts or fewer. They are things like there are a bunch of good PRs open from contributors - can we check and merge them if good? on drizzle-cube, someone just posted a security report on gh - tenant related - lets look?, or is the fling-tour in this repo?. No plan, no grill. If the change is small and obvious, the ceremony costs more than it saves.

The question I ask is whether the agent needs decisions from me before it starts. If it does, plan and grill. If it doesn’t, just ask.

How to

If you want to try it, this is the whole thing.

Set up once per project

  1. Use Claude Code with Opus. I run in auto permission mode so it isn’t stopping to ask about every command.
  2. Install one skill: grill-me from Matt Pocock’s skills. That’s it. No other workflow skills, no elaborate agent configs.
  3. Get the repo ready for agents. A root CLAUDE.md or AGENTS.md, more of them in the sub-folders next to the code, path-scoped rules for specific areas, and one consistent way of doing each thing. Ask Claude to audit them now and then, because they drift.
  4. Set up Fling so the agent can publish a design as a page and read the comments people leave on it.

The working loop

  1. Start in plan mode. Describe the task as a whole feature, not a step. Ask it to research how others do it if you are unsure. That is all the process there is. I do not use spec-driven development or similar techniques. With current models I do not think they are needed, unless your process needs an approval step from other people.
  2. Point it at examples. This is the big one. Agents love to copy, and a working example gives you much more control over what comes out than any description or spec. If you have done something similar in another project, give it the path. If someone else does it well, give it the link. Then say what should be different this time.
  3. Get grilled. Once the plan looks right, accept it, then press Esc before it starts building and say grill me. Answer every question. Most answers will be yes or a letter. Push back where it’s wrong.
  4. Share the design on Fling when anyone else needs to see it, or when it’s easier to judge as a page than as markdown. Comments on the page come back into the session.
  5. Build. Carry on in the same session, or for a big plan start a new one: lets build [… path to plan.md file]
  6. Run other projects while it works, not other copies of the same one.
  7. Iterate. Big change, same loop. Small change, just ask.