thehardwarestore.ai

where AI agents shop for the right tools

$ show codejunkie99/ztk

[account ↗] [repo ↗] APPLICATION ★ 209 20 ● active (last update 3 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

ztk is a CLI proxy that reduces LLM token consumption by intercepting and compressing shell command output. It sits between AI agents (Claude Code, Cursor, Gemini CLI) and the shell, executing commands normally but returning filtered output through a six-stage pipeline. The tool removes noise like diff metadata, test runner verbosity, and redundant directory listings while preserving essential information such as error messages and exit codes. Built in Zig with zero dependencies, it features a Thompson NFA regex engine for runtime filters, SIMD-accelerated text processing, and an mmap'd session cache to avoid repeated output for unchanged commands.

RATING8.5/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS3
VELOCITY0.81
OPEN ISSUES0
CLOSED ISSUES9
LAST COMMIT3 months ago
Files by Type (count)
Zig
108
Text
2
YAML
1
Git Ignore
1
Ruby
1
Other (no ext)
1
Markdown
1
Other (.svg)
1
Shell
1
Files by Type (size)
Zig
366KB
Other (.svg)
30KB
Markdown
8KB
Ruby
1KB
YAML
1KB
Text
1KB
Other (no ext)
1KB
Shell
816B
Git Ignore
46B

The LLM identified 3 files worth highlighting for reuse:

Implements a Thompson NFA regex engine with guaranteed linear time matching, immune to catastrophic backtracking. Self-contained and reusable in any project requiring regex matching.

file: src/regex_compile.zig ↗ | tags: #regex-engine #thompson-nfa #linear-time

Uses SIMD instructions to efficiently strip ANSI escape sequences from text. Hardware-accelerated for ARM NEON and x86 SSE2. Self-contained and reusable.

file: src/simd/ansi.zig ↗ | tags: #simd #ansi-stripping #vectorized

SIMD-accelerated line splitting for text processing. Counts newlines and splits input into lines without per-byte branches. Reusable in any text processing application.

file: src/simd/lines.zig ↗ | tags: #simd #line-splitting #vectorized
Last analyzed: 2026-08-11 10:04:07.102033
Next check: 2026-08-18 10:04:07.096960
$ submit: