Skip to content
github-actions[bot] edited this page Sep 16, 2026 · 4 revisions

Token Terminator Wiki

Keep the evidence. Terminate the redundant tokens.

Token Terminator is an agent-runtime optimization layer that reduces provider-visible token bloat at tool-result and final-request boundaries while preserving exact recoverability. Hermes Agent has the turnkey adapter; the reduction core itself is ordinary Python + SQLite and can be integrated with other runtimes.

Start here

The core contract

A transformation is accepted only when it is safer than passing the original through:

  1. the complete provider-visible result is strictly smaller;
  2. if an exact tokenizer is available, measured token count also decreases;
  3. exact evidence has been written to the private vault and verified by read-back when recovery is required;
  4. caller-owned request objects are not mutated;
  5. any unsupported or unsafe condition fails open to the original request/result.

Temporal terminal reduction adds one more rule: the command still executes every time. Only the representation shown to the model may become a smaller delta.

What v0.6.0 adds

v0.6.0 prevents more prompt bloat before provider dispatch. Request attribution now shows where input tokens come from, and SkillGate reduces large Hermes <available_skills> indexes to the entries relevant to the current user request while keeping omitted skills discoverable on demand.

SkillGate has no hard skill-count ceiling by default: every entry above the relevance threshold survives. The deterministic lexical-IDF scorer is the bootstrap implementation; a pluggable scorer interface is ready for a tiny learned/local reranker. Routing is fail-open and only touches trusted system/developer instruction fields.

What v0.5.2 adds

v0.5.2 makes tokenizer-aware savings durable rather than transient: exact raw, final, and saved request-token counts are persisted with model and tokenizer-backend provenance whenever a supported tokenizer is available. tiktoken now ships by default for supported OpenAI-family models, active model identity is propagated into native and temporal accounting, and fallback estimates are explicitly labelled instead of being mixed with exact measurements. See Release 0.5.2.

What v0.5.1 hardened

v0.5.1 is the post-0.5.0 hardening release. It adds bounded vault lifecycle management, Unicode-safe artifact search, cwd-aware rewrite caching, async temporal parity, schema-owned temporal snapshots, more honest experiment statistics, Windows URI fixes, safer permissions, RTK path pinning, and recovery-safe GC. Artifacts already named by accepted recovery receipts or temporal deltas are protected from automatic retention pruning.

Current release

  • Python package/release: v0.6.0
  • Python support: 3.10–3.13
  • Rust interoperability crate: token-terminator 0.6.0
  • First-party runtime adapter: Hermes Agent

Clone this wiki locally