Status: [LIVE] Endpoints found: https://sonarcloud.io/api/project_badges/measure?project=listepo_rtok&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=listepo_rtok https://sonarcloud.io/api/project_badges/measure?project=listepo_rtok&metric=coverage)](https://sonarcloud.io/component_measures?id=listepo_rtok&metric=coverage Source: https://github.com/pyrlyn/rtok > [!NOTE] > This project is under active development. We need "testing volunteers": try it and report what breaks. rtok [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=listepo_rtok&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=listepo_rtok) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=listepo_rtok&metric=coverage)](https://sonarcloud.io/component_measures?id=listepo_rtok&metric=coverage) [![Tests](https://img.shields.io/sonar/tests/listepo_rtok?server=https%3A%2F%2Fsonarcloud.io&compact_message)](https://sonarcloud.io/component_measures?id=listepo_rtok&metric=tests) `rtok` reduces the context that AI coding agents must carry. It is one Rust binary with three surfaces: Claude Code hooks, an MCP server, and an API proxy. Each reduction is measured, and shortened payloads stay retrievable by id. Ten methods, one process, one ledger. A saving that is not a row in that ledger does not exist — including rtok's own. ## Install macOS on Apple silicon, and Linux x86-64: ```bash curl --proto '=https' --tlsv1.2 -LsSf https://github.com/pyrlyn/rtok/releases/latest/download/rtok-installer.sh | sh ``` Or with [ketch](https://github.com/pyrlyn/ketch), Homebrew, npm or PyPI (the npm and PyPI package is `rtok-cli`; the command is `rtok`): ```bash ketch install pyrlyn/rtok brew install pyrlyn/tap/rtok npm i -g rtok-cli uv tool install rtok-cli ``` Building from source, codesigning notes, shell completions and man pages: [docs/install.md](docs/install.md). First steps: [docs/getting-started.md](docs/getting-started.md). ## Start with Claude Code ```bash rtok agents install claude --dry-run # print what would be written, touch nothing rtok agents install claude # eight hooks and the MCP entry; settings backed up first rto