<< Previous | Next >>

Daily Learnings: Thur, Jun 19, 2025

Let us revere, let us worship, but erect and open-eyed, the highest, not the lowest; the future, not the past! — Charlotte Perkins Gilman

Experimenting with Claude Code

Some notes on experimenting more with Claude Code in a couple of my repos to speed up my development process.

Pricing Options for Claude Code

Claude Code is available via API Interactions / billing.

You actually don’t have to sign up for a Claude paid, monthly plan. You can also plug in an API key and get billed purely based on usage. Depending on your usage, it might be better to go one way or the other, though.

The Claude Code pro plan comes with some limits that you could run into, with the API Billing option allowing you step around those limits. But, at a certain point, you might run over $100 - $200 / month in API usage charges. The Claude Code Max plan then becomes attractive.

For purposes of today’s experiments, I used a direct API connection to see what the overall cost of a day’s worth of work would look like. I’ll compare to the $20/mo & $100/mo plans (and their limits) later.

Notes on Pricing

Today’s work totals based on code sessions:

CostTask
$1.12Plan and generate first spec file
$1.07Review first spec file and propose solutions for updated spec file, and build second spec file
~$1.00Some random small connections to Claude Code for testing things, and connecting to Github
$5.41Building an entire feature, sourcing the feature to build from a Github issue, with some feedback applied. Didn’t finish the feature, but got close.
$2.89Updating spec for better AI generation
$11.49Total

Based on the above table, I’m really curious to see what sorts of limits I’d run into with the Claude Pro plan, instead of direct API billing.

Setting up Spec Files for the Plan > Spec > Code workflow

From my notes yesterday, I’ve started to test out this notion of using Claude Code by cloning the repo that I referenced, referencing the architecture of the repo, and then applying it to a SOLVD repo to generate specs.

Generating Spec Files

I started by having Claude assist with creating an initial spec file for the repo:

  1. Set up the SOLVD repo with the appropriate CLAUDE.md, .claude/settings.json, and the .claude/commands/prime.md files, taking much from the original repo and applying it to our use cases
  2. Ran the /prime command (see yesterday’s post for more info on this custom slash command)
    • Note: In our repo we have a really large file (43,060 tokens) which is over the max allowed tokens of 25k for a given interaction. It skipped this file but continued to prime with the context of the entire codebase.
    • I ended up removing that file and others from the /prime command since it really was only needed for certain tasks.
  3. Switch to plan mode
  4. Prompted the AI to review our code in the repo and suggest a new spec file outlining our approach. See below for example prompt that I used
  5. Reviewed the plan and switched to execute mode
  6. Reviewed the spec file and iterated on a second spec file through additional prompting

Prompt to generate a new spec file

Let's plan @specs/automation-spec-1.md. With your understanding of our codebase, I want to generate a spec file to use when developing more automations in this repository. Currently, we have no outlined spec file aside from what is included in our README.md file. Please ensure that this spec is thorough and covers all that you would need to know in order to follow a consistent pattern, using best practices, to develop additional automations in our repository. Note that the code in our codebase today isn't 100% consistent. However, I want this spec file to outline best practices from the cleanest and best-kept code. This spec file could then be used to prompt additional refactoring of older, legacy code as well. Think hard about this.

Additional Notes on the Flow

Plan > Spec > GH Issue > Code Workflow

After getting a good spec file in place, I decided to try a new workflow using the following high-level workflow:

  1. Create a GH issue with the desired bugfix, feature, or enhancement in the related repo
  2. In VS Code, launch Claude Code
  3. Verify that it can see my GH issue naming it by #
    • E.g., “What can you tell me about issue #84?”
    • I did this here to avoid unnecessary token usage with the /prime command in case I couldn’t connect to GH at this point. It’s a good thing I did, as I wasn’t connected to my repo’s GH yet.
    • See below for what I had to do to enable this.
  4. Using the /prime command, get Claude Code up to speed on the project context and the most recent spec file
    • The most recent spec file is now listed in the /prime slash command markdown file
  5. Switch to Plan Mode
  6. As Claude to review a specific issue in GH and propose a plan for building
    • This assumes that I have Claude Code linked to the GH repo correctly
  7. Review the plan
  8. Move to implemen

Notes Actually Testing this Workflow

Let's make a plan to address the requested enhancements found in issue #84. Please review that issue in our github repo and propose a plan for enhancing the codebase accordingly. think hard about this, and make sure that your plan adheres to our specs found in @specs/development-spec-02.md.

Connecting Claude Code to Github

  1. Open Claude Code in your repo
  2. Run /install-github-app
  3. Follow all of the prompts to finalize setting it up, including merging the auto-created PR

Important Note: By default, this will auto-install a Claude-based code reviewer as well. You can remove this if you want by unchecking that option in the dialog.

Final Thoughts on Code Quality

References