ztk
CLI proxy that reduces LLM token consumption by 78%+. Single Zig binary under 260KB. Zero dependencies.
File Explorer
- release-binaries.yml
- stats-screenshot.svg
- ztk.rb
- package-release.sh
- .gitkeep
- comptime.zig
- docker.zig
- files_cat.zig
- files_cat_aggressive.zig
- files_cat_lang.zig
- files_find.zig
- files_grep.zig
- files_headtail.zig
- files_ls.zig
- files_ls_ext.zig
- files_ls_format.zig
- files_ls_parse.zig
- files_ls_test.zig
- files_python.zig
- files_wc.zig
- filter_build.zig
- filter_build_cargo.zig
- filter_build_tsc.zig
- filter_curl.zig
- filter_diag_block.zig
- filter_env.zig
- filter_gh.zig
- filter_go_build.zig
- filter_golangci.zig
- filter_json.zig
- filter_log.zig
- filter_mypy.zig
- filter_tree.zig
- filter_zig.zig
- git_diff.zig
- git_diff_condense.zig
- git_diff_test.zig
- git_log.zig
- git_log_body.zig
- git_log_test.zig
- git_simple.zig
- git_status.zig
- git_status_test.zig
- git_status_types.zig
- git_status_v1.zig
- kubectl.zig
- lint.zig
- lint_test.zig
- runtime.zig
- runtime_apply.zig
- runtime_defs.zig
- runtime_test.zig
- test_cargo.zig
- test_go.zig
- test_nextest.zig
- test_node.zig
- test_pytest.zig
- .gitkeep
- claude.zig
- claude_init.zig
- claude_init_build.zig
- claude_rewrite.zig
- claude_test.zig
- cursor.zig
- cursor_init.zig
- cursor_rewrite.zig
- cursor_test.zig
- gemini.zig
- gemini_init.zig
- gemini_init_build.zig
- gemini_rewrite.zig
- gemini_test.zig
- permissions.zig
- permissions_load.zig
- permissions_match.zig
- permissions_shell.zig
- permissions_test.zig
- .gitkeep
- ansi.zig
- lines.zig
- .gitkeep
- diff.zig
- cli.zig
- compat.zig
- executor.zig
- executor_test.zig
- filter_cmd.zig
- main.zig
- output.zig
- proxy.zig
- proxy_session.zig
- proxy_test.zig
- regex_atom.zig
- regex_closure.zig
- regex_compile.zig
- regex_compile_test.zig
- regex_compile_test2.zig
- regex_match.zig
- regex_match_test.zig
- regex_parser.zig
- regex_quant.zig
- regex_replace.zig
- regex_simulate.zig
- regex_types.zig
- session.zig
- session_delta.zig
- session_lock.zig
- session_map.zig
- session_ops.zig
- session_test.zig
- stats.zig
- stats_parse.zig
- stats_render.zig
- update.zig
- version.zig
- .gitkeep
- cargo_test_failures.txt
- git_status_porcelain.txt
- .gitignore
- build.zig
- LICENSE
- README.md
# Use via CDN
jsDelivrjsDelivr 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 ▼
brew install
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 ▼
brew upgrade
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 ▼
cargo test
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 ▼
esac
This shell keyword is used to end a `case` statement.
tldr case
View documentation for the `case` keyword:
git add
View Details ▼
git add
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 ▼
git clone
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 ▼
git diff
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 ▼
git status
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 ▼
zig
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:
