Documentation
¶
Overview ¶
Package quality hosts recipes for the `quality` category — code quality enforcement (lint, format, test scaffolds). Two recipes open the category in v0.10: prettier (cross-language formatter) and golangci-lint (Go-specific meta-linter).
Package quality — rtk-token-filter recipe.
rtk (https://github.com/rtk-ai/rtk, ~38k★, Apache-2.0) is a CLI proxy that compresses common Bash command output before it hits the LLM context — measured 60-90% token savings on `git status`, `ls -R`, `grep`, etc. This recipe ships the project-local allowlist (`<repo>/.clawtool/rtk-rewrite-list.toml`) that the `internal/rules` pre_tool_use rewrite helper consults when a Bash dispatch matches.
Recipe ships config only. Operators install rtk themselves (`cargo install rtk` or platform packages); the rule helper detects rtk's presence on PATH and no-ops when it's missing, so the recipe is safe to apply regardless of install state.
TOML format (documented inline in the asset too):
description = "..." commands = ["git", "ls", "grep", ...]
First-token-of-Bash matching only — no flags, no paths.