Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>TK — Token KillerNew to Visual Studio Code? Get it now.
TK — Token Killer

TK — Token Killer

cardimvitor

|
4 installs
| (0) | Free
Automatically compress AI tool command output. Works with Claude Code, GitHub Copilot, and Codex.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TK — Token Killer

Automatically compress AI tool command output inside VS Code. One extension, zero manual config — works with Claude Code, GitHub Copilot, and OpenAI Codex.

What it does

Every time an AI assistant runs git status, npm install, cargo test, or similar commands, it gets back walls of ANSI codes, progress bars, and hundreds of passing test lines it doesn't need. TK intercepts these commands and returns only what matters — saving 60–90% of tokens.

Quick start

  1. Install this extension
  2. Open the Command Palette (Ctrl+Shift+P) → TK: Set up all integrations
  3. Done — all three AI tools are now configured

Integrations

Claude Code (automatic on activation)

Installs a PreToolUse hook at ~/.claude/hooks/tk-rewrite.sh. Every git status, npm test, etc. that Claude runs is silently rewritten to go through TK. Transparent — Claude doesn't know, you don't type anything differently.

GitHub Copilot

  • Agent mode: Registers a tk_run_command Language Model Tool. Copilot in agent mode calls this tool to run terminal commands, getting filtered output automatically.
  • Hook: Installs .github/hooks/tk-rewrite.sh for Copilot Chat transparent rewrite.
  • Instructions: Appends TK usage rules to .github/copilot-instructions.md.

OpenAI Codex CLI

Writes ~/.codex/tk-awareness.md and references it from ~/.codex/AGENTS.md. Codex learns to prefix commands with tk through its instruction system.

VS Code terminal

Contributes a tk-bash / tk-zsh terminal profile. Switch to it and every git, npm, pytest, etc. automatically aliases through tk. Enable via terminal profile dropdown.

Commands

Command Description
TK: Set up all integrations Install everything at once
TK: Install Claude Code hook Claude only
TK: Install Copilot hook Copilot + instructions only
TK: Install Codex awareness Codex only
TK: Show status Check what's installed

Settings

Setting Default Description
tk.binaryPath "" Path to tk binary (auto-detected if empty)
tk.autoSetupOnActivation true Set up integrations when VS Code starts
tk.enableTerminalProfile true Contribute tk-bash terminal profile

Supported commands

git · cargo · dotnet · npm · yarn · pnpm · jest · vitest · tsc · eslint · pytest · pip · ls · tree · grep · rg · find

Requirements

  • tk binary must be in PATH. Install with:
    cargo install --git https://github.com/cardimvitor/Compression --bin tk
    
  • jq required for Claude Code and Copilot shell hooks
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft