Public service piece. The change is now live as of June 15, 2026. No sales pitch. The author maintains cc-safe-setup (MIT, free) and a paid Migration Playbook; the financial interest is disclosed up front so you can discount accordingly.
日本語版: 日本語の hook を多用する利用者向けの解説 — 同じ主題を日本語の作業者の集まりに向けて再構成。
On 2026-06-15, Anthropic splits the Claude subscription into two independent billing pools. Pool 1 (interactive) keeps the standard subscription limits for web chat, desktop, mobile, the Claude Code terminal, and Claude Cowork — those workflows are unaffected. Pool 2 (Agent SDK credit pool) receives a separate monthly credit allowance equal to your subscription fee ($20 Pro / $100 Max 5x / $200 Max 20x), and that credit does not roll over. Overages on Pool 2 are billed at standard API rates (roughly $3 per million input tokens, $15 per million output tokens for Sonnet 3.5; higher for Opus). Anything that runs programmatically falls into Pool 2: the Agent SDK, the claude -p headless flag, Claude Code GitHub Actions, and third-party integrations (OpenClaw, Conductor, Zed, Jean). Hooks and slash commands are also classified as programmatic.
That last sentence is the line that matters for the audience this piece is written for. If you operate Claude Code with a substantial hook stack (think cc-safe-setup, custom PreToolUse / Stop / UserPromptSubmit chains, drift arrest, closure-word gates, sub-agent boundary guards), your hook stack moves from the interactive pool into the credit pool on June 15.
Everyone else has heard the headline. The hook-heavy audience has not yet seen a concrete operational read on what their setup looks like on June 16.
This piece is that read.
The interactive pool covers what a human typing at a terminal does: prompting Claude Code interactively, accepting tool-call permissions, reading the assistant's responses, and following up. Tools fired in response to your typed prompt (e.g. Edit, Read, Bash, Write) are part of that interactive turn and remain in Pool 1.
The credit pool covers what the harness does on its own initiative without a fresh human prompt:
- Hooks: any
PreToolUse,PostToolUse,Stop,UserPromptSubmit,SessionStart,PreCompact, orNotificationhook that fires. - Slash commands: anything you invoke as
/<name>. - Sub-agents spawned via the
Agenttool or via--agents. claude -pheadless mode.- Claude Code GitHub Actions.
- Anything routed through the Agent SDK: third-party integrations, MCP-style routings, harness-to-harness flows.
The dividing line is "did a fresh human prompt cause this token spend?" If yes, Pool 1. If no, Pool 2.
Practical consequences for the hook-heavy operator: every time your Stop hook fires to refuse a closure word, that's Pool 2. Every time your UserPromptSubmit hook runs the same-correction-arrest counter, that's Pool 2. Every time your SessionStart hook re-injects CLAUDE.md or scans your skill directory, that's Pool 2. The hooks themselves are typically lightweight in tokens, but a sub-agent fired from a slash command can consume tens of thousands of tokens before the operator notices.
The decision tree is different for three operator profiles. The honest read on which one you are is the input to everything else.
You have five to fifteen hooks installed, mostly read-only guards (path protection, command allow-lists, post-edit verification). Your Stop and PreToolUse hooks run quickly and do not invoke Agent, do not chain into sub-agent runs, and do not fire claude -p recursively. Your slash-command usage is occasional.
Estimated June 15 impact: minimal. Pool 2 credit ($20 / $100 / $200 equivalent) is likely more than your monthly programmatic usage. Operate as before.
What to do: on June 15, watch the Pool 2 burn rate for the first week. If it stays below 30% of your subscription's equivalent credit, you have headroom. If it climbs above 60% in week one, drop a tier of hooks (start with PostToolUse if you have any that are not strictly safety-critical) and watch again.
You have thirty or more hooks. Some of them dispatch sub-agents via the Agent tool (e.g. a Stop hook that fires a code-review sub-agent on every session end, a PreToolUse hook that spins up a planning sub-agent when three files are about to be modified). Your slash commands routinely invoke Task chains. Your CLAUDE.md includes "use sub-agents proactively" guidance.
Estimated June 15 impact: substantial. A single sub-agent dispatch can consume 5,000–30,000 tokens depending on the task. Ten such dispatches per day at Sonnet rates is roughly $0.50–$3.00 per day in API equivalent; at Opus rates, three to five times higher. Over a 30-day month on a $20 Pro plan, sustained sub-agent usage will exceed the $20 credit and start incurring overages at API rates.
What to do: between now and June 15, instrument your sub-agent dispatch hooks to log the token cost per dispatch. The Agent tool's response includes a token count. Aggregate by day; project to a month. If the projection exceeds your Pool 2 credit, you have three options:
- Reduce sub-agent dispatch frequency: change the trigger condition (e.g. "only on Stop, not on PreToolUse"); raise the file-count threshold from three to ten; gate sub-agent dispatch behind an explicit slash command rather than an automatic hook.
- Move to a higher tier: $100 Max 5x gives $100 of Pool 2 credit per month; $200 Max 20x gives $200. Compare your projection against the tier delta.
- Use a cheaper model for sub-agents: if your sub-agent prompts are short (planning, review, scout), Haiku rates are roughly one-fifth of Sonnet's. Configure the sub-agent's
modelfield accordingly.
Your CI fires claude -p on every PR for review, lint, or doc-generation. Your gh workflow uses Claude Code GitHub Actions. You run nightly scheduled tasks that call Claude Code headlessly. You have at least one OpenClaw / Conductor / Zed integration that uses the subscription rather than a direct API key.
Estimated June 15 impact: severe. CI workflows and scheduled tasks can consume tens of thousands of tokens per run, and the credit pool does not roll over. A single PR review consuming 50,000 tokens at Sonnet rates is roughly $0.75 — manageable in isolation. A repository firing 100 PR reviews per month is $75. On a $20 Pro plan, this is $55 in overages per month at standard API rates.
What to do before June 15:
- Inventory your headless usage: list every
claude -pinvocation, every GitHub Action, every scheduled task. For each, capture the typical token count from the last 30 days of logs. - Calculate the projected Pool 2 monthly spend: sum the per-invocation token cost × the monthly frequency, at the API rate for the model you're using.
- Decide your billing posture: if the projection is under your subscription credit, do nothing. If it's over, choose:
- A direct API key for the headless workflows (separates billing entirely, gives prepaid credit pool with rollover, removes the subscription dependency).
- A higher tier of the subscription (raises Pool 2 credit).
- A reduction in headless usage (PR review on every other PR; nightly task to twice-weekly; etc.).
- Test the migration before June 15: if you move to a direct API key, test the workflow end-to-end. If you stay on the subscription with a higher tier, log into the billing page and confirm the tier change effective date.
If you want to skip the manual arithmetic, the companion estimator lets you paste the four numbers from the one-liner below plus your subscription tier and three workflow-profile sliders, and it tells you whether you stay inside the Pool 2 credit or whether you need to act.
Single HTML file. No network calls after page load. View source: the page source is the source. Free, MIT.
Estimating your June 15 exposure requires four numbers per workflow:
- Input tokens consumed per programmatic invocation.
- Output tokens emitted per invocation.
- Invocations per month.
- Model used.
The Claude Code session transcript (JSONL at ~/.claude/projects/<project>/<session-id>.jsonl) contains the input/output token counts for every assistant message in the message.usage field. A short Python or jq one-liner extracts the totals.
Example for the last 30 days, summed across all projects, broken down by model:
find ~/.claude/projects -name '*.jsonl' -mtime -30 -exec \
jq -r 'select(.message.usage) | "\(.message.model) \(.message.usage.input_tokens // 0) \(.message.usage.output_tokens // 0)"' {} \; \
| awk '{i[$1]+=$2; o[$1]+=$3} END {for (m in i) printf "%-30s %10d in %10d out\n", m, i[m], o[m]}'This is the combined (interactive + programmatic) total. To estimate the Pool 2 share, the heuristics are:
- If you mostly type prompts and rarely use slash commands, hooks, sub-agents, or headless mode: Pool 2 ≈ 10–20% of total.
- If you have a heavy hook stack with automated sub-agent dispatch: Pool 2 ≈ 30–60% of total.
- If you run CI-driven
claude -por GitHub Actions: Pool 2 ≈ 50–90% of total.
Multiply the Pool 2 share by the per-million-token API rate ($3 input + $15 output for Sonnet 3.5; higher for Opus) to get the dollar exposure. Compare against your subscription tier's Pool 2 credit ($20 / $100 / $200).
These are reversible, free, and meaningful in aggregate.
-
Audit your hook directory for sub-agent dispatch. Any hook that fires the
Agenttool, or that runsclaude -precursively, is a Pool 2 multiplier. Gate sub-agent dispatch behind explicit conditions, not on every Stop or every Edit. -
Move slash-command-heavy workflows to direct typed prompts. If a slash command does something that you can do in a typed prompt, the typed version stays in Pool 1.
-
Cap the size of context that sub-agents inherit. A sub-agent that inherits a 200K-token context burns 200K input tokens per dispatch. The
Agenttool's input scoping (only include what the sub-agent needs) directly reduces Pool 2 consumption. -
Switch model for low-stakes sub-agent work. Code-review, doc-generation, naming-suggestion sub-agents work well on Haiku. The
modelparameter of theAgenttool accepts a Haiku ID; the rate delta is approximately 5x. -
Replace recursive
claude -pcalls with the Bash tool when possible. If a hook is usingclaude -pto summarise a file, aBashcall toawk/grep/sedmay produce the same result without the Pool 2 hit.
This is not a sky-is-falling piece. The June 15 split is well-designed for the operator class it was designed for (heavy programmatic users on lightly-priced subscriptions consuming far more than the subscription was meant to cover). For the average Claude Code user, the interactive pool is unchanged; the programmatic credit is a free monthly $20–$200 that did not exist before.
This is also not a recommendation to leave the subscription. The credit pool is a structural improvement for users who want predictable monthly programmatic spend. Direct API access remains the right move only for operators whose programmatic spend exceeds their subscription's Pool 2 credit and whose interactive usage is light.
The piece exists because the segment of operators with heavy hook stacks and automated sub-agent dispatch is a real segment, the change does affect them differently from the headline narrative, and the change is now live as of June 15, 2026 and affects them differently from the headline narrative. A measurement script in the operator's hands still produces the number that drives the decision — direct API key vs higher tier vs platform migration vs reduced automation.
cc-safe-setup(MIT, free, repo) — the hook library this piece is written against. Most hooks documented here are installable vianpx github:yurukusa/cc-safe-setup --install-example <hook>.- Migration Playbook Edition 2 Trigger 15 (programmatic credit pool) — paid, expanded analysis of the migration paths if you decide Pool 2 will not work for your usage profile. Available now; existing buyers of Edition 1 receive the update free via Gumroad library auto-update.
The free artefacts are sufficient for the measurement and the five defensive moves above. The paid expansion is the larger decision tree (direct API key vs higher tier vs platform migration vs reduced automation).
The author maintains cc-safe-setup (MIT, free) and publishes a paid Migration Playbook. The hooks documented here are free; the deeper migration analysis is in the paid product. This piece was first published before the billing change (now live as of 2026-06-15) because the measurement is what matters in the operator's hands, not the marketing window.
— yurukusa, 2026-05-20 (updated 2026-06-15: the billing change is now live)