AIToday
Large Language ModelsAI Business & IndustryZenn AI/MLPublished: Oct 11, 2026, 22:00 JST

Clef-driven ANGEL HALOS AI werewolf game cuts AI costs 84%

Clef-driven ANGEL HALOS AI werewolf game cuts AI costs 84%

An indie developer released ANGEL HALOS, a browser werewolf game where seven AI angels use Cloudflare's Clef judgment model and Google's Gemma; a meeting with six AI players costs about 210 neurons, or roughly 0.0023 dollars.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The developer started from a scripted-clash idea: rather than asking one LLM to both talk and vote, the AI is split like a theater troupe into a director and an actor. Clef is the director — it only picks among options and returns probabilities, with three question types (yes/no, multiple choice, and a scored grade from 'innocent' to 'almost certainly dark') and a consistency that returns the same value for the same input across five calls. Gemma is the actor, delivering lines in character. The split came after an early attempt let an angel say 'I think Aria is innocent' and then vote for Aria anyway.

To keep the AI from seeing everything, each angel only remembers what entered its view, checked every 0.5 seconds and logged as individual lines such as having watched a specific player in a specific spot about 30 seconds earlier. A fallen angel's own attack is tagged secret, and the actor is told never to mention it. Word choice is also constrained: 'kill', 'corpse' and 'blood' are banned in favor of angel-world language like 'attacked' or 'returned to the light'.

The cost work followed a familiar indie worry about pay-as-you-go bills. Initially Clef was called three times per meeting and every surviving angel spoke in the second round, which would have burned the free tier quickly. The fixes — moving to clef-flash, dropping to two Clef calls, and having only the accused and accusers speak in round two — brought about an 84% reduction. A fallback browser AI keeps a meeting from freezing if the API fails. On localization, the developer chose not to translate the Clef questions, keeping them in English for all 17 languages and passing only names, memory summaries, and logs in the local language, so a question fix needs only one edit.

FAQ
What is Clef, and why did the developer use it for a werewolf game?
Clef is a judgment-only model that runs on Cloudflare Workers AI and returns probabilities instead of writing text. The developer found it suited werewolf decisions like whom to suspect, vote for, or accuse, because those are mostly multiple-choice questions.
How much does one AI werewolf meeting cost?
One meeting with six AI players costs about 210 neurons, or roughly 0.0023 dollars. Workers AI's free tier is 10,000 neurons per day, which covers about 15 games.
Why did the developer stop letting Clef decide whether the fallen angels should attack?
Even at a perfect moment with no witnesses, Clef returned an attack probability of only about 0.1 to 0.2, so no one was ever attacked. The developer removed Clef from that decision and set a rule that a fallen angel with no witnesses simply attacks.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleGoogle's Playground builds games in minutes, Wired finds slop