# teamchong/pxpipe — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `skills`
- Overall score: `3.7/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `05809cb9d77c` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-11-30T12:43:25Z
- Repository: https://github.com/teamchong/pxpipe
- Radar entry: https://radar.alplab.co/#repo/teamchong/pxpipe
- License: `MIT`
- CI workflows: `.github/workflows`
- Tags: `llm-proxy`, `token-optimization`, `vision`, `claude-code`, `anthropic`, `context-compression`

## Summary

Local Node/Workers proxy that rewrites bulky LLM-request context (system+tools, old history, large tool_results) into dense bitmap-font PNGs to cut input tokens, with per-model render profiles, a profitability gate, a dashboard, and a `warp` CONNECT-TLS wrapper for agents that cannot take a base-URL override.

## Implementation Check

Core claims are implemented in code: request transform and gate in src/core/proxy.ts + src/core/transform.ts, pure-JS PNG encoder in src/core/png.ts, render/atlas pipeline in src/core/render.ts + src/core/library.ts, TLS-terminating wrapper in src/warp/index.ts + src/warp/ca.ts — README describes what these files actually do.

## When to Use

When running token-dense coding-agent sessions (Claude Code, agy, OpenCode/Codex) through a vision-capable model and input cost dominates. Do not use with models its own matrix scores as weak dense readers (Sonnet/Haiku 5.5, GPT-6.x, Kimi, GLM) or when byte-exact recall of IDs/numbers in imaged history is critical.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.5/5 |
| usability | 3.5/5 |
| reliability | 3.0/5 |
| security | 3.5/5 |
| integration | 4.0/5 |

## Code Evidence

src/core/proxy.ts (99KB runtime-agnostic fetch handler: bounded streaming bodies, credential-shape routing policy resolveOpenAIRouteAuth, SSE usage scanning), src/core/png.ts (real CRC/deflate/Average-filter encoder, no native deps), src/core/library.ts (documented public SDK), src/warp/ca.ts (self-signed P-256 CA, key 0600, trust scoped to child via NODE_EXTRA_CA_CERTS bundle), 40+ vitest files incl. e2e (tests/cache-stability-e2e.test.ts, tests/export-git-e2e.test.ts), CI runs typecheck+tests+build+audit (.github/workflows/ci.yml, least-privilege, SHA-pinned actions), single runtime dependency gpt-tokenizer (package.json), supply-chain guard in .npmrc (minimum-release-age).

## Issues Found

src/warp/index.ts deliberately strips ANTHROPIC_BASE_URL/ANTHROPIC_UNIX_SOCKET from the child env and MITMs the agent's TLS so client-side 'first-party' gates keep passing — disclosed and child-scoped, but it is designed circumvention of a client-side check and the warp CA key persists in ~/.pxpipe (usable by anything pointed at it). warp's shell fallback spawns `$SHELL -ic` with the command word intentionally unquoted (src/warp/index.ts spawnResolved) to allow alias expansion — expected behavior for a run-anything CLI, but it executes whatever the user's interactive shell resolves. README/model-ids reference a fictional-feeling future model landscape (fable-5, gemini-4-argon); treat all vendor claims as the repo's own framing.

## Key Risks

Nothing was executed: tests exist but are not proven to pass, and every benchmark number (10/10 SWE-bench Lite, 15/15 hex on gemini-4-argon, ~59-70% savings) is repo-authored receipt material not independently verified. Effectiveness is heavily model-dependent and the repo itself documents that most current Claude releases read dense pages poorly (0/15-3/15), with a silent-confabulation failure mode (docs/NOT-OCR.md, docs/LEGIBILITY-AUDIT-2026-07-01.md). Results were reviewed at one commit; behavior may drift with provider wire changes.

## Reviewed Files

- `README.md`
- `package.json`
- `bin/cli.js`
- `src/core/index.ts`
- `src/core/library.ts`
- `src/core/png.ts`
- `src/core/proxy.ts`
- `src/node.ts`
- `src/warp/index.ts`
- `src/warp/ca.ts`
- `docs/SECURITY_MODEL.md`
- `.github/workflows/ci.yml`
- `.npmrc`
- `vitest.config.ts`
