add-rtk

Install the rtk CLI proxy and configure Claude Code PreToolUse hooks to compress Bash output.

Updated Jun 27, 2026
One-click install
npx skills add https://github.com/VincentChong123/nanoclaw-v2-agy-api-proxy --skill add-rtk-vincentchong123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-rtk
Source: https://github.com/VincentChong123/nanoclaw-v2-agy-api-proxy/tree/main/.claude/skills/add-rtk
Command: npx skills add https://github.com/VincentChong123/nanoclaw-v2-agy-api-proxy --skill add-rtk-vincentchong123

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tsx, jq, and includes scripts (resource) components.

What problem does it solve?

This skill addresses the high token consumption associated with frequent Bash tool usage in AI agents by introducing a transparent proxy that compresses command output.

Core Features & Use Cases

  • Token Optimization: Routes common development commands like git, cargo, and pytest through a proxy to achieve 60-90% token savings.
  • Transparent Integration: Injects a PreToolUse hook into agent configurations, ensuring all Bash interactions are automatically filtered without manual intervention.
  • Use Case: A developer running frequent git status or test suite commands within a containerized agent can significantly reduce the context window usage and associated API costs.

Quick Start

Use the add-rtk skill to install the proxy and configure the specified agent group for token-efficient command execution.

Frequently Asked Questions about add-rtk

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

FAQPage Schema
How do I reduce token consumption from Bash tool calls in AI agents?

You can reduce token consumption from AI agent Bash tool calls by installing a transparent proxy that compresses command output. This skill routes commands like git and pytest through the rtk CLI proxy to achieve 60-90% token savings.

Can I compress Bash command output automatically in containerized agent environments?

Yes, you can compress Bash command output automatically in containerized agent environments. The skill injects a Claude Code PreToolUse hook to intercept and filter all Bash interactions without manual intervention.

What prerequisites are needed to configure the rtk proxy for token optimization?

Configuring the rtk proxy requires host-level binary installation and database-driven container configuration updates. You also need the tsx and jq dependencies installed to execute the configuration scripts.

Does the PreToolUse hook support standard development workflows like git and cargo?

Yes, the PreToolUse hook supports standard development workflows like git and cargo. It routes these common development commands through the proxy to significantly reduce context window usage and API costs.

When should I avoid using a proxy to compress agent Bash tool output?

You should avoid using a proxy to compress agent Bash tool output if your environment lacks support for host-level binary installation or database-driven container configuration. It is specifically tailored for containerized agent environments.