Professional .claude/ template + compression proxy · Claude Code
Bootstrap Pro is the .claude/ baseline that structures serious projects: Spec-Driven Development, VSA + DDD, ADRs, hooks and verification loops. Ultron Mode is ultronpx, the local proxy that converts dense context blocks into PNG — up to ~3× cheaper per converted block, with exact identifiers protected and fail-open guaranteed. One bundle, one license.
Before you buy, see what the .claude/ baseline solves in practice — the video explains what Bootstrap is and why it exists. (Audio in Portuguese.)
Bootstrap Pro structures the project before the first line of code; Ultron Mode cuts the cost of every request after it. You skip the first two days of setup — and pay less for every day that follows.
The .claude/ baseline for serious projects: Spec-Driven Development, Vertical Slice + DDD, API-First, ADRs, Diátaxis docs, DevSecOps, ready-made subagents, skills and hooks — with a NOTES.md living memory and cross-session continuity. Delivered as a watermarked zip + GitHub template repository.
A local proxy that converts dense context blocks into PNG — vision tokens are priced per pixel, not per text: up to ~3× cheaper per block, ~45% measured savings per imaged block on real traffic. Verbatim Guard, adaptive gate, fail-open and auditable savings. A rewrite of the pxpipe concept, by teamchong, with attribution.
The Bootstrap disciplines your context — specs, NOTES.md, waves and compact hooks keep sessions lean and resumable. The ultronpx compresses whatever dense content remains: tool results, logs, history. Structure reduces waste; compression reduces the price of what's unavoidable.
It's the same .claude/ baseline used to start every serious B2Tech project — each capability below ships ready, with the assets named.
/goal command./loop, monitors a PR: answers review comments and fixes red CI on its own./compact; another restores context after it..env and sensitive paths at the tool level.docs/security/.docs-reminder nudges when docs fall behind the code./fix-issue for issue triage.docs/api/ — the code respects the contract, not the other way around.Compressing context is easy; compressing without corrupting a SHA, leaking a secret or blocking your flow is the real problem. Every piece below exists for that — all shipped in the ultronpx 2.x that comes with the bundle.
~/.ultronpx/events.jsonl: what was converted, what it cost, what it would have cost.ultronpx stats summarizes it in the terminal.--undo.~/.ultronpx/config.toml and shows the activation steps.127.0.0.1:47821.Request comes in → Verbatim Guard separates the untouchable → the gate decides if it pays off → render (or passthrough) → savings logged. All on 127.0.0.1.
With text, you pay per word — like a telegram. With an image, you pay for the size of the sheet: the API charges ⌈width × height ÷ 750⌉ tokens per image, no matter how much text is written on it. ultronpx is the scribe that rewrites the telegram in dense handwriting on a calibrated sheet — and sends the photo.
Every image costs ⌈(width × height) ÷ 750⌉ input tokens, at the model's normal price. The cost is fixed by geometry — the denser the text inside the sheet, the cheaper each character gets.
| Image | Math | Tokens |
|---|---|---|
| 500 × 500 | 250,000 ÷ 750 | ~334 |
| 1092 × 1092 | 1,192,464 ÷ 750 | ~1,590 |
| 1573 × 1248 | 1,963,104 ÷ 750 | ~2,618 |
| 1928 × 1928 | 3,717,184 ÷ 750 | ~4,956 |
100,000 tokens of dense context (~190k characters) rendered at the maximum density the current resolution cap allows:
| As text | As image | |
|---|---|---|
| Volume | 100,000 tokens | ~2.1 PNG pages |
| Tokens billed | 100,000 | ~10,300 |
| Ideal block | — | ~90% less |
And in an agentic session the same context is resent dozens of times — the difference compounds on every request.
The honest asterisks: ~90% is the ceiling of the ideal block, not of your bill — the real total includes prose that stays as text, protected recent turns and requests the gate rejects; that's why ultronpx advertises the measured number (up to ~3× per block, ~45% savings on real traffic), not the theoretical one. And the ceiling depends on each model generation's resample cap: a page rendered above the cap gets resized by the API before tokenization — lower billing, destroyed fidelity, no visible error. That is exactly what model profiles + the fidelity probe exist to prevent: page geometry is calibrated per model and recall is measured (0.93 on Fable with the dense renderer), not assumed.
The ultronpx sits between Claude Code and Anthropic — a position that demands explicit guarantees, not promises.
The API key is never written down
The key lives only in the client environment. The proxy forwards the header to api.anthropic.com and never writes it to config, logs, telemetry events or pixels.
Secrets pin the block as text
If the Verbatim Guard detects a secret in a block, the whole block is kept out of the render — credentials never become an image, not even by accident.
Byte-exact identifiers
SHAs, UUIDs, IPs and stack traces go to a textual sidecar before rendering. Claude cites the exact commit — not an approximate visual reading of it.
Fail-open, always
Any internal error degrades to a byte-identical passthrough — and if an already-imaged request comes back with a 400 from the API, the proxy instantly resends the original untouched (v2.2 hardening). It never blocks your flow or corrupts a payload — the worst case is the behavior without ultronpx.
Local-first, zero analytics
Listens on 127.0.0.1:47821; the only network destination is api.anthropic.com — the same as Claude Code without the proxy. No telemetry byte leaves your machine.
Auditable end to end
Every modified request leaves a trail in ~/.ultronpx/events.jsonl — what was converted, what it cost, what it would have cost. The license is validated at activation; after that, zero contact with B2Tech servers.
Delivery is automatic after checkout. The template arrives by email and GitHub; ultronpx activates with your purchase email. Requires Node.js ≥ 22.
Two delivery channels — the zip is the official licensed copy; the repository is the git-native convenience.
NOTICE.md — your proof of license. Keep the original safe.# future updates, straight from master git remote add bootstrap <master-repo> git fetch bootstrap
chmod +x .claude/hooks/*.sh git init && git add . && git commit
ultronpx setup runs the whole flow in one guided command: creates the config, activates the license, installs the proxy as a background service (auto-restart) and points your shell at it with fallback. Reversible with ultronpx setup --undo.
setup. The license arrives as a 6-digit code at your purchase email; setup chains config → license → service → shell wrapper → verification.# Node.js ≥ 22 npm install -g ultronpx ultronpx setup
claude. No daily step: the service keeps the proxy up and the wrapper decides per session — proxy up → compress; down → direct API, no error.claude # normal use, transparent compression ultronpx stats # measured savings (USD/BRL), by day and session
Prefer to wire it up piece by piece — or on a platform without systemd/launchd? The individual commands (init, activate, doctor, start) still exist; see under the hood right below.
setup does for you (and the manual path)No magic, no global config. setup wires up exactly what you'd do by hand — and on native Windows, WSL without systemd or an unrecognized shell (fish) it prints these steps instead of installing blindly. One proxy per machine serves all your terminals and projects; don't run one per project.
Restart=always (dies, back in ~2 s) and enable-linger (starts with the machine, no terminal open). On macOS, a LaunchAgent with KeepAlive.# ~/.config/systemd/user/ultronpx.service (Linux/WSL) [Service] ExecStart=$(which ultronpx) start Restart=always RestartSec=2
claude() wrapper in ~/.bashrc/~/.zshrc — never a fixed export ANTHROPIC_BASE_URL (that would nullify the fallback; if setup finds an old export in your rc, it warns but never edits the line). It applies in terminals opened afterwards — that's why the final message says "open a new terminal".claude() {
if (echo >/dev/tcp/127.0.0.1/47821) 2>/dev/null; then
ANTHROPIC_BASE_URL=http://127.0.0.1:47821 command claude "$@"
else
command claude "$@"
fi
}Controls when you need them
systemctl --user stop ultronpx # pause: sessions go straight to the API systemctl --user start ultronpx # resume compressing journalctl --user -u ultronpx -f # live proxy logs ultronpx setup --undo # remove service + wrapper (config and license stay)
On macOS the equivalents are launchctl unload/load of the LaunchAgent — setup prints the paths. Fallback scope: the wrapper redirects the API base URL (all routes — /v1/messages, count_tokens…), decided at each session launch, not per request; if the proxy dies mid-session, systemd recycles it in ~2 s and Claude Code's own retry absorbs the gap.
Still unsure about something? Write to bruno@b2tech.io.
NOTICE.md with a fingerprint) and, if you provide your GitHub username, a read-only invite to the master repository — history, updates and the Use this template button. The ultronpx license is activated with your purchase email..claude/ baseline — CLAUDE.md, subagents, skills (/spec, /waves, /verify, /babysit-pr, /security-scan, /vertical-slice), security and continuity hooks, a NOTES.md living memory, ADR, OpenAPI, AsyncAPI and STRIDE templates, a Diátaxis docs tree and a CI skeleton. (2) ultronpx 2.x: the local visual context compression proxy, licensed with the same purchase.api.anthropic.com and never writes it to config, logs, telemetry or pixels. At runtime the only network destination is api.anthropic.com — the same as Claude Code without the proxy — and the savings telemetry stays in ~/.ultronpx/events.jsonl, on your machine. The license is validated at activation; zero remote analytics after that.npm install -g ultronpx and ultronpx setup. setup is guided and handles everything in one flow — config, license (6-digit code at your purchase email), the proxy as a background service with auto-restart (systemd user on Linux/WSL, LaunchAgent on macOS) and a shell wrapper with fallback (proxy down = direct API, no error). From then on there's no daily step: open a new terminal and use claude. Reversible with ultronpx setup --undo; on a platform without systemd/launchd it prints the manual steps instead of installing blindly.One purchase, two layers: the .claude/ baseline that structures every new project and the proxy that converts dense blocks into PNG when it pays off — identifiers intact, fail-open guaranteed and every cent audited in events.jsonl.
watermarked zip + GitHub template · ultronpx via npm + license · Node ≥ 22 · local-first