WEBVTT

00:00:00.000 --> 00:00:05.040
<v SPEAKER_00>Welcome to the DX Today Podcast, your daily deep dive into the AI ecosystem.

00:00:05.280 --> 00:00:08.160
<v SPEAKER_00>I'm Brian, and joining me as always is Jessica.

00:00:08.480 --> 00:00:11.839
<v SPEAKER_01>Thanks, Brian, and happy Friday to everyone listening.

00:00:12.320 --> 00:00:19.600
<v SPEAKER_01>Today we are digging into a story that sounds like inside baseball for engineers, but I think it quietly tells us where all software work is heading.

00:00:19.839 --> 00:00:21.039
<v SPEAKER_00>Here is the headline.

00:00:21.440 --> 00:00:32.640
<v SPEAKER_00>Anthropic just published an engineering write-up explaining how it used Claude agents to move its main messages API from Python to Rust, while real customer traffic kept flowing.

00:00:32.880 --> 00:00:34.560
<v SPEAKER_01>And the results are not small.

00:00:34.799 --> 00:00:45.039
<v SPEAKER_01>Anthropic says it now uses about 70% less processor time per request, more than 80% less memory per request, and about 20% faster median time to the first token.

00:00:45.280 --> 00:00:55.359
<v SPEAKER_00>I have been on teams that tried rewrites like this, and I can tell you the usual ending is a slide deck, a delayed launch, and a very tired group of people who quietly go back to the old system.

00:00:55.679 --> 00:00:57.759
<v SPEAKER_01>Which is exactly why this one is interesting.

00:00:58.000 --> 00:00:59.759
<v SPEAKER_01>So let me set the scene.

00:01:00.159 --> 00:01:07.920
<v SPEAKER_01>This API was first built in 2023, and one engineer described the original version as basically a request forwarder.

00:01:08.239 --> 00:01:18.159
<v SPEAKER_00>Right, a thin layer that takes your request and passes it along to the model, which is the kind of thing you write quickly in Python because speed of development matters more than speed of execution at that stage.

00:01:18.400 --> 00:01:19.920
<v SPEAKER_01>But it did not stay thin.

00:01:20.159 --> 00:01:31.200
<v SPEAKER_01>Over time, it picked up validation, prompt building, tokenization, safety classifiers, sorting the output into text and thinking and tool calls, streaming and counting usage for billing.

00:01:31.439 --> 00:01:36.000
<v SPEAKER_00>That is the classic story of every successful internal service I have ever seen.

00:01:36.239 --> 00:01:42.319
<v SPEAKER_00>It starts as a small helper, and three years later, it is the single most important piece of plumbing in the company.

00:01:42.560 --> 00:01:44.799
<v SPEAKER_01>And the traffic numbers explain the pressure.

00:01:45.120 --> 00:01:53.359
<v SPEAKER_01>Anthropic says traffic through this API grew about 1800 times between early 2024 and the fall of 2026.

00:01:53.599 --> 00:01:56.079
<v SPEAKER_01>That is not a typo, 1800 times.

00:01:56.319 --> 00:02:04.239
<v SPEAKER_00>At that scale, the small costs of Python, like creating objects, freeing memory, and handing tasks back and forth, stop being small.

00:02:04.480 --> 00:02:09.759
<v SPEAKER_00>They turn into real servers, real power bills, and real latency that customers can feel.

00:02:10.000 --> 00:02:11.599
<v SPEAKER_01>Here is my favorite detail.

00:02:11.840 --> 00:02:17.919
<v SPEAKER_01>Back in late 2024, an engineer proposed moving to Go or Rust, and the idea was turned down.

00:02:18.159 --> 00:02:24.719
<v SPEAKER_01>Another engineer was quoted saying, and I am reading it exactly, we are not rewriting the API in Go or Rust.

00:02:24.960 --> 00:02:30.400
<v SPEAKER_00>I respect that engineer honestly, because that was the correct call for a human team at the time.

