Application Overview
DCP Proxy is a small local proxy for the OpenAI chat-completions API. Every request your AI coding agent sends passes through these stages:
- Identical tool calls are deduplicated: when the same call (same name and arguments) runs several times, only the newest result is kept; older copies become a short placeholder.
- Old error outputs are trimmed: stale failed tool outputs older than the recent tail are cut to a short prefix.
- Huge tool outputs are pruned: outputs larger than the prune window keep a head and a tail of verbatim content.
- Old thinking traces are stripped: previous turns' chain-of-thought is removed — engines never need it back.
- LLM compression: when the history grows past the threshold, the model itself summarizes it into a structured, lossless-biased summary.
- Secret redaction: credentials in tool output and tool-call arguments are masked as
[REDACTED]before the request leaves your machine — recent messages included. - Prompt shaping: repeated tool schemas and long tool descriptions are trimmed, and very large tool lists keep only the core tools plus the ones the conversation already used.
Your API keys stay in your client. The proxy forwards the Authorization header untouched and never stores it.