P0 scaffold done — measurement first
Token reduction for
Token reduction for
AI coding agents
One Rust binary. Every method is a plugin, every saving is a measured row,
and everything shortened can be expanded back.
One binary, three surfaces
Claude Code hooks, an MCP server, and an ANTHROPIC_BASE_URL proxy hop — instead of a stack of overlapping tools.
Measured, not claimed
A saving that is not a Measurement row does not exist. rtok stats reports what actually changed.
Lossless by default
Anything shortened is archived on disk and retrievable with rtok expand <id>.
Fails open
A hook exits 0 in under 10 ms even on error, with unmodified input. A half-installed rtok never blocks the host.
One config file
Every CLI flag is a config key. rtok config show --sources says where each value came from.
Write your own plugin
Public Plugin trait, in-tree modules behind Cargo features. No daemon, no subprocesses, no WASM.