By Alex Urevick-Ackelsberg, Zivtech

The Economics of Claude Code

The expensive thing is never the prompt you write. It's the context you carry. Every habit in this series is about the same principle: keep the context lean, keep the cache warm, and when a session has served its purpose, let it go.



The Companion Helpers

Each post comes with a local hook that makes the cost driver visible at the moment it happens. All six helpers (plus an effort-control patch for Opus 4.7) are in zivtech/claude-cost-helpers on GitHub. GPL-3.0-or-later licensed.

git clone https://github.com/zivtech/claude-cost-helpers
cd claude-cost-helpers
./install-all.sh

Or install via the skills.sh registry:

npx skills add zivtech/claude-cost-helpers

The Common Thread

Six cost drivers, six habits, six open-source helpers. Concrete numbers, real workflows, and the pricing mechanics that make some habits expensive and others cheap.