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.

ci(docker): fix Argument list too long when signing bake outputs

chopratejasf3d5392cc870
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 78381697b..488f96e35 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -5,14 +5,14 @@
},
"metadata": {
"description": "Headroom marketplace for Claude Code and GitHub Copilot CLI plugins.",
- "version": "0.11.0"
+ "version": "0.10.18"
},
"plugins": [
{
"name": "headroom",
"source": "./plugins/headroom-agent-hooks",
"description": "Headroom startup hooks for Claude Code and GitHub Copilot CLI.",
- "version": "0.11.0",
+ "version": "0.10.18",
"author": {
"name": "Headroom Contributors",
"url": "https://github.com/chopratejas/headroom"
diff --git a/.github/plugin/marketplace.json b/.github/plugin/marketplace.json
index 78381697b..488f96e35 100644
--- a/.github/plugin/marketplace.json
+++ b/.github/plugin/marketplace.json
@@ -5,14 +5,14 @@
},
"metadata": {
"description": "Headroom marketplace for Claude Code and GitHub Copilot CLI plugins.",
- "version": "0.11.0"
+ "version": "0.10.18"
},
"plugins": [
{
"name": "headroom",
"source": "./plugins/headroom-agent-hooks",
"description": "Headroom startup hooks for Claude Code and GitHub Copilot CLI.",
- "version": "0.11.0",
+ "version": "0.10.18",
"author": {
"name": "Headroom Contributors",
"url": "https://github.com/chopratejas/headroom"
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index e7331a7f4..069f91a71 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -137,7 +137,6 @@ jobs:
- name: Sign images with cosign (keyless via Sigstore OIDC)
env:
- BAKE_META: ${{ steps.bake.outputs.metadata }}
# Route signatures to a sibling GHCR package so the main image's
# package version list stays clean. GHCR does not implement the OCI 1.1
# referrers API yet (community discussion #163029, June 2025), so
@@ -147,9 +146,22 @@ jobs:
# COSIGN_REPOSITORY value when running 'cosign verify'.
COSIGN_REPOSITORY: ${{ env.REGISTRY }}/${{ steps.image-name.outputs.image_name }}-signatures
run: |
- echo "$BAKE_META" | jq -r '
- to_entries[].value."containerimage.digest" // empty
- ' | while read -r digest; do
+ # Write bake metadata to a file rather than pass it through
+ # the `env:` block. The `code-nonroot` and `runtime-code-nonroot`
+ # bake targets emit metadata blobs large enough that combined
+ # argv+env at bash spawn exceeds Linux ARG_MAX (~128 KiB on
+ # ubuntu-latest), failing with `E2BIG: Argument list too long`
+ # before the script can run. The heredoc puts the JSON in the
+ # script body (which is read from a temp file by bash, no
+ # ARG_MAX limit) and we read it back via `jq -f`-style file
+ # input. Sentinel chosen long enough that no JSON payload is
+ # plausibly going to collide with it.
+ cat > "${RUNNER_TEMP}/bake_meta.json" <<'__HEADROOM_BAKE_META_EOF__'
+ ${{ steps.bake.outputs.metadata }}
+ __HEADROOM_BAKE_META_EOF__
+
+ jq -r 'to_entries[].value."containerimage.digest" // empty' \
+ "${RUNNER_TEMP}/bake_meta.json" | while read -r digest; do
image="${{ env.REGISTRY }}/${{ steps.image-name.outputs.image_name }}@${digest}"
echo "Signing ${image} (signatures -> ${COSIGN_REPOSITORY})"
cosign sign --yes "${image}"
diff --git a/plugins/headroom-agent-hooks/.claude-plugin/plugin.json b/plugins/headroom-agent-hooks/.claude-plugin/plugin.json
index 5413f88ea..094d29a84 100644
--- a/plugins/headroom-agent-hooks/.claude-plugin/plugin.json
+++ b/plugins/headroom-agent-hooks/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "headroom",
- "version": "0.11.0",
+ "version": "0.10.18",
"description": "Headroom startup hooks for Claude Code and GitHub Copilot CLI.",
"author": {
"name": "Headroom Contributors",
diff --git a/plugins/headroom-agent-hooks/.github/plugin/plugin.json b/plugins/headroom-agent-hooks/.github/plugin/plugin.json
index 8b69de7cb..a247987ee 100644
--- a/plugins/headroom-agent-hooks/.github/plugin/plugin.json
+++ b/plugins/headroom-agent-hooks/.github/plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "headroom",
- "version": "0.11.0",
+ "version": "0.10.18",
"description": "Headroom startup hooks for Claude Code and GitHub Copilot CLI.",
"author": {
"name": "Headroom Contributors",