Workstation setup: Claude Code with a token budget
Before writing any Terraform I set up the AI-assisted workflow I'll use for the whole project: Claude Code inside WSL2, with a deliberately small plugin set.
What I installed
- Official plugins for skill/plugin authoring, code review, commit workflow, security guidance and hook rules.
- rtk, a CLI proxy that compresses shell output (
git diff, test logs) before it reaches the model's context. Installed from a reviewed copy of the install script (checksum-verified), wired in as a Bash pre-tool hook.
What I measured
Every enabled plugin adds tokens to every message. Measured always-on cost: about 6.8k tokens per turn, with three plugins accounting for ~75% of it. That's the number to watch, not the plugin count.
Lesson
Hooks that rewrite commands interact with permission rules. If a guardrail denies terraform apply by prefix, a rewriting hook can change the prefix. Guardrails need to be tested by trying to break them, not assumed to work. That test is on the Week 1 plan.