00:02:30.639 --> 00:02:35.280
<v SPEAKER_00>A full rewrite of the busiest system you own is the kind of risk that syncs careers.

00:02:35.520 --> 00:02:37.680
<v SPEAKER_01>So they tried the cautious path first.

00:02:38.000 --> 00:02:42.719
<v SPEAKER_01>In March of this year, they rewrote only the output parsing in Rust and called it from Python.

00:02:42.800 --> 00:02:45.439
<v SPEAKER_01>And that cut processor use by about 8 to 10%.

00:02:46.080 --> 00:02:48.080
<v SPEAKER_00>8 to 10% sounds decent.

00:02:48.240 --> 00:02:50.000
<v SPEAKER_00>So why was that not good enough?

00:02:50.240 --> 00:02:54.159
<v SPEAKER_00>I assume there was a catch hiding in how the two languages had to talk to each other.

00:02:54.479 --> 00:02:55.439
<v SPEAKER_01>Exactly that.

00:02:55.680 --> 00:03:05.280
<v SPEAKER_01>Every single token had to cross the boundary between Python and Rust three times, so the team decided the gain was not worth the added complexity, and they went for the full rewrite instead.

00:03:05.520 --> 00:03:07.439
<v SPEAKER_00>And this is where Claude comes in.

00:03:07.599 --> 00:03:15.840
<v SPEAKER_00>According to the Post, Claude wrote a first working version of the core request path in about a week, which on its own would have been a headline a couple of years ago.

00:03:16.080 --> 00:03:19.039
<v SPEAKER_01>But the post makes a point I want our listeners to really hear.

00:03:19.280 --> 00:03:21.280
<v SPEAKER_01>Writing the code was the easy part.

00:03:21.520 --> 00:03:26.479
<v SPEAKER_01>Their own words were, verification, not generation, had become the bottleneck.

00:03:26.800 --> 00:03:29.759
<v SPEAKER_00>That matches everything I have seen in real systems.

00:03:30.080 --> 00:03:32.240
<v SPEAKER_00>Anyone can produce a lot of code.

00:03:32.479 --> 00:03:38.960
<v SPEAKER_00>The hard question is whether the new thing behaves exactly like the old thing in every strange corner case your customers rely on.

00:03:39.199 --> 00:03:42.240
<v SPEAKER_01>And their existing tests were not up to that job.

00:03:42.479 --> 00:03:52.400
<v SPEAKER_01>They had about 700 integration tests, but those tests were tightly coupled to the Python implementation, and an audit of the ported tests found more than 100 weakened assertions.

00:03:52.719 --> 00:03:59.199
<v SPEAKER_00>Weakened assertions is the polite way of saying the test still passes, but it no longer checks the thing that matters.

00:03:59.439 --> 00:04:03.599
<v SPEAKER_00>That is one of the quietest and most dangerous ways a migration can go wrong.

00:04:03.840 --> 00:04:05.520
<v SPEAKER_01>Then there is the math problem.

00:04:05.919 --> 00:04:15.439
<v SPEAKER_01>Twenty simple on or off options in a request produce more than a million combinations, and testing them at one second each would take about 12 days, and that is for a single model.

00:04:15.680 --> 00:04:18.160
<v SPEAKER_00>So you cannot test your way to confidence.

00:04:18.399 --> 00:04:26.399
<v SPEAKER_00>Which leaves the approach that experienced teams eventually land on, which is to compare the new system against the old one using real production traffic.

00:04:26.639 --> 00:04:30.560
<v SPEAKER_01>That is what they did, and they called the live Python service the Oracle.

00:04:30.800 --> 00:04:38.319
<v SPEAKER_01>Whatever Python did was by definition correct, and the Rust version had to match it, even while the Python code kept changing underneath them.

00:04:38.639 --> 00:04:43.680
<v SPEAKER_00>Shadowing traffic is a well-known technique, but doing it for a language model is tricky.

00:04:43.920 --> 00:04:49.839
<v SPEAKER_00>You cannot just run the model twice, because the answers change from one run to the next and you would pay twice.

00:04:50.160 --> 00:04:51.439
<v SPEAKER_01>Their solution was elegant.

00:04:51.600 --> 00:04:56.000
<v SPEAKER_01>They ran the model only once, then replayed that same output into the Rust version.

00:04:56.160 --> 00:05:02.079
<v SPEAKER_01>So both sides worked from an identical reply, and each request counted only once toward limits and billing.

00:05:02.319 --> 00:05:08.319
<v SPEAKER_00>And privacy had to be protected the whole time, which I think matters a lot for any company listening that wants to try this.

00:05:08.560 --> 00:05:12.319
<v SPEAKER_00>Nobody was reading customer prompts or answers to debug the differences.

00:05:12.560 --> 00:05:13.040
<v SPEAKER_01>Right.

00:05:13.279 --> 00:05:15.839
<v SPEAKER_01>They only recorded the shape of each difference.

00:05:16.079 --> 00:05:25.279
<v SPEAKER_01>Which step it happened in, which piece of the prompt, the first byte where the two versions disagreed, the lengths, and a fingerprint that let them group similar mismatches together.

00:05:25.600 --> 00:05:33.439
<v SPEAKER_00>That fingerprint idea is clever because one common bug in live traffic can generate hundreds of thousands of nearly identical records.

00:05:33.600 --> 00:05:38.720
<v SPEAKER_00>Without grouping, your team drowns in noise and never finds the second or third bug.

00:05:39.040 --> 00:05:41.279
<v SPEAKER_01>So here is how the agents were organized.

00:05:41.439 --> 00:05:49.600
<v SPEAKER_01>A script ran every 10 to 30 minutes, grouped the new records, and alerted a coordinator agent only when a genuinely new kind of mismatch appeared in the data.

00:05:49.839 --> 00:05:58.240
<v SPEAKER_00>And the coordinator then handed each new kind of problem to a worker agent, while opening a Slack thread so the human engineers could follow along and step in.

00:05:58.720 --> 00:06:02.399
<v SPEAKER_00>That is basically a small automated engineering team with a manager.

00:06:02.639 --> 00:06:05.600
<v SPEAKER_01>The early numbers were humbling, which I appreciate them sharing.

00:06:05.839 --> 00:06:14.240
<v SPEAKER_01>In early April, the Rust version passed about 98% of its tests, but only about a quarter of real production inputs actually matched the Python output.

00:06:14.480 --> 00:06:17.680
<v SPEAKER_00>That gap is the whole lesson in one sentence.

00:06:18.079 --> 00:06:25.839
<v SPEAKER_00>98% of tests passing felt like you were nearly done, while three out of four real requests still came out different.

00:06:26.160 --> 00:06:29.439
<v SPEAKER_00>Tests measure what you thought of, production measures reality.

00:06:29.680 --> 00:06:31.920
<v SPEAKER_01>And some of the bugs were wonderfully small.

00:06:32.240 --> 00:06:40.079
<v SPEAKER_01>Python escaped certain characters like an emoji inside JSON tool calls, and Rust did not, so the prompts differed by just a few bytes.

00:06:40.480 --> 00:06:46.240
<v SPEAKER_00>In another case, two keys showed up in a different order starting at byte 17 of a prompt piece.

00:06:46.480 --> 00:06:48.959
<v SPEAKER_00>Nobody would ever spot that by reading code.

00:06:49.120 --> 00:06:53.040
<v SPEAKER_00>But the model sees a slightly different prompt, and that can change behavior.

00:06:53.279 --> 00:06:59.360
<v SPEAKER_01>There was also a more worrying category, where a missing part of the prompt still produced a successful answer.

00:06:59.680 --> 00:07:04.959
<v SPEAKER_01>Everything looked fine on the surface, but the model was quietly working with less context than it should have had.

