{"by":"edunteman","descendants":22,"id":45737948,"kids":[45741613,45741173,45741866,45741601,45741592,45741476,45741283,45768225,45741198,45742996,45758746,45741090],"score":50,"text":"Hi HN! I&#x27;m Erik. We built Butter, an LLM proxy that makes agent systems deterministic by caching and replaying responses, so automations behave consistently across runs.<p>- It’s a chat completions compatible endpoint, making it easy to drop into existing agents with a custom base_url<p>- The cache is template-aware, meaning lookups can treat dynamic content (names, addresses, etc.) as variables<p>You can see it in action in this demo where it memorizes tic-tac-toe games: <a href=\"https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=PWbyeZwPjuY\" rel=\"nofollow\">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=PWbyeZwPjuY</a><p>Why we built this: before Butter, we were Pig.dev (YC W25), where we built computer-use agents to automate legacy Windows applications. The goal was to replace RPA. But in practice, these agents were slow, expensive, and unpredictable - a major downgrade from deterministic RPA, and unacceptable in the worlds of healthcare, lending, and government. We realized users don&#x27;t want to replace RPA with AI, they just want AI to handle the edge cases.<p>We set out to build a system for &quot;muscle memory&quot; for AI automations (general purpose, not just computer-use), where agent trajectories get baked into reusable code. You may recall our first iteration of this in May, a library called Muscle Mem: <a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43988381\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43988381</a><p>Today we&#x27;re relaunching it as a chat completions proxy. It emulates scripted automations by storing observed message histories in a tree structure, where each fork in the tree represents some conditional branch in the workflow&#x27;s &quot;code&quot;. We replay behaviors by walking the agent down the tree, falling back to AI to add new branches if the next step is not yet known.<p>The proxy is live and free to use while we work through making the template-aware engine more flexible and accurate. Please try it out and share how it went, where it breaks, and if it’s helpful.","time":1761680391,"title":"Show HN: Butter – A Behavior Cache for LLMs","type":"story","url":"https://www.butter.dev/"}