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
fix(ci): use ghcr devcontainer rust feature instead of manual rustup install
chopratejas9ce61afcd4d8
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfileindex 2e9aa296f..63debd131 100644--- a/.devcontainer/Dockerfile+++ b/.devcontainer/Dockerfile@@ -6,12 +6,18 @@ FROM mcr.microsoft.com/devcontainers/python:1-${VARIANT}# Maturin needs rust + cargo + pkg-config + libssl-dev (transitive# openssl-sys via fastembed/hf-hub).#-# The base image `mcr.microsoft.com/devcontainers/python:1-3.12-bookworm`-# ships with `dl.yarnpkg.com` configured as an apt source whose GPG key-# is expired. We don't need yarn for the maturin build, so drop that-# source list before `apt-get update` to avoid `NO_PUBKEY` aborting the-# whole step (apt-get returns exit 100 even though deb.debian.org's-# main repo updates fine).+# Rust toolchain is provisioned via the official devcontainer feature+# (`ghcr.io/devcontainers/features/rust:1`) declared in devcontainer.json+# so /usr/local/cargo gets the right ownership/permissions for the+# `vscode` runtime user. A manual rustup install in this Dockerfile would+# leave /usr/local/cargo/registry root-owned and the registry cache+# write would fail with "Permission denied" the first time uv sync+# triggers maturin → cargo as the vscode user.+#+# Drop /etc/apt/sources.list.d/yarn.list before apt-get update — the+# base image's yarnpkg.com source has an expired GPG key that aborts+# the whole RUN with "NO_PUBKEY 62D54FD4003F6525". The maturin build+# doesn't need yarn.RUN rm -f /etc/apt/sources.list.d/yarn.list && \apt-get update && \apt-get install -y --no-install-recommends \@@ -19,11 +25,4 @@ RUN rm -f /etc/apt/sources.list.d/yarn.list && \libssl-dev && \rm -rf /var/lib/apt/lists/*-ENV CARGO_HOME=/usr/local/cargo \- RUSTUP_HOME=/usr/local/rustup \- PATH=/usr/local/cargo/bin:${PATH}--RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.95.0 --profile minimal -c rustfmt -c clippy && \- rustc --version && cargo --version-RUN python -m pip install --no-cache-dir uv==0.6.17 'maturin>=1.5,<2.0'diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.jsonindex f5986e910..26086258c 100644--- a/.devcontainer/devcontainer.json+++ b/.devcontainer/devcontainer.json@@ -8,7 +8,12 @@"ghcr.io/devcontainers/features/node:1": {"version": "20"},- "ghcr.io/devcontainers/features/github-cli:1": {}+ "ghcr.io/devcontainers/features/github-cli:1": {},+ "ghcr.io/devcontainers/features/rust:1": {+ "version": "1.95.0",+ "profile": "minimal",+ "components": "rustfmt,clippy"+ }},"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}","remoteUser": "vscode",diff --git a/.devcontainer/memory-stack/devcontainer.json b/.devcontainer/memory-stack/devcontainer.jsonindex 440824905..597e43eee 100644--- a/.devcontainer/memory-stack/devcontainer.json+++ b/.devcontainer/memory-stack/devcontainer.json@@ -18,7 +18,12 @@"ghcr.io/devcontainers/features/node:1": {"version": "20"},- "ghcr.io/devcontainers/features/github-cli:1": {}+ "ghcr.io/devcontainers/features/github-cli:1": {},+ "ghcr.io/devcontainers/features/rust:1": {+ "version": "1.95.0",+ "profile": "minimal",+ "components": "rustfmt,clippy"+ }},"forwardPorts": [8787,