CLAUDE CODE + CODEX · LOCAL TOTALS
STANDBY0EST. TOKENS AVOIDED
Waiting for a published snapshot.
CLAMPS0
REPEATS BLOCKED0
BYTES AVOIDED0
EST. TOKENS0
SNAPSHOT—
MIT · One Rust binary · install ↓
Gross estimate: bytes avoided ÷ 4. Follow-up reads and overhead are excluded. Methodology ↗
STK
Claude Code + Codex
STK turns large file reads into line-numbered outlines
Your agent fetches the parts it needs
Install
git clone https://github.com/ryanportfolio/STK.git
cd STK
cargo install --path .
stk init --auto
Requires Rust. Setup detects installed clients, preserves other settings, and creates backups. In Codex, open /hooks to review and trust STK. Start a new session after setup.
Reads
| Client | Intercepts | Follow-up |
|---|---|---|
| Claude Code | Native Read | Read with offset and limit |
| Codex | Simple cat, Get-Content, rtk read commands | stk read with offset and limit |
Default threshold: 16 KiB, or 50 KiB for Markdown. Small files, scoped reads, binaries, and unsupported commands pass through. In Claude Code, asking again for an unchanged file (up to 4 MiB) in the same session returns the whole file; Codex gets the outline again. Older versions blocked those repeats; the repeats-blocked counter keeps that history.