@prxy-official/prompt-optimizer

Prompt Optimizer✓ Verified

Restructures requests to maximize Anthropic prompt-cache hits. Sorts tools deterministically and stamps cache-control markers on the longest stable prefix.

optimizationv1.0.0MITcloudlocal#prompt-cache#anthropic#cache-control#token-reduction

Install

# Cloud
PRXY_PIPE=mcp-optimizer,semantic-cache,@prxy-official/prompt-optimizer

# Local
# Built-in module — ships with the gateway, no install needed
PRXY_PIPE=mcp-optimizer,semantic-cache,@prxy-official/prompt-optimizer

Add this module to your PRXY_PIPE env var. The order matters — modules run left-to-right on each request.

Configuration

Schema: https://github.com/Ekkos-Technologies-Inc/prxy-monster/blob/main/packages/modules-core/src/prompt-optimizer.ts

Author

ekkOS Technologies Inc. · @Ekkos-Technologies-Inc