Skip to content

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.

fix(ci): pre-install rustfmt+clippy components in all Dockerfiles

chopratejas2ae57725e75c
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index d9b22be46..2e9aa296f 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -23,7 +23,7 @@ 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 && \
+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/Dockerfile b/Dockerfile
index 3df7c8ea8..5a1eac949 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -39,7 +39,7 @@ 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 --no-modify-path --profile minimal --default-toolchain stable
+ | sh -s -- -y --no-modify-path --profile minimal -c rustfmt -c clippy --default-toolchain 1.95.0
WORKDIR /build
diff --git a/e2e/init/Dockerfile b/e2e/init/Dockerfile
index 62aeca261..1ef1240e3 100644
--- a/e2e/init/Dockerfile
+++ b/e2e/init/Dockerfile
@@ -23,7 +23,7 @@ RUN apt-get update && \
python3-pip \
python3-venv && \
ln -sf /usr/bin/python3 /usr/local/bin/python && \
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.95.0 --profile minimal && \
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.95.0 --profile minimal -c rustfmt -c clippy && \
rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
diff --git a/e2e/wrap/Dockerfile b/e2e/wrap/Dockerfile
index 4ca024de1..bd4ad687a 100644
--- a/e2e/wrap/Dockerfile
+++ b/e2e/wrap/Dockerfile
@@ -27,7 +27,7 @@ RUN apt-get update && \
python3-pip \
python3-venv && \
ln -sf /usr/bin/python3 /usr/local/bin/python && \
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.95.0 --profile minimal && \
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.95.0 --profile minimal -c rustfmt -c clippy && \
rm -rf /var/lib/apt/lists/*
WORKDIR /workspace