cuttlesoft/Token Guard — LLM Token Limit Checker

Count tokens in files using tiktoken and enforce configurable limits

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
patternsGlob patterns targeting LLM instruction/config files, one per line. Supports ! negation.yes**/CLAUDE.md .claude/** **/AGENTS.md .cursorrules .cursor/rules/** .windsurfrules .clinerules .github/copilot-instructions.md .github/prompts/** .github/agents/** prompts/** .prompts/**
max_tokensToken limit thresholdno2500
token_limit_mode"total" (sum of all files) or "per_file" (each file individually)nototal
encodingTiktoken encoding: cl100k_base, o200k_base, p50k_base, p50k_edit, r50k_basenocl100k_base
namedescription
total_tokensSum of tokens across all matched files
file_countNumber of files processed
files_over_limitComma-separated paths of files over limit (per_file mode)