When I'm not at my desk or in my bed, I'm reading Nietzsche and arguing with him (Daybreak is my favorite), standing too long in front of Baroque paintings, cooking something Mediterranean, playing tennis or golf, following Arsenal, listening to Mac Miller and Wu-Tang Clan, or drumming, occasionally.
This room is what I saw along the way: light in tunnels and on wet streets, desert skies, granite, and cities from bridges and rooftops.
The work is in Room II.
At the edgeSomewhere near Mount Cook, South Island, New Zealand · n.d.The closest thing in this room to the words on the wall.
Light, eventuallyn.d. · phone cameraA tunnel walked end to end. Chiaroscuro without the paint.
Study of a swingn.d. · driving rangeThe artist, in silhouette. The ball went somewhere.
Market Street, after rainSan Francisco · n.d.The city's best light shows up for about four minutes.
Kuchisabishii (口寂しい)Found text, framedWhen you're not hungry, but you eat because your mouth is lonely. The case for always cooking a little extra.
Nocturne with Joshua treesDesert · n.d. · long exposure
PracticeDrumstick, blistersI drum occasionally. The blisters suggest otherwise.
Untitled (somewhere loud)n.d. · motion blur
Granite, Yosemiten.d.Looking up for a long time.
Manhattan, from the Brooklyn BridgeNew York · n.d.
Self-portrait with hei mataun.d. · croppedA carved Māori hook from New Zealand, worn for new beginnings and harmony. The face is withheld.
Walking into MordorNew Zealand · n.d.The landscape behind the Mordor battle in The Return of the King. The fog was not added in post.
First snown.d.Someone shoveled the sidewalk. Someone always does.
Sky TowerAuckland · n.d.
Jungfrau, on the little screenSwitzerland · 2015The only piece in the room that dates itself: the camera stamped it 6 June 2015, 4:02 PM.
Enemy territoryOfficial PSG store, Qatar · n.d.An Arsenal fan, browsing. Nothing was purchased.
Dinner at cruising altitudeEconomy, somewhere above the clouds · n.d.See also: kuchisabishii.
Room II · The work
Speech models for the languages most AI gets wrong
Big multilingual speech models split their capacity across a hundred languages, and most of those languages lose out. In BuzzASR (EMNLP 2026) we trained a separate Whisper-large-v3 for each of 102 languages instead, and for many of them gave the model a tokenizer built for that language. I'm first author, with Aditya Yadavalli, Catherine Arnett and Alex Warstadt (LeMN Lab, UC San Diego, and EleutherAI).
77/102
languages where BuzzASR beats Whisper-large-v3
2.18×
median drop in character error rate (2.84× mean)
27
languages where it's the best open system we tested, including Omnilingual 7B
33K+
downloads of the 102 models on Hugging Face since release, about 21K in the past month
How it works
Replace the tokenizer. Whisper's byte-level BPE chops non-Latin scripts into tiny pieces. We train a BPE tokenizer on each language's own text, raising the median from 2.38 to 5.04 characters per token (13.77× for Lao).
Warm-start the new embeddings. Each new token starts as the average of the old Whisper sub-token vectors it replaces, so the model keeps what it already knows.
Teach the decoder the new vocabulary. Mix text-only language modeling (on the Goldfish corpora) with speech recognition, then finish with plain ASR fine-tuning.
Pick the best per language. Simple fine-tuning or the full recipe, three configurations each: 612 fine-tuned models in total.
Same sentence · same decoder
Rahvusraamatukogu digitaalarhiiv sisaldab tuhandeid vanu ajaleheartikleid.
Whisper
28
BuzzASR
10
Rahvusraamatukogu2026 · tokens on screen10 tokens instead of 28 for the same Estonian sentence. Time per token is fixed, so decoding finishes 2.4× sooner.
What we found
Median error reduction, grouped by how badly zero-shot Whisper does on each language. The worse Whisper is, the more a specialist helps.
Biggest gains where Whisper is weakest. A 3.45× median reduction across Whisper's 51 worst languages. Amharic goes from 191% CER to about 9%.
Native tokenizers decode faster. Per-token speed is identical (about 73 tokens/s), so shorter outputs mean lower latency: 785 → 503 ms per utterance (median, ~1.6×), and 3.51× for scripts like Ge'ez and Georgian.
One language per model beats pairs. Monolingual models have about 1.25× lower CER than bilingual ones, whether or not the two languages are related.
The full recipe wins where the tokenizer breaks. Simple fine-tuning wins 55 languages and the full recipe 47; the full recipe dominates when Whisper's tokenizer gets under one character per token.
A one-line bug taught us a lot. Our first tokenizers silently ignored their splitting rule because it was passed as a plain string. The write-up.
In the wild
Since the release, people we've never met have put the models to work, and tested them harder than we did.
On a phone, offline
Hungarian, in a pocket
A user in Hungary quantized BuzzASR/hungarian to GGUF (Q5_K_M, 1.1 GB) and uses it every day as offline voice input on a Samsung S24. A 28-second recording transcribes in about 20 seconds, faster than real time, with no internet. By their account, no other offline model they've tried handles Hungarian with such a low error rate.
Their testing also found what to fix next: the models output no punctuation, and words can merge where long audio is split.
Independent benchmark
Hungarian: most accurate of 8
2,000 Common Voice 22 test clips, one RTX 3090, greedy decoding
Model
WER %
Speed
BuzzASR/hungarian
9.96
34×
NVIDIA Parakeet-TDT 0.6B v3
10.45
44×
Hungarian Whisper-turbo fine-tune
10.85
80×
NVIDIA Canary-1B v2
14.54
150×
Whisper-large-v3 (zero-shot)
17.80
23×
Speed is audio duration ÷ processing time. Common Voice is in-domain for BuzzASR, which trained on Common Voice 25.
Independent evaluation
Korean: read, conversational, telephone
A speech engineer in Korea independently tested BuzzASR/korean against six other setups, scoring so that spacing and number notation don't count as errors.
Test audio
CER %
Rank
Read speech (3 public sets)
3.72
1st of 7
Telephone, 8 kHz
5.36
2nd of 7
Conversational (KsponSpeech)
9.71
4th of 7
On telephone audio, zero-shot Whisper is still ahead (5.02). We're now working together on what this means for evaluating Korean ASR.
Community ports
Running everywhere
Apple MLX, 8-bit, for Macs (Korean)
whisper.cpp / GGML, for CPUs and edge devices (Korean)
Core ML / WhisperKit, for iPhone (Sorani Kurdish)
GGUF, Q5_K_M, for Android (Hungarian)
Next for us: official quantized checkpoints with accuracy measured before and after quantization, punctuation, and faster turbo-based models.
On stage
Why fewer tokens means faster decodingCloudflare AI Meetup · 27 Oct 2026Slide 16 of the talk, live on the call.
YOU GOT THISKeleti station, Budapest · n.d.Arsenal, projected across a train station. Budapest, the city where BuzzASR had its EMNLP poster. Lifelong Gunner.
Oct 2026
Cloudflare AI Meetup
Invited talk on BuzzASR, hosted by Juan Miguel Cejuela: why specialist models beat one model for everything, how native tokenizers cut decoding time, and what that means for voice AI at the edge, from per-language routing to models people already run offline on their phones.
The Q&A asked whether the same efficiency could come from working on the representations between encoder and decoder. Still thinking about it.
Oct 2026
EMNLP 2026, Budapest
BuzzASR was presented at EMNLP 2026.
2026
SCiL @ ACL 2026
An early BuzzASR poster at SCiL, at ACL 2026.
Elsewhere
2026 –
RL post-training for speech recognition
GRPO on top of BuzzASR with verifiable rewards for accuracy, hallucination suppression, proper nouns and code-switching. Does a better tokenizer make RL work better?
2025 –
Walmart Global Tech · Platform Engineer
Production infrastructure for internal agentic AI, multi-agent and ML systems: model serving, inference routing, rollout and evaluation.
Proposed the architecture for an MCP server that gives our internal AI agent read-only access to a core platform registry. My design was adopted, and it's now used by 500+ application teams, serving thousands of engineers. How I designed it →
Cut cross-region inference latency 45% by geo-sharding model traffic with Istio and consistent-hash routing for session affinity.
Own model rollouts with Flagger: canary analysis, Prometheus/Grafana success-rate gating, autoscaling and automatic rollback on regressions.
Built pre-release evaluation for non-deterministic agent behavior, comparing responses across production, QA and staging to catch behavioral diffs before release.
Built a diff-aware webhook validator (JsonPath and GraphQL) for Agent-to-Agent (A2A) protocol message validation.
Before
Parabole.ai, Dell, and an M.S. at UC San Diego
CUDA kernels and KV caching (30% lower inference latency), and predictive maintenance on hardware telemetry.
Room III · Reading room
Writing
Essays and notes on speech, languages, research, and whatever Nietzsche is arguing with me about this month.
I quantized 102 fine-tuned Whisper models. The quantization was the easy part.
Five things that broke when BuzzASR left PyTorch, and one that probably affects your fine-tune too.
Shivam Singh · 8 min read · Nov 30, 2026
BuzzASR is 102 Whisper large-v3 models, one per language. 47 of them have their own tokenizer instead of Whisper's. After release, the most common request was some version of "can I run this on my phone?" So I converted all 102 to whisper.cpp (GGML) and faster-whisper (CTranslate2) and checked every one against the original.
I expected quantization to be the risky step. It wasn't. Everything around it broke instead: config files, token ids, and a training detail that also turned up in every community fine-tune I checked. That last one comes first, because it's the one that might apply to you.
1. No leading space, so long audio glues words together
A Hungarian user was running our model on their phone, through the Scrib and Transcribe apps, which are both built on transcribe.cpp. They sent me a one-minute recording. Every 30 seconds or so, two words got stuck together:
... ez a helyzetTengerünk ...
That should be helyzet tengerünk. Short clips were fine. It only happened on long audio, and always at the same kind of spot.
Whisper reads audio in 30-second windows. In OpenAI's training data every transcript starts with a space-prefixed token, so each window's text starts with a space, and you can just glue the windows together. The usual Hugging Face fine-tuning recipe builds labels like this:
No leading space. So the model learns to start every transcript without one, and in long audio every new window starts without one too:
window 1…·ez·a·helyzet
window 2Tengerünk…
joined·helyzetTengerünk
Simplified tokens (· marks a leading space). The second window starts without a space, so the join loses the word boundary.
There's a setting that hides this: conditioning on the previous text. With it on, the model sees the last window's words, so its first token is a mid-sentence continuation, and those do come with a space. But it's off by default in both transformers and transcribe.cpp. I reproduced the exact same merges in both, and turning conditioning on (--condition-on-prev-tokens in transcribe.cpp) fixed every one.
To check your own model, transcribe something longer than a minute with condition_on_prev_tokens=False and then True, and diff the two. If the first one has glued words and the second doesn't, you have this problem. The fix at training time is one character: tokenizer(" " + text). That's going into the next version of BuzzASR.
Was this just us? I ran the same test on three popular community fine-tunes for Hungarian, plus stock Whisper large-v3 as a control. Stock Whisper starts a 30-second window with a space-prefixed token. All three fine-tunes start without one, exactly like ours. Those models also add punctuation, so it shows up a bit more quietly, as a missing space after a period ("földet.Nincs"), but it's the same bug:
space at start?
conditioning off
conditioning on
chunked pipeline
stock large-v3
yes
clean
clean
clean
BuzzASR
no
1 glued
clean
clean
community fine-tune A
no
1 glued
1 glued
clean
community fine-tune B
no
2 glued
1 glued
clean
community fine-tune C
no
3 glued
2 glued
1 glued
It's one minute of audio in one language, so treat it as a smoke test, not a survey. But it does show the problem comes from the recipe, not from BuzzASR. Conditioning on previous text helps but doesn't catch every case, and the transformers chunked pipeline mostly avoids it. The real fix is the extra space in the labels.
2. One flag that silently drops the language
Our Japanese model returned empty transcripts. It just kept producing <|startoftranscript|> until it ran out of tokens.
The culprit was one line in generation_config.json: "_from_model_config": true. That flag tells transformers the file was generated automatically, so it rebuilds it and throws away the language and task tables. Decoding then starts with no language token, and the model has nothing to go on. If you ask for a language explicitly, you get the unhelpful error "The generation config is outdated". All 47 of our custom-tokenizer models had it. The fix is to delete the flag and keep the tables.
3. Moving the special tokens breaks every engine
Stock whisper.cpp gave garbage on our custom-tokenizer models, or refused to load them. CTranslate2 decided they were English-only.
The special tokens (start, end, the 100 language tokens, timestamps) still sit at the end of the vocabulary, in Whisper's layout. But a new tokenizer changes the vocabulary size: 53,474 for most of ours, and smaller than Whisper's 51,866 for a few (Māori, Mongolian, Sepedi). whisper.cpp hardcodes where those tokens are. CTranslate2 decides whether a model is multilingual by looking at the vocabulary.
The fix for whisper.cpp is a small patch that shifts the special ids by n_vocab − 51866. My first version assumed every custom vocabulary would be bigger than Whisper's. Three languages broke and showed me otherwise. For CTranslate2 it's a few edits to config.json after converting. And ship a tokenizer.json: the automatic conversion gets the special ids wrong.
4. The model remembers tokens it was never trained on
This is my favourite. Japanese output sometimes had broken characters:
ス�イン語 (should be スペイン語)
In our custom vocabularies, ids 0–1608 are placeholders that never show up in the training text. But the model started from Whisper's weights, and in Whisper those ids are real tokens. Id 1047, for example, is the first half of ペ. Fine-tuning never taught the model to stop using them, so now and then it falls back on an old habit. Our tokenizer reads that id as a placeholder, and the character disappears.
The fix is to block those ids during generation. Japanese error rates (CER, 20 test clips):
before
blocked
CTranslate2 int8
21.82
10.67
whisper.cpp q5_0
13.29
10.96
transformers
11.35
11.15
8 of our 47 custom-tokenizer languages did this at least once. Japanese was by far the worst. Luckily it barely touches the numbers in the paper.
5. And the quantization itself?
Close to free. Across all 102 languages, 20 test clips each:
size
mean CER
original (fp16)
3.1 GB
8.24
whisper.cpp q8_0
1.66 GB
7.96
whisper.cpp q5_0
1.08 GB
8.51
q8_0 coming out slightly ahead is just noise on 20 clips. When a language did get worse, it was almost always one clip stuck in a repetition loop, or whisper.cpp cutting a segment at 224 tokens with timestamps off. Neither is caused by quantization. Keep timestamps and temperature fallback on.
If you've fine-tuned Whisper, here's my checklist: labels start with a space; no _from_model_config; suppress tokens that match your vocabulary; ship a tokenizer.json; test on audio longer than a minute; and try at least one non-Python engine before announcing that it runs on phones.
Thanks to the Hungarian user whose recording found #1, and to everyone in that thread. The models are on Hugging Face, and the quantized versions are coming soon.
A question about tokens turned into five things I want to try next with BuzzASR.
Shivam Singh · 8 min read · Oct 29, 2026
On Tuesday I gave a talk about BuzzASR at Cloudflare's AI Meetup. BuzzASR is a set of 102 speech recognition models, one for each language, and the short version of the talk was that specialists beat one model that tries to do every language. Giving each model its own tokenizer also makes it faster.
The talk went fine. The Q&A was better. Someone asked a question I haven't stopped thinking about, and it pulled a few other loose threads along with it. This post is me writing them down.
Fewer tokens, or cheaper tokens?
The question was roughly this: you got your speedup by changing the tokenizer. Could you get the same thing by changing what the encoder hands to the decoder?
I find it easiest to start with one person waiting for one transcription. Then decoding time is two numbers multiplied together:
N is how many tokens the model writes, and the part in brackets is what each one costs. Some of that cost is fixed, and some of it grows with F, the number of audio frames the decoder looks at every time it writes a token.
Our tokenizers shrink N. For one Estonian sentence, Whisper needs 28 tokens and our model needs 10. The cost per token didn't change in our measurements (about 73 tokens a second for every model), so the whole speedup came from writing fewer tokens.
The question from the audience is about the other number, F. Whisper always pads audio to 30 seconds, so its encoder produces 1,500 frames even if you only said three words, and every token the decoder writes looks at all of them. Cut that to the 300 frames a 6-second clip actually needs, and every token should get cheaper.
When I worked through the numbers after the talk, that turned out to be mostly wrong, and the reason is the interesting part. In our setup each token takes about 13.7 ms. The GPU needs only about 1 ms to read everything a decoding step touches: roughly 1.8 GB of decoder weights, plus about 0.25 GB of cached audio for the 1,500 frames. The rest is overhead: the Python loop, hundreds of small GPU calls per step, and the checks that stop the model repeating itself. So the part that depends on frames, kF, is under 1% of each token's time. The fixed cost t₀ is almost everything, which is why writing fewer tokens works so well.
But that's only true for one request at a time. A service like Cloudflare's runs many requests together on each GPU, and then what matters is total computation, not waiting time. Here the picture flips. For a 6-second clip, the encoder and the audio lookups it prepares cost about 2.6 trillion operations, most of it spent on padding. The decoder's 28 tokens cost about 0.06 trillion. Going from 28 tokens to 10 saves under 2% of the work. Trimming the padding saves about 80%.
Left: for one request, decoding is almost all the time, so fewer tokens is what helps. Right: when many requests share the GPU, the encoder is almost all the work, so fewer frames is what helps.
So the answer to the question is: it depends who's paying. For someone waiting on their phone, fewer tokens. For whoever runs the GPUs, fewer frames. The two don't multiply into one big speedup; each one wins in a different setting.
I'd start with the boring version: throw away the frames that are just padding. Most of our test clips are well under 30 seconds, so for batched serving that alone should be a big win. One catch: Whisper was trained on 30-second windows, so feeding it less audio costs some accuracy unless you fine-tune it on shorter windows. After that I'd try averaging neighbouring frames, merging frames that look the same (silence, long vowels), and finally a small learned layer that squeezes the encoder output into a fixed number of vectors.
What worries me is who pays for it. Squeezing the audio will probably hurt fast speech and low-resource languages first, and those are exactly the languages BuzzASR exists for. So every result has to be broken down by language, not averaged.
The numbers above are estimates from the model's size, so the next step is to measure them: time the encoder and the decoder separately for a single request, then count clips per second with many requests at 1,500 versus 300 frames, checking the error rate alongside.
Does this work beyond Whisper?
Everything we built sits on top of Whisper, so it's fair to ask whether we just got lucky with Whisper's tokenizer.
We have a hint that we didn't. Swapping the tokenizer helped most in the languages where Whisper's tokenizer was doing the worst job, needing more than one token for every character. In those 18 languages the new tokenizer won 16 times. Where Whisper's tokenizer was already doing fine, it won about a third of the time.
How often the new tokenizer beat plain fine-tuning, grouped by how many characters Whisper fits into one token.
If that pattern holds, you should be able to predict the gain before training anything, just by counting how many characters each token covers before and after:
(Those are our median numbers across all 102 languages.) We actually measured about 1.6×, so the simple ratio overestimates. Part of the gap is that the median ratio across languages isn't the same as the median speedup per utterance. And as above, this only predicts waiting time for a single request, not cost in batched serving. I'd like to test this on a few other open speech models with different tokenizers: write the prediction down first, then run the recipe and see if it holds. If it does, people could tell whether this is worth doing without training anything.
What about CTC models?
A lot of speech models don't write text one token at a time. CTC models label every slice of audio at once, using an extra "nothing here" label, and then clean up the result.
The blank between the two l's is what lets it spell a double letter.
So fewer tokens doesn't make these models faster, and the speed story above doesn't apply. The tokenizer still matters, though, because a CTC model can only produce as many labels as it has audio frames:
labels written + repeated letters that need a blank between them ≤ audio frames
Bigger tokens make that limit easier to fit under, but each one is rarer, and with only about 10 hours of audio for some languages, rare is a problem. For CTC I'd ask a different question: not "is it faster?" but "what's the right size of token for this script?"
BPE or Unigram?
All our tokenizers are BPE, which always splits a word the same way. The other common option, Unigram, gives every possible split a probability:
The useful part is that you can sample from it, so during training the model sees the same word split in different ways:
alwaysajaleheartikleid
sampledajaleheartikleid
sampledajaleheartikleid
Made-up splits of the Estonian word ajaleheartikleid ("newspaper articles"), just to show the idea.
For languages where we only have a few hours of audio, that variety might work like free extra data. The version I like is a mix: train with random splits so the model gets the variety, then use the single best split when transcribing, so outputs stay short and fast. BPE has a similar trick called BPE-dropout, so we'd compare the two.
Can reinforcement learning fix the loops?
This is the one I'm most excited about. Every so often a speech model gets stuck repeating the same word over and over. Early in the project those loops pushed some of our error rates over 100%. Right now we stop them with decoding settings, but an independent evaluation of our Korean model showed those settings make everything else slightly worse, by 0.3 to 0.9 points.
I'd rather teach the model not to loop in the first place, using GRPO. The idea is simple: for each clip, let the model write eight transcripts, score them, and nudge it toward the ones that beat the group's average.
how much better transcript i scored than the group's average μ, scaled by the spread σ
Example scores for eight transcripts of one clip. The dashed line is the group average (0.74). Above it gets reinforced, below it gets discouraged.
The score is accuracy minus a penalty for loops and a penalty for hallucinated words, including any text at all on clips that are just silence:
I'd love to reward efficiency too, but if you reward short answers, the model just learns to stop early. So we'd measure it instead of rewarding it.
The comparison I'm most curious about is where to start from. We have two versions of every model: one fine-tuned the simple way, and one with the new tokenizer. The second writes shorter outputs, so each training sample is cheaper to generate. My guess is that it learns faster per hour of GPU time, especially for scripts that Whisper chops into tiny pieces.
Before all of that
There's something more practical to do first. A user in Hungary compressed our Hungarian model down to 1.1 GB, and now uses it every day as offline voice input on their phone. A 28-second voice note takes about 20 seconds to transcribe, with no internet. It took them six hours to figure out how to convert it.
Nobody should have to do that. So our next step is to release official compressed versions ourselves: GGUF for Android and whisper.cpp, Core ML for iPhones, and MLX for Macs. We'll publish how much accuracy each compression level costs, for every language, and fix the two problems that user found. The models don't output punctuation, because we trained them on transcripts without it, and words sometimes run together where a long recording gets split up.
None of this is answered yet, which is the fun part. If you're working on any of it, I'd love to hear from you. And thanks to Juan Miguel and the Cloudflare team for having me.
Putting an MCP server in front of a system you can't afford to break
How I designed a read-only bridge between our internal AI agent and a core platform registry, and why the boring option won.
Shivam Singh · 9 min read · Oct 30, 2026
Every large engineering org has a system everyone quietly depends on. Ours is a registry: for every application, it knows who owns it, what environments it runs in, what it talks to, which policies apply and where its endpoints live. People look things up in a web portal. Programs talk to it through an API, after they've registered as a consumer and written their own queries.
Then we built an internal AI agent, and engineers wanted to ask it "who owns this service?" or "what's configured in prod?" and get a real answer, not a guess. The standard way to give an agent that ability is MCP, the Model Context Protocol: you run a server that offers a few tools, and any MCP client can call them.
Writing the tools is an afternoon. The hard part is that the thing on the other end is a system the rest of the platform needs to stay up. This post is about the design I proposed for that bridge, the three options I compared, and why we went with the most boring one.
AI agents are not normal API clients
A normal API consumer is a program someone wrote on purpose. It calls you at a predictable rate, it was load-tested (hopefully), and when it breaks someone gets paged. An AI agent behaves differently in three ways that matter:
It's bursty. An agent working through a task can call the same tool ten times in a few seconds, often with the same argument, because it forgot it already asked.
It retries. If a call fails, the client retries, the agent retries, and sometimes the human hits enter again. Each layer means well. Together they multiply.
It fans out. One prompt like "check all our services" can turn into dozens of calls at once. Multiply by every engineer talking to the agent at once, and the traffic shape looks nothing like what the registry was built for.
So the real requirement wasn't "expose the data." It was: no matter what the agent does, the load reaching the registry has a hard ceiling.
The shape of it
The server offers four tools, all read-only, each returning one focused slice of the registry: for example, an application's details, or its details for a single environment. Nothing writes, which removes a whole class of problems (and makes retries safe, as we'll see).
Every guardrail sits in front of the registry, not inside it. A request only reaches the registry if it gets through all four layers and misses the cache.
The server speaks MCP over Streamable HTTP in stateless mode. That means it keeps no session between calls, so any copy of the server can answer any request. Scaling out is just running more copies behind a load balancer, and a crashed copy loses nothing.
Three ways to build it
There were three realistic places to put this server, and I wrote up all three before recommending one.
1. A standalone service. A new, separate deployment that calls the registry's existing API like any other consumer. It has its own pods, its own limits and its own release schedule.
2. An endpoint inside the registry. Add an MCP endpoint to the registry service itself, reusing code that already exists there. Fewest moving parts, and the freshest possible data.
3. Extend an existing AI agent. There was already a separate LLM agent that answers questions about the registry. Add the MCP tools to it.
The question for each option: when AI traffic misbehaves, what else goes down with it?
Option 2 was tempting. It's the least code and the data is never stale. But it puts AI traffic in the same process, the same database connection pool and the same release cycle as the system it's supposed to protect. A runaway agent loop would compete directly with every other consumer. And every change to a rate limit would mean a release of the core registry, which is exactly the kind of release you want to be rare.
Option 3 reused something that already existed, but that agent was built for a different job: it uses its own LLM to answer questions. An MCP server should just return data and let the caller's own model do the thinking. Putting simple, deterministic lookups inside an LLM service also means they inherit that service's dependencies and its path to production, which had nothing to do with serving two read-only tools.
Option 1 costs the most up front: a new service, its own onboarding as a registry consumer, its own deployment. In exchange, it gets the one property the other two can't offer. From the registry's point of view, all AI traffic becomes one well-behaved consumer with a fixed budget. That's the option I recommended, and the one we went with. Today it's used by 500+ application teams, serving thousands of engineers.
Putting a ceiling on the load
Here's the part I like most, because it turns "we'll be careful" into a number. Say the agent sends λ requests per second, and the cache answers a fraction h of them. The load that reaches the registry is:
misses that get through, but never more than the budget R
The cache handles the common case. Engineers ask the agent about the same few services over and over, so h is high: 160 requests a second with a 90% hit rate turns into 16. The budget R handles the bad case. If something weird happens (a burst of questions with no repeats, or a cold cache after a deploy), the registry still never sees more than R. Requests beyond that wait briefly or get a clear "slow down" error, and that error goes to the agent, not the registry.
Illustrative numbers. The point is the shape: most of the traffic is absorbed before it gets anywhere near the registry.
The rate limits themselves are token buckets: each client gets a bucket that refills at a steady rate r up to a size B, and every call takes one token.
The bucket size lets an agent burst a little (which is fine, it's how they work), and the refill rate stops one agent from hogging the shared budget. There's a per-client bucket and a global one, so one noisy team can't starve everyone else, and everyone together can't exceed R.
The budget has to live in code, not in a doc. A number in a design doc is a promise. A number in the server's config, enforced on every call, is a guarantee.
Retries can multiply load, so cap them
Retries look harmless until you do the math. If a call fails with probability p and you allow up to k retries, the expected number of attempts per request is:
When things are healthy, p is tiny and this is about 1. But when the registry is struggling, p heads toward 1 and every request turns into k + 1 requests. With two retries, that triples your traffic at the exact moment the system can least afford it. That's how a slow dependency turns into a dead one.
Three rules keep this in check. Retries happen only on reads (all our tools are reads, so this is easy, and a read is always safe to repeat). They back off with jitter, so clients don't all retry at the same instant. And a circuit breaker sits in front of everything.
When the registry is having a bad time, the breaker opens and stops sending it traffic, so it has room to recover.
Each call also has a timeout, so a slow registry can't tie up the server's workers, and each response has a size cap. That last one sounds minor, but the full record for a big application (every environment, every policy, every consumer) is huge. Dumping all of it into an agent's context window is slow and expensive, and it makes the model's answer worse. So the tools return focused, bounded slices: the app-level summary, or one environment at a time.
Who's calling?
The registry's normal consumer model assumes a service with its own credentials. That doesn't fit an agent acting on behalf of many engineers. But every call still has to be attributable to someone, both for the per-client rate limits and for audit.
I laid out three options: OAuth through the company's identity provider (MCP's standard auth flow, where the server advertises its authorization server and validates each caller's token), a simpler per-team client ID for a first internal-only phase, or an allow-list of client identities per environment. OAuth is the cleanest long-term answer, since each call maps to a real person and access could later be scoped per user. A client ID gets you attribution on day one. Which one to ship first was a call for security, not just me, so the design keeps auth as one swappable layer at the front.
What it costs
The honest trade-off is freshness. With a 60-second cache, an answer can be up to a minute behind the portal. For "who owns this service?" that's fine, since ownership doesn't change every minute. For "did my config change go out?" you'd want the portal. The TTL is a setting, not a constant, and the tool descriptions say plainly that results can lag slightly.
The other cost is one more service to run. I think that's the right price. A separate service is a separate thing that can break, but when it breaks, it breaks alone.
One nice loop
The registry also keeps a catalog of MCP servers: services declare their MCP endpoint, transport and auth, and the registry stores it so they're discoverable. So the new server registers itself in the very registry it reads from. It's both a consumer of the catalog and an entry in it.
That points at the obvious next tool: find MCP servers and agents, filtered by category or owner. Then the agent could ask the registry not just about services, but about other tools it could use.
The lesson I keep coming back to is that "AI-ready" mostly means "ready for clients that are relentless, repetitive and a little forgetful." The tools were never the hard part. Deciding where to draw the box, and putting a hard number on what crosses it, was.