Plugin-triggered model calls are limited to allowed models and a per-session token budget.
What's wrong with this entry?
When a plugin asks Claude Code to run a model completion, the request is checked against the organization's allowed models and a per-session token budget, so a misbehaving plugin cannot spend a session's capacity.
- The requested maximum token count must be a whole number within a cap.
- An estimated cost is reserved before the request and reconciled against actual usage afterwards.
- Passing a fraction of the budget produces a warning log; passing the budget makes the call throw.
- Behind the tengu_plugin_hooks_modules rollout flag.
$.model.complete: the session's model budget for this plugin is spent
Strings lifted out of the shipped bundle, so the claim above can be checked against them.