· 2 min read

Where my Claude Code spend actually went last week

I shipped claude-agent-ledger v0.4 this morning. The new flag is --by project — group your Claude Code spend by which folder under ~/.claude/projects/ the session belonged to.

I added it because I thought I was spreading my time roughly evenly across a few side projects. Some iOS work over here, the blog over there, a couple of small experiments in between.

Then I ran it on my own logs (with --anonymize so I can publish this — try it yourself before sharing):

agent-ledger week --by project --anonymize

  ~/repo-A                     $6,657.93   ← 50%
  ~/repo-B                     $4,433.32   ← 33%
  ~/repo-C                     $1,890.02   ← 14%
  ~/repo-D                       $177.72
  ~/repo-E                       $145.77
  ~/repo-F                        $89.80
  ~/repo-G                        $29.92
  ~/repo-H                        $25.11
  ~/repo-I                         $0.45
  ─────────────────────────────────────
  total                       $13,449.57

Three projects = 97% of the week’s compute. The other six combined didn’t break $200.

The bit that bugs me is which projects are which. The 97% are the things that just need finishing — the iOS app factory and the personal automation that’s been “almost done” for two months. The 3% are the things I’d tell you I’m “working on.” This week I wasn’t.

I don’t think this is a calendar problem. Claude Code makes the cheap thing (thinking out loud about whatever’s on your mind) feel the same as the expensive thing (actually moving the iOS factory forward). Without a per-project view it all blurs into one number — /cost showed me a few hundred dollars that day, the dashboard never showed me where I’d actually been.

If you run multiple Claude Code sessions and want this for yourself, the install is one line:

npm install -g claude-agent-ledger
agent-ledger week --by project

Reads your local JSONL, never touches the network, MIT.

The number that surprised you about your own logs — please tell me. I’m collecting these.

Comments

Be the first to start a discussion. Reply with your thoughts on Bluesky and tag @jiexiang.dev — I'll link the thread back here.