Thoughtworks team built Heimdall to cut LLM costs and block data leaks

Published .

What happened

Thoughtworks engineers describe Heimdall, a proxy gateway they built at an internal hackathon. It sits between developer tools and LLM providers, scrubbing personal data and credentials, caching answers, and routing simpler prompts to cheaper models. In a four-week internal pilot with six staff, the authors report that 36.4% of requests reached the paid API, a 63.6% reduction, and that 4,170 leaks were prevented.

Why it matters

It shows how companies can add technical controls to manage the cost of token-based AI pricing and to keep sensitive data out of third-party models.

Terms

Large language model (LLM)
An AI model trained on huge amounts of text to predict the next word. Chatbots such as Claude, ChatGPT and Gemini are built on LLMs.
Token
The small piece of text a model reads and writes: roughly three quarters of an English word. Usage and prices are counted in tokens.
API
The way software talks to a model service: developers send requests and pay per use, usually per token.

Sources

Summary written by AI and checked against the sources above.

Matches · Clubs · Table · League news · Models · AI news