Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zot-rtk — zot extension for Rust Token Killer

Automatically routes bash commands through rtk, reducing token consumption by 60–90% for 100+ commands: git, ls, cat, grep, cargo, pytest, docker, kubectl, aws, and many more.

How it works

  • Bash interception — when the LLM calls bash with a command, rtk decides via rtk rewrite whether to rewrite the invocation. If yes — the command is automatically replaced with rtk <command>. Unsupported commands pass through unchanged.
  • rtk tool — the LLM can explicitly call rtk for compact output.
  • /rtk command — manual invocation from chat.
  • Auto-install — if rtk is not on the system, the latest release is downloaded from GitHub for the system architecture.

Installation

zot ext install https://github.com/vorons/zot-rtk

Local install:

zot ext install ./zot-rtk

Or run ad-hoc:

zot --ext ./zot-rtk

Structure

zot-rtk/
├── extension.json    # manifest
├── main.go           # source code
├── go.mod            # Go module
└── README.md

Build

cd zot-rtk && go build -o zot-rtk .

Requirements

  • Go 1.22+ (to build)
  • zot 0.2.x
  • Linux/macOS/Windows

About

Automatically routes bash commands through rtk.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages