Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
docs: surface code-aware proxy flags
Manorit Chawdhryc07c72de3c70
diff --git a/wiki/cli.md b/wiki/cli.mdindex 079d3af8b..47a27300e 100644--- a/wiki/cli.md+++ b/wiki/cli.md@@ -252,6 +252,7 @@ headroom proxy --mode cache| `--log-file` | unset | JSONL log output path || `--budget` | unset | Daily USD budget limit || `--no-code-aware` | off | Disable AST-aware code compression |+| `--code-aware` | off | Enable code-aware compression in the proxy (env: HEADROOM_CODE_AWARE_ENABLED) || `--no-read-lifecycle` | off | Disable stale/superseded read compression || `--no-intelligent-context` | off | Disable intelligent context manager || `--no-intelligent-scoring` | off | Disable multi-factor importance scoring |diff --git a/wiki/proxy.md b/wiki/proxy.mdindex c52e02ff9..087526f85 100644--- a/wiki/proxy.md+++ b/wiki/proxy.md@@ -74,6 +74,8 @@ When configured, Headroom emits OTLP traces for the shared compression pipeline| `--no-rate-limit` | `false` | Disable rate limiting || `--log-file` | None | Path to JSONL log file || `--budget` | None | Daily budget limit in USD |+| `--code-aware` | true | Enable AST-based code compression (env: HEADROOM_CODE_AWARE_ENABLED) |+| `--no-code-aware` | false | Disable code-aware compression || `--openai-api-url` | `https://api.openai.com` | Custom OpenAI API URL endpoint |### Run Modes