ztk

(★ 205)

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

File Explorer

  • .gitignore
  • build.zig
  • LICENSE
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

brew install

View Details ▼

Install a Homebrew formula or cask.

brew install {{formula|cask}}

Install a formula/cask:

brew install {{[-s|--build-from-source]}} {{formula}}

Build and install a formula from source (dependencies will still be installed from bottles):

brew install {{[-n|--dry-run]}} {{formula|cask}}

Download the manifest, print what would be installed but don't actually install anything:

🔍

brew upgrade

View Details ▼

Upgrade outdated formulae and casks.

brew upgrade

Upgrade all outdated casks and formulae:

brew upgrade {{formula|cask}}

Upgrade a specific formula/cask:

brew upgrade {{[-n|--dry-run]}}

Print what would be upgraded, but don't actually upgrade anything:

🔍

cargo test

View Details ▼

Execute the unit and integration tests of a Rust package.

cargo {{[t|test]}} {{test_name}}

Only run tests containing a specific string in their names:

cargo {{[t|test]}} -- --test-threads {{count}}

Set the number of simultaneous running test cases:

cargo {{[t|test]}} {{[-r|--release]}}

Test artifacts in release mode, with optimizations:

🔍

esac

View Details ▼

This shell keyword is used to end a `case` statement.

tldr case

View documentation for the `case` keyword:

🔍

git add

View Details ▼

Stage changed files for a commit.

git add {{path/to/file}}

Stage a file for a commit:

git add {{[-A|--all]}}

Add all files (tracked and untracked):

git add .

Add all files recursively starting from the current folder:

🔍

git clone

View Details ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

git diff

View Details ▼

Show changes to tracked files.

git diff

Show unstaged changes:

git diff HEAD

Show all uncommitted changes (including staged ones):

git diff --staged

Show only staged (added, but not yet committed) changes:

🔍

git status

View Details ▼

Show the changes to files in a Git repository.
List changed, added, and deleted files compared to the currently checked-out commit.

git status

Show untracked and changed files which are not yet added for commit:

git status {{[-s|--short]}}

Give output in short format:

git status {{[-sb|--short --branch]}}

Show output in short format along with branch info:

🔍

zig

View Details ▼

The Zig compiler and toolchain.

zig build

Compile the project in the current directory:

zig build run

Compile and run the project in the current directory:

zig init

Initialize a `zig build` project with library and executable:

// repository documentation