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): force-link glibc shim with -Wl,-u so aarch64 wheel includes it
chopratejas820e66cae657
diff --git a/crates/headroom-py/build.rs b/crates/headroom-py/build.rsindex cfa5d8d70..801466b8b 100644--- a/crates/headroom-py/build.rs+++ b/crates/headroom-py/build.rs@@ -34,4 +34,30 @@ fn main() {.flag_if_supported("-fPIC").opt_level(2).compile("headroom_glibc_compat");++ // Force the linker to pull our shim's objects into _core.so even+ // if at archive-scan time no UND `__isoc23_*` reference exists+ // yet. Without this, the ORT prebuilt static archives — which+ // are downloaded by ort-sys and link AFTER our shim's archive+ // on aarch64 (observed in PR #386's release run) — leave the+ // `__isoc23_*` references unresolved at the .so level even+ // though our archive defines them. The audit then rightly+ // rejects the wheel.+ //+ // `-u <sym>` (a.k.a. `--undefined`) tells the linker: "treat+ // this symbol as undefined at the start of linking, which forces+ // any archive defining it to be scanned and its members pulled+ // in." Once our archive's objects are in, the shim's strong+ // definitions are present in `_core.so` and ORT's later+ // references resolve to them. On x86_64 the ORT archive+ // happened to scan first; on aarch64 it did not, so this gate+ // is the load-bearing fix that makes the shim work uniformly.+ for sym in [+ "__isoc23_strtol",+ "__isoc23_strtoll",+ "__isoc23_strtoul",+ "__isoc23_strtoull",+ ] {+ println!("cargo:rustc-link-arg=-Wl,-u,{sym}");+ }}