token-throttle CLAUDE.md

token-throttle CLAUDE.md is an instructions file for coding agents from Elijas/token-throttle. It costs 894 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for releasing new versions of the token-throttle project through GitHub Actions, GitHub’s automation system. They describe version updates, testing, formatting, tagging, and publishing steps.

In plain words
What is it for?
Use them when changing the project version or triggering a patch, minor, or major release.
Why use it?
They give the coding agent the project’s required release procedure and prevent local or incomplete releases.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/elijas/token-throttle/claude-md
Clone the repo
git clone --depth 1 https://github.com/Elijas/token-throttle

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for token-throttle CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/elijas/token-throttle/claude-md.svg)](https://agentmods.dev/instructions/elijas/token-throttle/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/elijas/token-throttle/claude-md"><img src="https://agentmods.dev/badge/instructions/elijas/token-throttle/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 894 This file is loaded in full into every session.
When invoked 894 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00894 $0.00894
Opus 5 $0.00447 $0.00447
Sonnet 5 $0.00179 $0.00179
Haiku 4.5 $0.00089 $0.00089

Measured 5d ago against content hash 8f20d8110f5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

token-throttle CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

token-throttle

Releasing a New Version

Releases are fully automated via GitHub Actions. Do NOT bump versions or publish locally.

Trigger a release

gh workflow run release.yml --ref main -f bump=patch   # 0.5.0 -> 0.5.1
gh workflow run release.yml --ref main -f bump=minor   # 0.5.0 -> 0.6.0
gh workflow run release.yml --ref main -f bump=major   # 0.6.0 -> 1.0.0

What the workflow does

  1. Verifies manual dispatch is running from refs/heads/main with a non-empty bump input, then runs full CI test suite (.github/workflows/ci.yml)
  2. bump-my-version bump <patch|minor|major> — updates version in pyproject.toml and token_throttle/__init__.py, creates a commit
  3. devtools/bump_readme_version.py — updates pip install version bounds in README.md
  4. uv lock — syncs uv.lock with the new version
  5. ruff check --fix, ruff format, then ruff check — applies safe lint autofixes, formats, and fails if issues remain
  6. Creates a second commit with lockfile/formatting changes (if any)
  7. Porcelain check — fails the release if the working tree is still dirty after all fixes
  8. Creates an annotated vX.Y.Z tag and atomically pushes main plus the tag
  9. Internally re-dispatches release.yml on the immutable tag
  10. Re-runs full CI test suite on the tag
  11. Runs uv build before tagging, then builds again from the tag and publishes to PyPI via OIDC trusted publishing

Version is tracked in two places

  • pyproject.toml (version field + [tool.bumpversion] current_version)
  • token_throttle/__init__.py (__version__)

Both are updated automatically by bump-my-version. Do not edit these manually.

Development

uv sync --group dev
uv run pytest tests/unit
uv run ruff check .

tests/unit doesn't require Redis — but its default --redis-url is redis://localhost:6379, so tests that talk to a real Redis will use one if it's reachable there, and some of those flush the database around every test. The suite refuses to run (aborts the whole session) against a non-empty database unless you opt in. Point at a dedicated, empty DB index instead of a shared one:

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 81 lines · 894 tokens per session scan A 8f20d8110f5b

Subscribe to this mod's changes

token-throttle CLAUDE.md is an instructions file published in the GitHub repository Elijas/token-throttle (21 stars, last pushed 8d ago), licensed Apache-2.0. It adds 894 tokens to every session, about $0.0045 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.