prxy.monster API-key BYOK is live. Start free

Coding assistant

For Claude Code, Cline, Continue.dev, custom MCP-based coding agents — anything that hits the gateway with a fat tool list and runs for hours per session.

What this pipeline is good at

The pipeline

PRXY_PIPE='mcp-optimizer,patterns,ipc'

Use prompt-optimizer after ipc and compaction-bridge at the end:

PRXY_PIPE='mcp-optimizer,prompt-optimizer,patterns,ipc,rehydrator,compaction-bridge'

Why this order

  1. mcp-optimizer first — strips tools before anything else looks at the prompt. The kept set is stable per session, so prompt cache prefix doesn’t shatter.
  2. patterns — injects relevant past fixes BEFORE the prompt is finalized. Pattern injection adds tokens, so it goes after token-stripping.
  3. ipc last — measures the final prompt size after everything else has touched it. Compresses oldest turns to fit under target.

What you’ll see

After a week of using this pipeline against the same codebase:

Variants

Heavy MCP user (Claude Code with many connected servers):

pipeline:
  - mcp-optimizer:
      relevanceThreshold: 0.5    # less aggressive — keep more tools
      preserveTools: [read_file, write_file, bash, grep, glob, edit_file]
      minTools: 3
  - patterns: { maxInjected: 5 }
  - ipc: { targetUtilization: 0.7 }

Pattern-focused (you trust your codebase patterns more than tool relevance):

pipeline:
  - patterns:
      maxInjected: 8              # inject more past fixes
      minSuccessRate: 0.5         # less conservative
  - mcp-optimizer:
      relevanceThreshold: 0.65
  - ipc: { targetUtilization: 0.75 }

See also