add-rtk

Installs the rtk token-compression proxy into agent containers via mounts and PreToolUse hooks.

1|Updated May 22, 2026
One-click install
npx skills add https://github.com/roseDwayane/LocalizeAgenticSys --skill add-rtk-rosedwayane
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-rtk
Source: https://github.com/roseDwayane/LocalizeAgenticSys/tree/main/nanoclaw/.claude/skills/add-rtk
Command: npx skills add https://github.com/roseDwayane/LocalizeAgenticSys --skill add-rtk-rosedwayane

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Agent containers running Claude Code consume large numbers of tokens on verbose dev command output (git, cargo, pytest, docker, kubectl). This Skill installs the rtk CLI proxy on the host and wires it into agent containers so every Bash tool call is automatically filtered through rtk, reducing token usage by 60–90% without changing agent instructions. ## Core Features & Use Cases - Host installation: Downloads the rtk binary to ~/.local/bin/rtk and verifies it is executable. - Container integration: Mounts the binary read-only at /usr/local/bin/rtk by updating the additional_mounts JSON column in the container_configs database table. - Automatic hook wiring: Adds a PreToolUse Bash hook (rtk hook claude) to each agent group's settings.json using jq, idempotently replacing any existing rtk hook. - Use Case: An operator running multiple NanoClaw agent groups wants to cut token costs on git and docker commands; they run this Skill per group, restart the containers, and verify savings with rtk gain. ## Quick Start Ask the agent to install rtk into a specific agent group by providing the group ID from ncl groups list and letting it run the install, mount, hook, and restart steps.

Frequently Asked Questions about add-rtk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install rtk into a NanoClaw agent container?

Install the rtk binary on the host at ~/.local/bin/rtk, add a read-only mount entry to the container_configs additional_mounts column for your group ID, add the PreToolUse hook to the group's settings.json, then restart the container with ncl groups restart.

How does rtk reduce token usage in Claude Code?

rtk acts as a CLI proxy that compresses output from common dev commands like git, cargo, pytest, docker, and kubectl. A PreToolUse hook routes every Bash tool call through rtk automatically, achieving 60–90% token savings without CLAUDE.md instructions.

Can I apply the rtk setup to multiple agent groups?

Yes. Run ncl groups list to get each group ID, then repeat the mount update, settings.json hook addition, and container restart for every group. The jq commands are idempotent and safe to re-run without creating duplicates.

Why is rtk not found inside the container after setup?

The mount was not applied or the container was not restarted. Check the additional_mounts column for an entry with containerPath /usr/local/bin/rtk, then run ncl groups restart --id <group-id> and verify with docker exec rtk --version.

How do I remove rtk from an agent container?

Follow the REMOVE.md steps: delete the rtk entry from additional_mounts, remove the rtk PreToolUse hook from settings.json with jq, restart the container, and optionally delete the host binary at ~/.local/bin/rtk once no group uses it.