RahulDhiman93

Tokenomy — AI skill for Claude Code

AI community

Tokenomy — A surgical toolkit for AI coding CLIs.

How to install Tokenomy

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

What Tokenomy does

Tokenomy — A surgical toolkit for AI coding CLIs. Cut tokens, keep context, build faster.

Alternatives in AI

  • Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
  • Codesight — Universal AI context generator 979 ★
  • Arbitrage — A Claude Code skill for token arbitrage: keep premium model tokens for judgment, dispatch all code-writing to 172 ★

README

Tokenomy

Stop burning tokens on tool chatter.

A surgical hook + analysis toolkit for **Claude Code, Codex CLI, Cursor, Windsurf, Cline, and Gemini** that transparently trims bloated MCP responses, clamps oversized file reads, bounds verbose shell commands, dedupes repeat calls, compresses agent memory files, and benchmarks waste.

[![CI](https://github.com/RahulDhiman93/Tokenomy/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/RahulDhiman93/Tokenomy/actions/workflows/ci.yml) [![Coverage](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/RahulDhiman93/Tokenomy/main/.github/badges/coverage.json&cacheSeconds=300)](#contribute) [![npm](https://img.shields.io/npm/v/tokenomy.svg?label=npm&color=cb0000&cacheSeconds=300)](https://www.npmjs.com/package/tokenomy) [![Node](https://img.shields.io/badge/node-%E2%89%A520-brightgreen)](#quickstart) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](#license) [![Phase](https://img.shields.io/badge/phase%205-beta-blue)](#roadmap)


🩻 Why

Long agent sessions burn 100k+ tokens on tool chatter before the agent does any real work. Compaction kicks in too late and is lossy.

Tokenomy plugs the holes the hook contracts let you close — zero proxy, no monkey-patching:

  • Live trimming — MCP/Bash/Read/Write hooks shrink responses the moment they fire
  • Code-graph MCP — focused context retrieval instead of brute-force Read sweeps
  • Agent nudges — redirect waste before it happens (OSS alternatives, prompt classifier)
  • Golem — terse-output mode (the one surface other features leave alone — assistant output is billed 5× input on Sonnet)
  • Raven — Claude/Codex cross-agent handoff + review bridge
  • Observability — savings.jsonl, tokenomy report, tokenomy analyze, statusline, doctor

Each live trim appen