add-rtk
add-rtk deploys rtk, a CLI proxy that compresses output from common development commands (git, cargo, pytest, docker, kubectl, and others), directly into Claude Code agent containers. The skill automates binary installation, container mounting, and hook configuration so every Bash call routes through rtk transparently, delivering 60–90% token savings without manual intervention.
add-rtk installs a token-compression proxy that reduces Bash command overhead by 60–90% for Claude Code agents.
AI-generated summary based on this skill's SKILL.md
Install
nanocoai/nanoclaw/add-rtk · repository language: TypeScript
git clone https://github.com/nanocoai/nanoclaw
cp -r nanoclaw/.claude/skills/add-rtk ~/.claude/skills/add-rtkFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I install rtk token compression proxy?
add-rtk automates rtk installation into your Claude Code agent containers. The skill handles binary deployment, container mounting via PreToolUse hook, and proxy configuration so rtk intercepts all Bash calls transparently. Once installed, rtk compresses output from git, cargo, pytest, docker, kubectl, and other dev commands without requiring manual setup for each invocation.
How to reduce tokens with rtk in Claude Code?
add-rtk routes all agent Bash commands through rtk's compression proxy, which strips verbose output and reformats responses from development tools. The skill delivers 60–90% token savings on typical dev workflows by compressing git logs, cargo build output, pytest results, and container commands. Token reduction happens automatically once rtk is mounted into agent containers.
How do I set up rtk container mount?
add-rtk configures the PreToolUse hook in your agent's settings.json to mount the rtk binary into containers at runtime. The skill handles path binding and proxy environment variables so every Bash tool call is intercepted and compressed. No manual container configuration is needed—add-rtk manages the entire mount and hook setup process.
Can I verify token savings after rtk setup?
add-rtk includes rtk gain check, a verification command that measures actual token compression on your dev tools. Run it after installation to confirm 60–90% savings on git, cargo, pytest, docker, and kubectl commands. The check validates that rtk is correctly intercepting Bash calls and compressing output as expected.
What development commands does rtk optimize?
add-rtk's rtk proxy compresses output from git, cargo, pytest, docker, kubectl, and other common CLI tools. The skill transparently intercepts all Bash calls routed through agent containers, so any command-line tool benefits from rtk's compression. Token savings apply across the full range of development workflows without tool-specific configuration.
How does add-rtk integrate with Claude Code agents?
add-rtk deploys rtk directly into Claude Code agent containers using the PreToolUse hook mechanism. The skill automates binary installation, container mounting, and hook registration so rtk runs as a transparent proxy for all Bash commands. Once configured, agents automatically route dev tool output through compression without code changes or manual intervention.
SKILL.md
rendered from the published skill — quoted content, verbatim
Add rtk
Install rtk — a CLI proxy delivering 60–90% token savings on common dev commands (git, cargo, pytest, docker, kubectl, etc.) — and wire it transparently into agent containers via the Claude Code PreToolUse hook.
What this sets up
rtkbinary at~/.local/bin/rtkon the host~/.local/bin/rtkmounted read-only at/usr/local/bin/rtkinside the target agent group's containersPreToolUsehook in the agent group'ssettings.jsonso every Bash call is automatically filtered through rtk — no CLAUDE.md instructions needed
Integration tests
This skill has no in-tree integration test by design. Its only functional reach-ins are runtime operator actions — the host-only ncl groups config add-mount (Step 3) and the settings.json PreToolUse hook write (Step 4) — neither of which leaves a line in the source tree whose deletion a test could catch. There are no package dependencies or Dockerfile edits to
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 2 files
.claude/skills/add-rtk/REMOVE.md
.claude/skills/add-rtk/SKILL.md