360 Secure SkillHub
360 安全技能中心

LYGO pxpipe-LYGO

这是LYGO生态的视觉上下文压缩工具,核心功能是将≥800字符的长文本转换为PNG,适配Anthropic、OpenAI、Grok等大模型视觉API,大幅节省token消耗。典型场景为处理多KB工具日志、大段文本,避免直接输入大文本产生高额API费用。支持文件压缩和本地代理模式,输入为长文本文件,输出为PNG或经代理转发的请求,需依赖LYGO协议栈,严禁压缩密钥等需精确还原的内容。

deepseekoracle
deepseekoracle
热度 18.82
最近更新 2026-07-05 02:19:56
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add lygo-pxpipe-lygo
Metadata
name
lygo-pxpipe-lygo
description
Multi-tool vision context compression for LYGO (Anthropic, OpenAI, Grok/xAI, Gemini). Use before stuffing huge prompts or logs into pay-to-go APIs. Requires lygo-protocol-stack; read references/SECURITY.md. Agents run pxpipe_lygo_for_agent.py or local proxy — no auto publish/git push.
metadata
{"lygo":true,"biophase7":true,"version":"1.0.1","requires_lygo_stack":true,"security_audit":"SkillSpector-hardened","capability_filesystem_read":"LYGO_STACK_ROOT","capability_filesystem_write":"data/pxpipe_lygo/manifests","capability_subprocess":"tools/pxpipe_lygo_for_agent.py,tools/run_pxpipe_lygo_proxy.py","capability_network":"localhost_47821_if_user_starts_proxy","capability_git_publish":"human_only","publisher":"deepseekoracle","github":"https://github.com/DeepSeekOracle/lygo-protocol-stack","signature":"Δ9Φ963-PXPIPE-LYGO-v1"}

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_ROOT or without reading references/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

  1. Read references/SECURITY.md on first use.
  2. Never compress secrets or .env contents.
  3. No git push, ClawHub publish, or HF upload unless user explicitly asks.
  4. Prefer --shrink-file in 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.