/skill-madness:use-pxpipefrom skill-madness
Wires pxpipe as a local proxy that compresses re-sent bulk context into dense PNG images, cutting long-session input tokens by ~59-70%. Opt-in via env toggle, reversible with one unset.
Ships in skill-madness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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 |
Opt-in, never vendored. Upstream is young (~8 weeks of history, v0.8.x). This skill wires it as a reversible environment in front of the harness; it never embeds pxpipe code into a build or makes it a project dependency. If upstream breaks, one
unsetrestores stock behavior.
| What | Value |
|---|---|
| base_url | http://127.0.0.1:47821 → ANTHROPIC_BASE_URL (Claude Code) |
| model scope | PXPIPE_MODELS — default claude-fable-5 only; widen ONLY per the allowlist in model-adaptation |
| dashboard / kill switch | http://127.0.0.1:47821/ — live savings, passthrough toggle (POST /api/compression) |
pxpipe images context that the model must then read back from pixels, and models differ sharply
at that: the technique is safe only for models measured to read production-density renders. The
governed allowlist lives in model-adaptation (the toolkit's model-and-effort authority) —
read its "Image-proxy model allowlist" section, and the current list with measured read rates
in its references/model-effort-tiering.md (Image-proxy allowlist — current state), before
wiring anything, and never widen PXPIPE_MODELS beyond it. Imaging a model that misreads the render produces confident wrong
answers, not errors. The upstream default (claude-fable-5 only) is the measured-safe floor; if
the session's model isn't on the allowlist, pxpipe passes requests through uncompressed
(reason: unsupported_model) — harmless, but pointless, so stop here and say so.
curl -fsS http://127.0.0.1:47821/api/stats.json > /dev/null && echo "pxpipe up"
If nothing answers, start it (Node 18+):
npx pxpipe-proxy
It binds 127.0.0.1:47821 and serves the dashboard at /. Leave it running in its own terminal
or a background process; re-probe the stats endpoint to confirm.
Security posture — loopback only. The dashboard is unauthenticated and serves captured request
context plus a kill switch. Never set HOST=0.0.0.0 on a shared machine; off-host exposure is
deliberate opt-in upstream and logs a warning. (A Cloudflare Workers deployment exists but requires
PXPIPE_WORKER_SECRET; it is out of scope for this skill — local wiring only.)
Set the env var in the shell that launches Claude Code — never in checked-in project config:
# on — this shell's Claude Code sessions route through pxpipe
export ANTHROPIC_BASE_URL=http://127.0.0.1:47821
# off — one line, full stock behavior restored
unset ANTHROPIC_BASE_URL
Scope it to the session: an export in the launching shell (or a wrapper alias the user opts
into) beats writing it into ~/.zshrc, because the whole point is that any given session chooses.
If the user wants it durable, put the pair in their shell profile as two labeled lines they can
comment-swap — same pattern as use-freellmapi's .env blocks.
Byte-exact escape hatch: work that must be verbatim-faithful can run on a subagent model
outside the image scope — e.g. CLAUDE_CODE_SUBAGENT_MODEL=claude-sonnet-5 (the Mid tier in
model-adaptation's tiering ladder) routes that subagent's traffic through the proxy untouched —
a genuine passthrough as long as that model stays off the image-proxy allowlist, so re-check the
allowlist when picking the hatch model.
"It's wired" is not the claim; "it's saving" is. Two checks, both against
~/.pxpipe/events.jsonl or the dashboard — read references/verification.md for the exact
fields and the failure signatures:
reason: unsupported_model (wrong model scope) or a gate
decline (session too small; fine, it will kick in as history grows).cache_create rate on the whole history repeatedly — the
historical −250% "savings" regression. Warm looks like: history_image_sha8 stable across
consecutive turns, cache_read_tokens dominating cache_create_tokens after the first turn.
The dashboard reports savings unfloored — a negative number is honest and means turn the
toggle off and investigate, not "close enough".Tell the user, briefly:
http://127.0.0.1:47821/ — live per-session savings, image previews, model-scope
chips (chips mutate scope in-memory only; a restart reverts to PXPIPE_MODELS/default).unset ANTHROPIC_BASE_URL (hard off, this shell);
dashboard passthrough toggle or PXPIPE_DISABLE=1 (proxy stays up, compression off, no
restart); PXPIPE_MODELS=off (scope-level off).use-freellmapi — it rewires the
app's client, not the harness).references/verification.md — the events.jsonl fields to check, warm-vs-shredded cache
signatures, the −250% regression story, the full kill-switch matrix, and how to read the
dashboard's savings numbers honestly (pctInput vs pctTotal, unfloored negatives, refusal-flagged
rows).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ivy00johns/skill-madness --plugin skill-madness87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/Other plugins' skills for the same job