Gisting: Compressing LLM Agent context to ↑ throughput and ↓ cost (2026) - Shopify
Aug 19, 2026

Summary
Introduced 'gisting', a prompt compression technique that reduces system prompt token count by learning special tokens via knowledge distillation. This technique achieved a 4:1 reduction in system prompt tokens for the Sidekick GraphQL agent, leading to a 19% decrease in median time to first token (TTFT), a 38% decrease in median end-to-end request latency, and a 16% increase in throughput. The method involves training gist embeddings by minimizing KL divergence between teacher and student logits, and can be integrated into continual learning loops.
More from the AI Assistant (Sidekick) Capabilities and Training trail
- Sidekick's continual learning loop (2026) - Shopify
- Building an agentic harness that outlasts the model (2026) - Shopify
- Teaching Sidekick to say no: automated data curation with LLM judge consensus (2026) - Shopify
- Building a Magic Mirror: AI retail experiences with Remix (2026) - Shopify
- Building production-ready agentic systems: Lessons from Shopify Sidekick (2025) - Shopify