Skip to content

ttupper92618/tokenMiser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

875 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TokenMiser

TokenMiser is a modified fork of RTK, rebuilt as a lean command-output proxy with telemetry, SQLite history tracking, and analytics dashboards removed.

TokenMiser runs common developer commands through compact, LLM-friendly filters. It keeps the useful failure details, drops progress bars and boilerplate, and preserves the underlying command exit code.

What Is Different About This Fork

TokenMiser keeps the useful command-output filtering core and removes the parts that made the tool heavier than it needed to be for local assistant workflows.

  • No telemetry, daily ping path, device salt, or telemetry commands.
  • No SQLite command-history database or analytics dashboard.
  • No runtime analytics writes on the hot path.
  • No optimization loop that depends on stored command history.
  • A smaller README and docs surface focused on what the tool does now.
  • Compatibility shims for legacy config, filters, trust stores, and hooks so existing users can migrate without losing local behavior.

The goal is a boringly local utility: run the command, compact the output, preserve the exit code, and avoid collecting anything along the way.

What It Does

  • Filters noisy command output before it reaches an AI coding assistant.
  • Supports common Git, Rust, JavaScript, Python, Go, Ruby, .NET, Docker, Kubernetes, cloud, and system commands.
  • Installs optional assistant hooks so supported shell commands can be rewritten automatically.
  • Saves full raw output for selected failures through the local tee system.
  • Supports trusted project-local TOML filters.
  • Avoids telemetry, command-history persistence, and runtime analytics writes.

Quick Start

tokenmiser --version
tokenmiser git status
tokenmiser cargo test
tokenmiser pytest

Install assistant hooks:

tokenmiser init --global
tokenmiser init --show

Preview a hook rewrite without running the command:

tokenmiser rewrite "cargo test"

Useful Commands

tokenmiser ls .
tokenmiser read src/main.rs
tokenmiser grep "pattern" .
tokenmiser git diff
tokenmiser gh pr list
tokenmiser cargo clippy
tokenmiser lint
tokenmiser docker ps
tokenmiser kubectl pods
tokenmiser discover

Unsupported commands can run through passthrough:

tokenmiser proxy make install

Privacy

TokenMiser has no telemetry path. It does not send daily pings, create a telemetry device salt, expose telemetry commands, or write command-history analytics to a local database.

Configuration

Config lives in the platform config directory under tokenmiser/config.toml.

[display]
colors = true
emoji = true
max_width = 120

[tee]
enabled = true
mode = "failures"
max_files = 20

[hooks]
exclude_commands = []

Environment variables:

Variable Purpose
TOKENMISER_DISABLED=1 Disable hook rewriting for one command
TOKENMISER_TEE_DIR Override the tee output directory
TOKENMISER_HOOK_AUDIT=1 Enable hook audit logging

License

Apache License 2.0 - see LICENSE for details.

Disclaimer

See DISCLAIMER.md.

About

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages