Core context-budget metering and decision engine for LLM applications: normalized token accounting, effective-budget gauges, turns-to-exhaustion prediction, and compaction/handoff decisions. Placeholder release.
Project description
tokenmaster
Core context-budget metering and decision engine for LLM applications.
tokenmaster is being built to answer four questions for any model, provider, and conversation:
- How much context has been used, and on what (messages, system prompt, tool schemas, reasoning tokens, cache reads)?
- How much usable budget remains, measured against calibrated effective capacity rather than the advertised window?
- How many turns remain until exhaustion at the current token velocity?
- Should this conversation be compacted or handed off now, and what would that decision cost?
The package is computational only: it ingests provider-reported usage (with tokenizer-based estimation as an optional fallback), maintains meter state, and emits snapshots and events through a stable, serializable schema. Rendering is deliberately excluded. The companion package ctxmaster provides a CLI, terminal gauge, and dashboards on top of this schema, and third parties can build their own visualizers against the same contract.
Status
0.0.1 is a placeholder release reserving the name while the core API is designed. Do not build against it yet. Development happens at https://github.com/jemsbhai/tokenmaster
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tokenmaster-0.0.1.tar.gz.
File metadata
- Download URL: tokenmaster-0.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe89b7c37de1a5efbb71500a5649a5a4b763b946f636e27eba5bbf36a0c6660e
|
|
| MD5 |
d32c2edd69e2a6e07d4cdf11527948ae
|
|
| BLAKE2b-256 |
8ec9fb5f509de6e7ac2d53d23c6ddfbe5bf309c47ec0b45162afe0a70dc1524d
|
File details
Details for the file tokenmaster-0.0.1-py3-none-any.whl.
File metadata
- Download URL: tokenmaster-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c18d24fd92f42d5cd7413d059011cfea70bcced5bddcb70a8a6cbf89688e405b
|
|
| MD5 |
726c72b71db190142069288c23273a2f
|
|
| BLAKE2b-256 |
d0d3ec6d6a07dc0724ae9747846750a6e03a011ddbefaa64590e9442e9bd7cd4
|