AshleyImmanuel

ReToken — Development skill for Claude Code

Development community

Cut Claude Code, Cursor and coding-agent token costs.

How to install ReToken

This entry records only its repository, not the path inside it, so there is no exact command to give. Open AshleyImmanuel/ReToken and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What ReToken does

Cut Claude Code, Cursor and coding-agent token costs. Local Rust proxy that compresses tool output, aligns prompt caching and recovers anything it elides via MCP. Measured 29% cheaper than direct.

Alternatives in Development

  • Investigate Performance — Investigate a Nimbalyst performance problem (freeze, lag, idle CPU, slow op, memory growth) with measured evid 1.6k ★
  • Symfony Cache — Implement caching strategies using Symfony Cache component 206 ★
  • Mcptoon — Listing 255 MCP tools costs 71,929 tokens 195 ★

README

ReToken logo

ReToken

**Cut the token bill of Claude Code and other coding agents, without hiding anything from the model.**

A local Rust proxy that sits between your coding agent and the model provider. It trims noisy tool output, keeps prompt caches warm and lets the model recover anything it shortened.

[![CI](https://github.com/AshleyImmanuel/ReToken/actions/workflows/ci.yml/badge.svg)](https://github.com/AshleyImmanuel/ReToken/actions/workflows/ci.yml) [![Release](https://img.shields.io/github/v/release/AshleyImmanuel/ReToken)](https://github.com/AshleyImmanuel/ReToken/releases) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) ![Built with Rust](https://img.shields.io/badge/built%20with-Rust-orange.svg) ![Platforms](https://img.shields.io/badge/platforms-Linux%20%7C%20macOS%20%7C%20Windows-lightgrey.svg)

[Quick start](#quick-start) · [Results](#results) · [How it works](#how-it-works) · [Configuration](#configuration) · [Architecture](#architecture)


Why ReToken

Coding agents re-send the whole conversation on every turn: build logs, test output, JSON responses and file reads. That repeated input is most of an agent's API bill. ReToken removes the noise from it on the wire, so the same agent finishes the same task for less, with no change to the agent.

  • Built for coding agents. Used day to day with Claude Code. It forwards both API keys and Claude Code subscription (OAuth) logins unchanged. Any client that lets you set an Anthropic, OpenAI or Gemini base URL can point at it.
  • Speaks three wire formats. Anthropic Messages, OpenAI Chat Completions and Responses, and the Gemini API (generateContent) used by Gemini 4 Hydrogen, Neon and other Gemini models.
  • Helps where a proxy can't reach. retoken exec shortens command output before an agent sees it, for apps like Google Antigravity whose model traffic cannot be redirected.