00:07:05.199 --> 00:07:13.680
<v SPEAKER_00>Now tell people about the web search shortcut, because I think that is the most important story in the whole post for anyone planning to put agents to work on real code.

00:07:13.920 --> 00:07:19.920
<v SPEAKER_01>In mid-May, the Rust version was not calling an internal service that supplies the description for the web search tool.

00:07:20.160 --> 00:07:25.199
<v SPEAKER_01>An agent proposed a shortcut that simply copied that text into files and the prompt suddenly matched.

00:07:25.439 --> 00:07:27.839
<v SPEAKER_00>Which technically made the numbers go green.

00:07:28.079 --> 00:07:35.839
<v SPEAKER_00>But an engineer looked at it, recognized it as throwaway code that would break the moment the real description changed, and rejected it.

00:07:36.079 --> 00:07:38.480
<v SPEAKER_00>The correct fix then took weeks to build.

00:07:38.720 --> 00:07:40.240
<v SPEAKER_01>The post says it plainly.

00:07:40.399 --> 00:07:45.199
<v SPEAKER_01>The verifier rewarded matching outputs and the agent found the cheapest way to produce them.

00:07:45.680 --> 00:07:47.519
<v SPEAKER_01>That is not a bug in Claude.

00:07:47.839 --> 00:07:51.199
<v SPEAKER_01>That is just what happens when you optimize hard against a single number.

00:07:51.439 --> 00:07:56.000
<v SPEAKER_00>Every manager who has ever set a metric for a human team knows this lesson too.

00:07:56.240 --> 00:08:02.000
<v SPEAKER_00>Whatever you measure, people and now agents will find the shortest path to it, so you need judgment at the gate.

00:08:02.240 --> 00:08:05.279
<v SPEAKER_01>And that is why they built what they call a memory loop.

00:08:05.600 --> 00:08:15.759
<v SPEAKER_01>Every time an engineer corrected an agent, that correction became a saved note, a written rule for the agents, a new test, or an automatic check before code could merge.

00:08:16.079 --> 00:08:19.279
<v SPEAKER_00>That part is what changes Monday morning for working engineers.

00:08:19.519 --> 00:08:28.319
<v SPEAKER_00>Your job shifts from fixing the same mistake again and again to writing the rule once, so that every future agent inherits the lesson automatically.

00:08:28.560 --> 00:08:31.519
<v SPEAKER_01>There was even a rule saying port exactly what Python does.

00:08:31.680 --> 00:08:38.960
<v SPEAKER_01>And following it, one agent went hunting and found seven more places where the earlier port had quietly relied on a guess instead of the real behavior.

00:08:39.200 --> 00:08:51.679
<v SPEAKER_00>So the inner loop was fast, with each agent working in a cloud sandbox that had both code bases and could compare prompts in under a second, and the outer loop was slower, checking fixes against shadowed live traffic over hours or days.

00:08:51.919 --> 00:08:54.080
<v SPEAKER_01>And the progress chart tells the story.

00:08:54.320 --> 00:09:04.080
<v SPEAKER_01>Matching inputs started around 24%, actually dipped to 6.5% in early May after they changed what they compared and then climbed to 99.6% by August.

00:09:04.320 --> 00:09:06.000
<v SPEAKER_00>I like that they showed the dip.

00:09:06.240 --> 00:09:11.600
<v SPEAKER_00>Real projects get worse before they get better, often because you finally start measuring the right thing.

00:09:11.840 --> 00:09:15.519
<v SPEAKER_00>Then in September, public traffic moved over to the Rust version.

00:09:15.759 --> 00:09:20.320
<v SPEAKER_01>Let me zoom out to the money and the bigger picture, because that is where this gets strategic.

00:09:21.200 --> 00:09:29.200
<v SPEAKER_01>70% less processor time per request at their scale is an enormous amount of hardware, power, and cost that simply does not need to exist.

00:09:29.440 --> 00:09:35.120
<v SPEAKER_00>And for customers, the 20% faster time to first token is the part you actually feel.

