add-rtk

Solid

Install rtk token-compression proxy into agent containers. Routes Bash tool calls through rtk for 60–90% token savings on dev commands (git, cargo, pytest, docker, kubectl, etc.).

AI & Automation 29,591 stars 12899 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Add rtk Install [rtk](https://github.com/rtk-ai/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 - `rtk` binary at `~/.local/bin/rtk` on the host - `~/.local/bin/rtk` mounted read-only at `/usr/local/bin/rtk` inside the target agent group's containers - `PreToolUse` hook in the agent group's `settings.json` so every Bash call is automatically filtered through rtk — no CLAUDE.md instructions needed ## Step 1 — Install rtk on the host ```bash curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh ``` If the script put the binary elsewhere, move it: ```bash find ~/.local ~/.cargo/bin ~/bin -name rtk 2>/dev/null mv "$(which rtk 2>/dev/null)" ~/.local/bin/rtk ``` Verify: ```bash ~/.local/bin/rtk --version chmod +x ~/.local/bin/rtk # if needed ``` ## Step 2 — Identify the target agent group ```bash ncl groups list ``` Note the group ID (e.g. `ag-1776342942165-ptgddd`). Repeat Steps 3–5 for each group. ## Step 3 — Mount rtk into the container config `additional_mounts` is a JSON column not exposed via `ncl config update`. Update it directly via the DB helper, merging with any existing mounts. Read current mounts first: ```bash pnpm exec tsx scripts/q.ts data/v2.db \ "SELECT additional_mounts FROM container_configs WHERE agent_group_id = '<group-id>'" ...

Details

Author
nanocoai
Repository
nanocoai/nanoclaw
Created
4 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category