Notes on building software.

A personal blog of technical articles about software development.

Setting Environment Variables for Your Session

September 7, 2026· 2 min read·claude-codeconfigurationenv

Use the env key in settings.json to give every Claude Code session the same environment variables.

Pinning a Model in Settings

September 7, 2026· 2 min read·claude-codeconfigurationsettings

Set the model key in settings.json so a project or your whole setup always starts on the model you want.

Turning Off Co-Authored-By in Commits

September 7, 2026· 2 min read·claude-codeconfigurationgit

Set includeCoAuthoredBy to false so Claude Code stops adding a co-author trailer to your commits.

Cleaning Up Old Sessions with cleanupPeriodDays

September 7, 2026· 2 min read·claude-codeconfigurationsettings

Use cleanupPeriodDays to control how long Claude Code keeps old session data before clearing it out.

Loading an API Key with apiKeyHelper

September 7, 2026· 2 min read·claude-codeconfigurationsettings

Point apiKeyHelper at a script so Claude Code fetches your API key at runtime instead of storing it in a file.

Setting Sensible Defaults for a New Project

September 7, 2026· 2 min read·claude-codeconfigurationsettings

A starter settings.json for a new repo: pin a model, allow safe commands, set env, and add a format hook.