rtk

Rewrite shell commands into token-saving equivalents for AI agents.

40|9|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/akillness/jeo-skills --skill rtk-akillness
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rtk
Source: https://github.com/akillness/jeo-skills/tree/main/.agent-skills/rtk
Command: npx skills add https://github.com/akillness/jeo-skills --skill rtk-akillness

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

RTK reduces token usage by rewriting shell commands into token-efficient equivalents and ensures the correct rtk binary is installed for AI coding agents.

Core Features & Use Cases

  • Install RTK via multiple methods (Homebrew, install script, or Cargo) and verify installation with rtk gain.
  • Initialize per-agent flows (Claude Code, Codex, Gemini, Cursor, Copilot, OpenCode) and provide direct command fallbacks when hooks are unavailable.
  • Use compact wrappers like rtk read, rtk grep, rtk git status, and rtk gain to optimize interactions in AI workflows.

Quick Start

Install RTK via the recommended installation method, verify with rtk gain, and run rtk init for your agent.

Frequently Asked Questions about rtk

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

FAQPage Schema
How do I reduce token usage when running shell commands in AI agents?

RTK reduces token usage by rewriting shell commands into token-saving equivalents. It provides compact wrappers like rtk read and rtk grep to optimize interactions and minimize context window consumption during AI coding workflows.

How do I install and verify RTK for my coding agent?

You can install RTK via Homebrew, an install script, or Cargo. After installation, verify the binary is correctly set up by running the rtk gain command, which confirms the tool is ready for your AI workflow.

Does RTK support integration with Claude Code, Cursor, and Gemini?

Yes, RTK supports integration with Claude Code, Cursor, Gemini, Codex, Copilot, and OpenCode. It initializes per-agent platform flows using rtk init and provides direct command fallbacks when shell hooks are unavailable.

What should I do if shell hooks are unavailable for my AI agent?

When shell hooks are unavailable for your AI agent, RTK provides direct command fallbacks. You can manually use wrapper commands like rtk git status to ensure token optimization still functions without relying on automated hooks.

Why does my AI agent consume so many tokens when reading files?

AI agents consume excessive tokens when reading files because standard shell commands output verbose text. RTK solves this by rewriting commands like cat or grep into compact wrappers such as rtk read, delivering token-efficient equivalents.