use-pxpipe
Installation
SKILL.md
use-pxpipe
Point the agent harness at pxpipe — a local proxy on
127.0.0.1:47821 that rewrites the bulky, re-sent parts of every Claude Code request (system
prompt, tool docs, collapsed older history) into dense PNG image blocks before the request leaves
the machine. An image's token cost is fixed by pixel area, not character count, so token-dense
material (code, JSON, logs) carries roughly 3× more characters per token as pixels than as text.
Measured end to end on real sessions: ~59–70% fewer input tokens (one live A/B: 856k → 277k).
Responses stream back untouched — pxpipe compresses the request, never the model's output.
This is the harness-level sibling of use-freellmapi, one level up the stack:
use-freellmapi |
use-pxpipe |
|
|---|---|---|
| What gets rewired | The app's LLM client (base_url + key in source) | The agent harness (ANTHROPIC_BASE_URL env) |
| Goal | Prototype the app for free | Cut the coding session's input tokens |
| Loss profile | None (real models, just free) | Lossy gist on old bulk; recent turns stay text |
| Flip back | Env toggle in the app | unset ANTHROPIC_BASE_URL — one line |