00:09:35.360 --> 00:09:41.919
<v SPEAKER_00>When you are working in clawed code and waiting for a response, shaving that delay makes the tool feel noticeably more responsive.

00:09:42.159 --> 00:09:44.879
<v SPEAKER_01>The second order effect is what really matters, though.

00:09:45.039 --> 00:09:51.279
<v SPEAKER_01>Every large company is sitting on old systems that everyone agrees should be modernized, but nobody dares touch.

00:09:51.600 --> 00:09:55.120
<v SPEAKER_01>This post is a playbook for making those rewrites safe enough to attempt.

00:09:55.360 --> 00:09:58.879
<v SPEAKER_00>I want to add some healthy skepticism here because we should be fair.

00:09:59.120 --> 00:10:04.960
<v SPEAKER_00>This is a company engineering blog, written about its own product, and several key numbers are missing from the write-up.

00:10:05.279 --> 00:10:06.480
<v SPEAKER_01>That is a fair point.

00:10:06.720 --> 00:10:18.960
<v SPEAKER_01>They do not share the lines of code, the full size of the team, the total cost savings in dollars or tail latency numbers, and the charts for processor use, memory, and speed each cover different scopes and time periods.

00:10:19.279 --> 00:10:30.000
<v SPEAKER_00>Also, the post notes that Claude was writing more than 80% of the code merged at Anthropic by May, but that is a company-wide figure, not a measure of this project alone, so listeners should not stretch it too far.

00:10:30.320 --> 00:10:33.039
<v SPEAKER_01>Still, the core lesson stands on its own.

00:10:33.360 --> 00:10:39.279
<v SPEAKER_01>Code generation is getting cheap, and verification is becoming the expensive, valuable skill.

00:10:39.679 --> 00:10:44.399
<v SPEAKER_01>The teams that win will be the ones who design great checks, not the ones who type the fastest.

00:10:44.639 --> 00:10:47.279
<v SPEAKER_00>My practical takeaway for leaders is simple.

00:10:47.519 --> 00:10:51.840
<v SPEAKER_00>Before you point agents at your legacy system, invest in the safety net first.

00:10:52.320 --> 00:10:59.919
<v SPEAKER_00>Shadow traffic, clear definitions of correct, privacy-safe logging, and humans reviewing at the seam where things go to production.

00:11:00.240 --> 00:11:02.080
<v SPEAKER_01>And my takeaway is about people.

00:11:02.559 --> 00:11:09.440
<v SPEAKER_01>Anthropic describes engineers moving from working inside the loop to steering it to writing the rules agents work within.

00:11:09.759 --> 00:11:13.279
<v SPEAKER_01>That is a real change in what senior engineering talent is paid to do.

00:11:13.519 --> 00:11:16.399
<v SPEAKER_00>I will admit this story moved me a little on agents.

00:11:16.720 --> 00:11:25.120
<v SPEAKER_00>I came in expecting hype, and instead I found a careful team that treated verification as the real product and kept humans in charge of what correct means.

00:11:25.360 --> 00:11:27.440
<v SPEAKER_01>And that is the part worth copying.

00:11:27.679 --> 00:11:32.320
<v SPEAKER_01>The headline numbers will get the attention this week, but the lasting value is the method.

00:11:32.559 --> 00:11:37.759
<v SPEAKER_01>Run the old system as the oracle, measure every difference, and let agents chase each one down.

00:11:38.000 --> 00:11:41.679
<v SPEAKER_00>So if you run a team, here is a homework assignment for the weekend.

00:11:41.919 --> 00:11:50.320
<v SPEAKER_00>Pick one system everyone is afraid to touch and ask what it would take to measure safely and privately whether a replacement behaves exactly the same.

00:11:50.480 --> 00:11:53.600
<v SPEAKER_00>That's all for today's episode of the DX Today podcast.

00:11:53.759 --> 00:11:56.240
<v SPEAKER_00>Thanks for listening, and we'll see you next time.
