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: pin dtolnay/rust-toolchain@stable, set toolchain via input
chopratejasbcef7637206c
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.ymlindex be2ebcfd6..ea8c67afc 100644--- a/.github/workflows/rust.yml+++ b/.github/workflows/rust.yml@@ -42,8 +42,14 @@ jobs:steps:- uses: actions/checkout@v4- name: Install stable toolchain- uses: dtolnay/[email protected]+ # Pin action code to @stable (latest fixes), toolchain version+ # via input. The @1.95.0 ref shipped action code that errors on+ # ubuntu-latest with `detected conflict: 'bin/cargo-clippy'`+ # because the pre-installed runner Rust collides with the+ # clippy-preview component install.+ uses: dtolnay/rust-toolchain@stablewith:+ toolchain: 1.95.0components: rustfmt, clippy- name: Cache cargo registry + builduses: Swatinem/rust-cache@v2@@ -101,7 +107,9 @@ jobs:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4- - uses: dtolnay/[email protected]+ - uses: dtolnay/rust-toolchain@stable+ with:+ toolchain: 1.95.0- uses: Swatinem/rust-cache@v2- name: Install cargo-audit + cargo-denyrun: |@@ -121,7 +129,9 @@ jobs:continue-on-error: truesteps:- uses: actions/checkout@v4- - uses: dtolnay/[email protected]+ - uses: dtolnay/rust-toolchain@stable+ with:+ toolchain: 1.95.0- uses: actions/setup-python@v5with:python-version: '3.11'