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
ci(init-native): install [proxy] extras and use pwsh for Windows shim check
JerrettDavisbc7a95a7c785
diff --git a/.github/actions/headroom-e2e-setup/action.yml b/.github/actions/headroom-e2e-setup/action.ymlindex 2faf79c64..0651b9699 100644--- a/.github/actions/headroom-e2e-setup/action.yml+++ b/.github/actions/headroom-e2e-setup/action.yml@@ -27,12 +27,14 @@ runs:with:python-version: ${{ inputs.python-version }}- - name: Install headroom (editable, core deps only)+ - name: Install headroom (editable, with proxy extras)shell: bashrun: |python -m pip install --upgrade pip- # ``init`` doesn't need the proxy extras; install the base package.- pip install -e .+ # ``headroom/cli/__init__.py`` eagerly imports ``proxy.server`` (via+ # ``cli/proxy.py``), which requires ``fastapi`` even for ``init``.+ # Install with the ``[proxy]`` extras to match the Docker e2e image.+ pip install -e ".[proxy]"- name: Drop shim (POSIX)if: ${{ inputs.shim-target != '' && runner.os != 'Windows' }}diff --git a/.github/workflows/init-native-e2e.yml b/.github/workflows/init-native-e2e.ymlindex a355b4f70..cc9a4cdcb 100644--- a/.github/workflows/init-native-e2e.yml+++ b/.github/workflows/init-native-e2e.yml@@ -56,11 +56,22 @@ jobs:python-version: "3.11"shim-target: ${{ matrix.target }}- - name: Verify shim is on PATH+ - name: Verify shim is on PATH (POSIX)+ if: runner.os != 'Windows'shell: bashrun: |which "${{ matrix.target }}"+ - name: Verify shim is on PATH (Windows)+ if: runner.os == 'Windows'+ shell: pwsh+ run: |+ # On Windows the shim is ``<target>.cmd``; Get-Command resolves via+ # PATHEXT (same as Python's ``shutil.which`` used by headroom init).+ # Git Bash's ``which`` cannot find ``.cmd`` shims, so we use pwsh.+ $cmd = Get-Command "${{ matrix.target }}" -ErrorAction Stop+ Write-Output $cmd.Source+- name: Run headroom init -g ${{ matrix.target }}shell: bashrun: |