codejunkie99

codejunkie99 / ztk

Public

CLI proxy that reduces LLM token consumption by 78%+. Single Zig binary under 260KB. Zero dependencies.

10
0
100% credibility
Found Apr 11, 2026 at 10 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Zig
AI Summary

ztk is a lightweight proxy that intercepts and compresses shell command outputs to minimize token usage for AI coding assistants.

How It Works

1
🔍 Discover ztk

While using your AI coding helper, you notice it's wasting space on long command outputs like file lists or test results, then learn about ztk that smartly shortens them.

2
📥 Grab ztk

You add ztk to your computer with one easy install command, and it's ready in seconds as a tiny helper tool.

3
🔗 Link to your AI

Run a quick setup so your AI coding tool automatically sends commands through ztk for cleaner, shorter replies.

4
💻 Use everyday commands

Now when your AI checks git changes, lists files, or runs tests, ztk packs the info tightly so only key details show up.

5
📈 Track your wins

Peek at the savings report to see huge cuts in wasted space, like turning thousands of words into dozens.

Smarter AI sessions

Your AI helper thinks faster with less clutter, saving time and costs while keeping all the important info.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 10 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is ztk?

ztk is a CLI proxy that intercepts shell commands from AI coding assistants like Claude Code or GitHub Copilot, compressing output to slash LLM token usage by 78%+. Run `ztk init -g` to hook it into your tools, then commands like `git diff`, `ls -la`, or `cargo test` return summaries instead of raw noise—92KB diffs shrink to 18KB. Built as a single Zig binary under 260KB with zero dependencies, it cross-compiles for Linux proxy CLI on Ubuntu, Windows, and macOS.

Why is it gaining traction?

Unlike bloated proxies, ztk starts in 1ms with no runtime overhead, supports 56+ filters for git status, test runners, file ops, and cli github gh, plus regex for terraform or brew. Session caching avoids repeats (e.g., unchanged `git status` in one line), and `ztk stats` shows a dashboard of savings—90% in real sessions. CLI proxy API plus Claude code integration via PreToolUse hooks makes it dead simple for cli github actions or repo workflows.

Who should use this?

DevOps engineers running kubectl or docker in cli github com packages, Rust/Zig devs hitting cargo test token walls, or frontend teams with npm test/vitest noise on cli github windows/linux. Perfect for cli proxy claude code users tired of verbose git log or ls in AI chats, or anyone cloning repos via cli github clone on Ubuntu.

Verdict

Try ztk if you're burning tokens on AI shell tools—its filters deliver real savings with solid test coverage. At 10 stars and 1.0% credibility, it's early (v0.2.0) but mature enough via Homebrew formula and cross-builds; watch for adoption.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.