LYGO pxpipe-LYGO (ClawHub)
Sovereign pxpipe-style compression: bulky text → PNG for vision APIs, P0 gate, manifests under data/pxpipe_lygo/.
When to use
- Token saver on large context (≥800 chars), not byte-exact secrets/hashes.
- Before pasting multi-KB tool dumps into Grok, Claude, or GPT.
When not to use
- API keys, seeds, Merkle hashes, or line-precise diffs you must reproduce exactly.
- Unknown
LYGO_STACK_ROOTor without readingreferences/SECURITY.md.
Setup
npx clawhub@latest install deepseekoracle/lygo-pxpipe-lygo
export LYGO_STACK_ROOT=/absolute/path/to/lygo-protocol-stack
pip install -r "$LYGO_STACK_ROOT/requirements-pxpipe.txt"
Agent commands (no proxy)
cd "$LYGO_STACK_ROOT"
python tools/pxpipe_lygo_for_agent.py --shrink-file path/to/huge.txt --target grok
python tools/pxpipe_lygo_for_agent.py --file path/to/huge.txt --target anthropic --png .pxpipe_ctx.png
Multi-tool proxy
python tools/run_pxpipe_lygo_proxy.py
| Client | Base URL |
|---|---|
| Anthropic / Claude Code | http://127.0.0.1:47821 |
| OpenAI SDK | http://127.0.0.1:47821/v1 |
| Grok / xAI | http://127.0.0.1:47821/v1 |
Set the matching API key in the environment. Proxy forwards upstream; does not store keys in manifests.
Agent rules
- Read
references/SECURITY.mdon first use. - Never compress secrets or
.envcontents. - No
git push, ClawHub publish, or HF upload unless user explicitly asks. - Prefer
--shrink-filein chat threads; use full JSON blocks only when building API calls.
Skill chain
lygo-api-token-saver → lygo-pxpipe-lygo → lygo-protocol-stack-operator
Doc
docs/BIOPHASE7_PXPIPE_LYGO.md in the stack repo.
