Skip to content

matchesUsageLimit

matchesUsageLimit(tail): boolean

Defined in: src/usage-halt.ts:28

Returns true when the given tail text matches Claude Code’s usage-limit wording.

Centralized here so wording drift is tuned in one place. Patterns are intentionally specific to avoid false positives on benign text such as “rate limit your requests” or “limit the number of connections”.

string

boolean