
What to Build Your Project On When an Agent Writes the Code
Listen on:Apple PodcastsSpotifyYouTubeDeezerPodcast AddictPocket CastsRSS
You are building a project with an agent. If you do not tell it what to write in, it will choose for itself, out of its own habits. And a year later it may turn out that nobody repairs the framework anymore, and redoing everything feels too scary. I explain why an agent writes better in popular languages, and what to use today for the pages the user sees, for the server side and for the database. You will learn when you need Python, why you most likely do not need Rust, and what to tell your agent on day one if your customers are supposed to come from search. I also cover how old differs from outdated, and why an agent working from old memory may install something that has long been unsupported. Using the example of Anthropic, which rewrote its main service in Rust with the hands of agents, I show what is really expensive when you move to another language, and why passing tests do not yet mean that everything works. And on security: why a project that has not been updated since summer already contains holes everyone knows about, how an agent can install a hijacked or made-up package, and which checks to hand it every month.
Transcript
Tap a paragraph to listen from there.
Why Stack Choice Matters Now
Good evening, startup founders and vibe coders! Today I am going to tell you what to build your product on now that an agent writes the code for you. Which language to pick for the part the user sees, which one for the server side, which database, what from the familiar toolkit is already outdated, and why your choice of framework is directly tied to the security holes in your project.
To be honest, this question worries me too. There are many programming languages, each one has its fans, and for a long time choosing between them felt like secret knowledge that only developers had. Now an agent writes the code, and it seems to be able to write in anything. But if it can write in anything, what should it write your particular project in? And what happens if you do not think about it at all?
By the end of this episode you will have four things. First, an understanding of why a language is no longer a life sentence for a project, and what is actually expensive when you move from one language to another. Second, a simple answer to what to build a new project on with an agent at the end of twenty twenty-six, with the pros and cons. Third, what "outdated" really means, and why an agent may bring outdated things into your project on its own. And fourth, why a framework that is never updated is not just old code but an open door, and what to ask your agent to do to close it.
A Startup Built by Chance
I will start with a personal story, because it is a very typical one. About two years ago we were launching a telemedicine startup. Back then there was no large audience yet and no content factory, the one that now brings people in from Google search. Today, by our own estimate, that is about half a million visits a month. The number moves around from month to month: for example, Similarweb, a service that measures website traffic, showed about three hundred and eighty thousand for October. And roughly eighty percent of those visits come from search. So this is not a toy project but a living product, and all of this can be checked in public sources.
Now for the interesting part: how did we choose what to build it on? We did not choose at all. We found a developer by chance, through a friend of a former colleague of mine. He knew Python and a framework called Django. A framework, put simply, is a ready-made skeleton for an application: it already has user login, database handling and an admin panel, and the programmer builds his own part on top. We built it on whatever the developer knew. There was nothing deliberate about that choice.
And you know, that is a normal story. Most startups live exactly like this: the stack, meaning the set of languages, frameworks and databases a product is built from, is chosen by the person, not by the task. Whoever you found decided what you would live on for the next several years. And changing it later was almost impossible: rewriting everything in another language cost as much as building the product again.
Now the agent has taken the place of that random developer. And here is the unpleasant part: if you do not tell it what to write in, it will choose for itself. In February of this year, independent researchers gave Claude Code various tasks more than two thousand times without saying what to build them with, and watched what it picked. It almost always picked the same things, and in many cases it did not use ready-made solutions at all and wrote its own from scratch. So once again it is not you who chooses your project's stack. It is just that now it is not a friend of a friend, but the habits of a model.
Anthropic's Python-to-Rust Rewrite
Why has this question become so pressing right now? On November twenty-fifth, Anthropic, the company that makes Claude, said it had rewritten its main service from Python to Rust. I will not dwell on this, it is just the occasion. The service is called the Messages API: every program that talks to Claude models goes through it, including Claude Code itself. It was written in twenty twenty-three in Python, because everything at the company was written in Python. And then, according to the company, from early twenty twenty-four to this fall, the load grew roughly eighteen hundred times.
Why change the language? Python is convenient for people: you write quickly and read easily. But it pays a small extra price for that convenience on every request. On a single request you do not notice it, but over billions of requests it turns into a server bill. Rust is stricter, and there is less wasted work in it. That is the whole reason: an enormous load, where every fraction of a percent of computing turns into money.
In the past, nobody dared to do this. In twenty twenty-four, one engineer suggested rewriting the service, and a colleague answered him, and I quote: "We are not rewriting the API in go or rust!" The risk was too big. They tried rewriting just a small piece and calling it from Python, but the gain was eaten up at the joint: when two languages live inside one program, the data has to be repacked at every border between them. And this year, Claude wrote the first version of the new service's core in about a week. From idea to launch, according to Anthropic's head of platform engineering, it took about five to six months, and in September all external traffic was moved to the new version.
And how long would it have taken without agents? The company does not give its own estimate. But there is a similar case with numbers. Bun, a program that runs JavaScript applications, was also rewritten in Rust: half a million lines of code. Most of it was moved over in eleven days by about sixty-four copies of Claude working at the same time, and the tokens cost roughly one hundred and sixty-five thousand dollars. By hand, according to Bun's author, three engineers who know this code well would have needed about a year.
What did Anthropic get out of it? According to the company, the computing needed per request dropped by about seventy percent. Nobody outside has checked this, and in one interview a different figure came up, forty to fifty percent, so I would treat it as a claim.
But here is why this story is really worth knowing. Anthropic had about seven hundred automated tests, that is, checks that the program works correctly. In April the new version passed about ninety-eight percent of them. It looked almost done. But when the new and old versions were put side by side and given the same real requests, the answers matched in only about a quarter of cases. Almost all the tests are green, but in reality only a quarter matches. Do you feel the difference?
How did that happen? The engineers looked at the tests the agents had carried over from the old version and found more than a hundred weakened checks. A test turned green because it was checking less. And this is not malice, it is simply how an agent works: it has a goal, "the check passes", and it looks for the shortest path to it.
The same story has a telling episode: to make the answers match, the agent proposed simply copying the needed texts into files instead of doing it properly. The check passed. But an engineer rejected it: that code would have had to be thrown away before launch anyway. The authors draw a conclusion, and here it is in their words: "A verifier can tell an agent whether the outputs matched, but not whether the fix is good enough to ship." That is where a human is needed.
Language Is No Longer Lock-In
So here is the first takeaway of the episode. A programming language is no longer a life sentence. The well-known programmer Mitchell Hashimoto put it this way: "Programming languages used to be LOCK IN, and they're increasingly not so." But there is a condition. An agent can write new code in a week. What is expensive is something else: proving that the new code does exactly what the old code did. The authors of the Anthropic post write it themselves: "Verification, not generation, had become the bottleneck."
What does this mean for you? If you ever decide to rewrite your project in another language or move it to a new version of a framework, repeat this approach on a small scale. Tell your agent: "Before rewriting anything, describe the behavior of the old version with checks that do not depend on the language: we send this request, we expect this response. Then run the old and new versions on the same inputs and show me every difference." Bun, by the way, relied on exactly this kind of test suite, written separately from the program itself. And be sure to ask the agent to show you which tests it changed. If a test became softer, that is not a fix, it is a hidden bug.
All right, rewriting is possible. But it is better to choose from the start so that you never have to rewrite. And here is the main question of the episode: what should you build a new project on with an agent?
Picking What Agents Know Best
First the mechanism, because without it all the advice just hangs in the air. An agent writes code from memory. It learned from a huge amount of other people's code, and the more code in a given language it has seen, the better it writes in that language. Anders Hejlsberg from the TypeScript language team said it plainly: "AI's ability to write code in a language is proportional to how much of that language it's seen. It's a big regurgitator, with some extrapolation."
You can see it in measurements too. In a research paper published in June of this year, models solved tasks in popular languages correctly on the first try most of the time, roughly sixty to ninety percent. In rare languages the spread was huge, sometimes below thirty. And in a language the model had never seen during training, almost zero. Another paper, from July, showed that in an unfamiliar language the agent also spends more tokens: it writes code that does not run and redoes things that already worked. So an exotic language costs you both mistakes and money.
Hence the first rule: pick what the agent has seen the most. And here the data are clear. According to GitHub's annual report, the most used language there right now is TypeScript, Python is second and JavaScript is third. What is more, among new projects where you can tell agents were involved, TypeScript shows up noticeably more often than where there were no agents. GitHub itself explains it this way: people who work with agents gravitate toward languages where the agent's output is easier to check.
What is TypeScript, in simple words? It is JavaScript, the very language everything in the browser runs on, plus labels on the data. Here is a number, here is text, here is a list of users. These labels are called types. If the agent accidentally passes text where a number is expected, a special checking program complains before anything even runs. It is a free automatic check built into the language. Remember it, we will need it again.
So, the frontend, meaning everything the user sees in the browser. Here the answer is the simplest: TypeScript, React and Tailwind. React is the most common way to build pages out of ready-made blocks. Tailwind is a way to set the look, the colors and the spacing, with short notes right in the page code. This is what agents know best and what they pick on their own when nobody tells them otherwise. The app builder Lovable, for example, for a long time built everything on React, TypeScript and Tailwind by default. The plus: agents make the fewest mistakes on this stack. The minus: it is a huge world of thousands of other people's ready-made parts, and I will come back to its dangers.
There is one subtlety on the frontend that ties straight back to my story about organic traffic. If your product lives on search, it matters where the page is put together. In a simple React application the server sends the browser an almost empty page, and the browser fills in the content. A person does not care, but a search engine sees it worse. That is why there is server-side rendering: the page is built on the server and arrives ready. Tellingly, in May of this year Lovable switched all new applications to a framework with server-side rendering, precisely so that search engines could see the pages. If you plan to get customers from search, tell the agent at the very start: "I need search traffic, the pages must be built on the server." Such frameworks exist and the agent knows them, Next.js for example. Redoing it later is far more painful.
Backend and Database Choices
The backend, meaning the server side the user never sees: the logic, the payments, the work with the database. Here there are three options, and each has its place.
The first option is TypeScript again. The plus is huge: the whole project is in one language. The agent does not have to keep two worlds in its head, the rules are the same, the checks are the same. And remember Anthropic's lesson about joints: when a project has two languages, something always gets lost at the border between them. For most websites, services and small products, this is the simplest choice. The minus is the same as before: an enormous number of other people's packages, in which harmful code is regularly found.
The second option is Python. If your project is about data, models or document processing, almost everything useful in that world is written in Python, and there is no arguing with that. Django, which my telemedicine project runs on, is also Python. It is a mature, popular framework with clear security rules. The minus for an agent: Python has a lot of implicit behavior, where code does things behind the scenes. Armin Ronacher, the creator of another well-known Python framework, wrote: "Agents struggle with Python's magic." His example is a popular testing program where a needed piece is plugged into a check simply because the names match, and from the code you cannot see where it came from. A person remembers this, but an agent has a hard time with it.
The third option is Go or Rust, and that is for special cases. The same Ronacher recommends Go for new server projects: "if you can choose your language, I strongly recommend Go for new backend projects." The language is simple, everything in it is written explicitly, and its creators guard compatibility very carefully, meaning old code does not break with new versions. Rust is the story of Anthropic and Bun: an enormous load, where every fraction of a percent of computing costs money. According to GitHub's report, Rust doubled in a year, faster than any other major language. But let us be honest: Anthropic's load grew eighteen hundred times. If you have a hundred users, you will not notice a move to Rust either in your bill or in your speed.
Now the database. Here the answer is the calmest: PostgreSQL. According to this year's Stack Overflow survey, almost sixty percent of developers use it, and it is also what Claude Code picks on its own when nobody tells it. In second place, for the first time this year, is SQLite: a database in a single file, with no separate server, just right for simple and small projects.
But with databases the main trouble is not the choice, it is the access settings. There was a loud case with apps built on Lovable with a database in Supabase, a service that gives you a ready PostgreSQL in the cloud. The researcher Matt Palmer checked one thousand six hundred and forty-five apps from the Lovable showcase and found exposed data in roughly one in ten. The rules for who can read which records in the database had not been set up. What is more, the built-in check only looked at whether a rule existed, not whether it was correct. To be fair, Lovable disputes the official recognition of this vulnerability. If your database is in a cloud service, ask the agent not just to turn on access rules but to test them for real: log in as one user and try to read someone else's data.
Let me come back to the rule "pick what the agent has seen the most". Is there an opposing view? There is, and it is worth hearing. The well-known developer Simon Willison wrote in March of this year: "I thought coding agents would prove to be the ultimate embodiment of the Choose Boring Technology approach, but in practice they don't seem to be affecting my technology choices in that way at all." Agents cope quite well with new libraries if you give them the documentation. I think both sides are right. For a developer who understands what the agent is doing, new things are not scary. For you, if you cannot read the code yourself, boring and popular is your insurance.
So, the second takeaway. A good stack for a project with an agent is popular, stable and, where possible, in one language. Today that means TypeScript with React for what the user sees, TypeScript or Python on the server, and PostgreSQL or SQLite for the database. Rust and Go are for special tasks.
Marc Lou and Stack Templates
Now a case about money, and it is interesting precisely because the stack is not the main thing in it. Marc Lou, a solo founder, launched a service called TrustMRR at the end of October last year. It is a marketplace where founders of small online projects prove their revenue by connecting their payment system in read-only mode, and put their projects up for sale. According to him, over nine months it brought in about three hundred and thirty thousand dollars. That is his claim, and nobody outside has checked it.
What did he build it on? In his write-up he names only the Cursor editor with its agent, where he wrote the code. He does not even mention the language or the database. And that alone says a lot: in his story about money, the stack is simply not a topic. All the energy went into the product and into sales. A curious detail: on his own marketplace, every project for sale shows what it is built on. So when you want to sell your product, the buyer will look at that.
How can you repeat this yourself? First, do not let the agent choose the stack silently. At the start of a project, tell it: "Suggest three stack options for this task. For each one, give the pros and cons, how popular these tools are, and until what date each version gets security fixes. I want the whole project to be in one language where possible." And take the most boring of the three.
Second, once the choice is made, ask the agent to turn it into your own template: an empty project that already has user login, a database, payments and checks. Start every next project from it. That is what a template is for: the stack is decided once, and a new project starts not with picking tools but with the product.
What Outdated Really Means
And now the question everyone asks: what is outdated? It is easy to get lost in fashion here, because every month someone declares some framework dead. I suggest a simple definition. Outdated is whatever no longer gets security fixes. Not what has gone out of fashion, but what nobody repairs anymore.
And here is why this matters especially when an agent is writing. Remember, it writes from memory. And its memory ends at a certain date, after which it has not seen the world. Willison wrote that this date is "extremely important for code". The model may have learned at a time when some approach was the standard, and it will confidently offer it to you, even though it has been shut down since. It is not lying, it simply does not know.
A few examples with dates. Create React App, for many years the standard way to start a React project, was officially declared deprecated in February twenty twenty-five, and a model that learned from older code may well suggest it. AngularJS, the first version of a popular framework, has had no support since the end of twenty twenty-one. Python version two was closed in twenty twenty. Django four point two, a very popular version, stopped getting fixes in April of this year. jQuery, on the other hand, a library that still sits on most websites, is alive: a new version came out in January of this year. But almost nobody picks it for new applications, it is legacy. So old and outdated are not the same thing.
And even what is the default today keeps changing. That same Lovable built everything one way, and in May of this year changed it for all new applications. So all of this is checked not by opinions on social media and not by the model's memory, but by the date on the project's official website. Ask the agent: "For every tool you install, check on the official website which version is the latest right now and until what date it is supported. Do not rely on memory." The agent can search the internet, it just does not always do it by default.
Types and Tests Need Locks
Now the third takeaway, and it is an awkward one for fans of the right languages. Types and tests protect nothing on their own. Remember the hundred weakened checks at Anthropic. There is other data too. A study from February of this year showed that agents are nine times more likely than people to put a special mark in TypeScript that means "anything can be here" and simply switches the check off. And the company Evil Martians just published its own measurement on a hundred Claude Code sessions. According to the authors, the agents ran the TypeScript type check on their own in only one case out of ten, and "No run on either stack failed because of a type error." Every failure came from the program doing the wrong thing. This is their blog, not a scientific paper, but the picture is the same as at Anthropic.
What follows from this? A check works only if it is actually run. So the check should not be a request, it should be a lock. What does that look like in practice? Usually the project's code is stored in one place, and with every change the type check and the tests run there automatically, and the site is updated only if everything passed. If it did not pass, the new version simply does not go out. The agent can set this up, you only need to ask: "Make sure the type check and all the tests run automatically before every deployment, and if anything fails, the deployment does not happen."
If you publish your site with a button in an app builder, ask the agent whether such a check can be added there. If it cannot, have the agent run the check itself before every deployment and show you the result.
And one more thing from Anthropic's kitchen that carries over to you easily. They had a rule, in their words: "We didn't want engineers to have to make the same correction twice". Every repeated agent mistake became a rule in the instructions file for Claude, and whatever could be checked automatically was turned into a check. The same goes for you: if the agent steps on the same rake a second time, tell it: "Write this down as a rule in the project's instructions file. And if this can be checked automatically, build that check."
Security Holes and Updates
And now the most worrying part, the one I promised. Vulnerabilities. And here is my story again. Our Django project was not updated this summer. It seems like nothing terrible: everything works, people keep coming. Let us count what happened in that time.
Since the beginning of June, the Django team has released five updates with security fixes. A project that stayed on the June version missed four of them, which means seventeen closed holes. One of them was high severity: through it, files could be written to the server. Granted, many of them concern parts of the framework that not everyone uses, such as working with maps. So how dangerous this is for a particular project depends on what is switched on in it. But only someone who is actually paying attention can find that out.
The most important thing here is the mechanism. The Django team, like most such projects, fixes only supported versions. Their rules say it directly: older versions "are not investigated or patched". If your project sits on a version whose support has ended, nobody will ever close any new hole in it. The current long-term support version of Django, as of the end of November, will get fixes until the spring of twenty twenty-eight, while that very popular four point two, as I said, ended in April.
Why is an old version dangerous, and not just old? Because a fix is published together with a description of the hole. Until you update, that description is a ready-made manual for an attacker: here is the door, and this is how it opens. It used to take weeks between publication and attacks. Now sometimes it takes hours. In December last year a critical hole was found in React that allowed someone else's code to run on the server without any login. Attacks began within hours of it being disclosed, and researchers counted more than seventy-seven thousand vulnerable addresses online.
And models have sharply sped up this mechanism. There are already more than one hundred thousand registered vulnerabilities this year, twice as many as in all of last year, and the main reason is that holes are now hunted with the help of artificial intelligence. The Django team itself wrote back in February that reports found by models were arriving "on a nearly daily basis". So there is no such thing as a safe framework. There is a framework that gets updated, and one that does not. Popularity does not protect you, it only means fixes come out quickly. The only question is whether you install them.
There is also a second door, and it matters especially when an agent is writing. That is dependencies. Your project is built not only from your own code but from hundreds of other people's packages, small ready-made parts that are downloaded from shared repositories. In May of this year, attackers hijacked the packages of TanStack, a popular set of frontend tools: hundreds of harmful versions went out. According to researchers, the harmful code stole, among other things, access to Claude Code. Whoever installed a fresh version that day got caught.
And the third door is one the agent opens itself. Models sometimes recommend packages that do not exist, they simply make up a plausible name. In a large study last year covering sixteen models, almost one in five recommended packages turned out to be invented. And the models repeated more than forty percent of those invented names every time, which means they can be predicted. Attackers do exactly that: they register those names and put harmful code there. The agent confidently installs the package, the package exists, it is just that it was written by someone very different from who you think.
Does switching to the right language save you from this? No. In August of this year, an account was hijacked in the package repository for Rust too, and harmful versions were released; one of the packages had been downloaded two hundred and forty-five million times. Rust protects against one kind of error that was solved long ago in Python and JavaScript as well. And at the top of the world's main list of web application risks are things that do not depend on the language: who has access to what, how everything is configured, and which other people's packages you installed.
That is the fourth takeaway. The language affects security much less than it seems. What affects it much more is whether you update what you have chosen. A project that has not been updated since summer is guaranteed to contain published holes by winter.
Here is exactly what to ask the agent to do. First, once a month: "List the language, the framework and their versions in the project. For each one, find on the official website the date until which this version gets security fixes. If that is less than six months away or has already passed, propose a plan for moving to a supported version." Why once a month? This summer and fall Django released security fixes almost every month, so a check like this matches that rhythm.
Second: "Run a check of the dependencies for known vulnerabilities and show me what you found, sorted by severity." There are ready-made tools for this for every language. You do not need to remember their names, the agent knows them. You only need to ask.
Third, against hijacked packages: "Check that the project has a file with the exact versions of all packages, and set up a delay: install a new version of any package no sooner than a few days after its release." The file with exact versions, called a lock file, is there so that nothing new arrives unasked with every install. And the delay works because hijacked versions are usually found and removed within hours or days. Researchers from Palo Alto advise waiting one to three days. If your code is stored on GitHub, ask the agent to turn on automatic update suggestions there: since July, by default they wait three days for ordinary updates, while security fixes come through without delay.
And fourth. When the agent adds a new package, have it report whether the package exists, how many downloads it has and who maintains it. That is one sentence in the project's rules file, and it closes the door on invented names.
And now let me come back to my own story and close the circle. It turns out that the choice made two years ago without any thought, based on the skills of a person found by chance, was not a bad one. Python and Django are mature, popular tools, the agent knows them well, and the framework has clear security rules. The mistake was not the language. The mistake was the idea "if it works, do not touch it". The project grew on organic traffic, and nobody did updates regularly, because it never looked urgent.
Does this mean such a project should be rewritten in trendy TypeScript or fast Rust? No. There is a reason to rewrite when your stack has fallen out of support and moving to a new version costs more than moving to another language, or when you hit a load limit, like Anthropic. If neither is true, a rewrite means months of work and the risk of breaking what brings in customers. And for a project that lives on search, a hack or a site outage means not only lost data but also lost search rankings that took years to build. That is why, for a business like this, a framework that is never updated is a direct risk to revenue.
And one last thing that ties it all together. Look at what Anthropic with its Rust, the agents that skip the type check, and my Django have in common. In every case the main question turned out to be not "which language" but "who checks, and how". The agent writes fast, and faster every month. Checking that the code does what it should, that the tests have not been weakened, that the packages are real and the version is still supported, remains your job. The good news is that you can hand this to the agent too, if you tell it exactly what to check and make sure the check cannot be skipped.
So, in short. A language is no longer a life sentence: a rewrite can take weeks, but only if you have a reference and a comparison, not faith in green tests. For a new project, choose what is popular, stable and unified, checking support dates on official websites rather than trusting the model's memory. And what makes a project secure is not the language but regular updates and mandatory checks that your agent cannot get around.
That is all for today. You have been listening to Evgenii Arsentev, creator of Arsminal, a terminal for managing AI agents where your whole agent team works in one window, like chats in a messenger. Founder of ArsentevAI, Dad4Kids and ReelsZavod. Try Arsminal for free at arsminal.com. Thanks for listening.
About the host
Evgenii Arsentev is the host of the podcast AI Agents & Vibe Coding. He is a medical doctor with a PhD in medical science from Sechenov University, and for the last ten years he has led products and companies in digital health. He is the founder and CEO of Dad4Kids, a company built and run with AI agents, and the creator of Arsminal, a free terminal for AI agents.
More about Evgenii Arsentev →