Will your Claude Code web app still work in 6 months?

0

In this video we ask Claude Code to build a CRM, then follow that app through six months of changes. We look at the stack Claude picks, the three places the app breaks, and why. Then we install Elements, build the same CRM with Claude Code on Elements, and make the same changes again. ## Is a CRM built by Claude Code ready to deploy? We ask Claude Code for a CRM, and twelve minutes later the app is running. Then we ask Claude one question: is this code maintainable, and can we deploy it? Claude answers, "I would not put real customers or money on it yet." The app works today. The question for the rest of the video is whether it still works in six months, after Claude has changed it every day. ## The stack Claude picks We start over and ask Claude what a production app should be built with. Claude picks a stack based on what is popular on the internet. Claude has not reviewed each product in detail. The list starts with 17 third party packages. Those packages pull in over 200 others. Over 50 different people and teams wrote them, and nobody built them to work together. The app also needs seven separate tools: - a package installer - a type checker - a test runner - a bundler - a migration tool - a deploy host - CI A separate team built each tool. The tools do not talk to each other, and they do not share the state of the build. ## Where the app breaks **A rename breaks the signup form.** Claude renames a field from `email` to `emailAddress`. Fourteen places in the code still use the old name, so the signup form is broken. The type checker would report all fourteen, but only if Claude runs it on the full project after every change, and that takes longer as the app grows. The test runner does not know the type check failed, so it runs the tests against the broken code. **The deploy host does not run your tests.** The host builds the code and releases it. The host does not run the tests first, and it does not migrate the database. A host that bills by usage also charges for every build and every visitor, including every crawler. **A database migration is run by hand.** Adding one column means changing the database. The migration tool is not part of the build, so Claude or CI runs the migration by hand on the app database, with no test database and no tests on the new build. The same tool has a command that deletes the database, and the video shows two reports of Claude running that command. ## Why Claude needs tools that work every time Claude is great at writing code and at calling tools. Claude is also a statistical model: ask the same question twice and you can get two different answers, and sometimes an answer is wrong. Claude can only work with the tools Claude is given. Claude will not stop to build a package installer, a type checker, a bundler, a test runner, a database migrator and a deployer while working on your app. Claude needs tools that do each of those jobs right, every time. ## Install Elements and create an app Elements is a build server and tooling, app framework, Postgres database and deployment, engineered from the ground up as an integrated system for building web apps with AI. We open the terminal in VS Code and paste the install line from [elements.dev](https://elements.dev). We create a new app, start it, and tell Claude what to build: ```bash Terminal elements start ``` In the Claude desktop app, we paste the same install line and ask Claude to create an Elements app. ## The Elements build server Every Elements project has its own build server, a program that runs while you work. The editor, the terminal and Claude all connect to that build server, whether Claude is one agent or ten, and they share one build. When Claude saves a file, the build server runs one build: install, type check, security analysis, bundle, test, migrate and release. Each step runs only on the files that changed and the files that depend on them, so a build takes milliseconds. When Claude wants to know whether the code works, Claude runs one command, and the answer comes back in microseconds: ```bash Terminal elements build ``` ## The Elements app framework Elements comes with the app framework: reactive HTML, RPC, sessions, live tables, email, jobs and payments. We ask Claude Code to build the CRM again, on Elements, and the app has all of those from the first minute. Hundreds of packages become one package, `@elements/app`, and the seven tools become one tool connected to one build server. ## The same six months on Elements **The rename.** Claude renames `email` to `emailAddress` and saves the file. The build reports all fourteen errors, each with its file and line. Claude fixes them, the build turns green and all the tests pass. **The database.** Database migrations are part of the build. Claude writes the change in a migration file in plain SQL. The build watches that file and applies the migration to the test database first, so Claude never runs a migration command. **The deploy.** A deploy is one command, and in the video it finishes in under a second: ```bash Terminal elements deploy ``` The deploy builds on every machine. It migrates the test database and runs the tests against it, then migrates the app database and releases on every machine at the same instant. A release either fully succeeds or nothing changes: if a step fails on any machine, every machine keeps running the release it was already running. The machines are your own servers. Elements deploys to any Ubuntu server you reach over SSH, and each server runs a load balancer, your app and the build server. For more capacity, add a machine. ## One monthly price per machine Elements is licensed per machine. The price is predictable per month, not based on usage or other metered variables. Elements charges for the tooling, not the framework: the code your app runs on is MIT licensed, and everything you build is yours ([licenses](/learn/man/licenses)). ## Will your app still work in six months? On Elements, every change Claude makes is built, tested and released the same way, every time. Install Elements from [elements.dev](https://elements.dev) and build your app with Claude Code on Elements.

I asked Claude Code to build me a CRM, 12 minutes later I had this. So I asked Claude, is this code maintainable and can we deploy it? And Claude said, I wouldn't put real customers or money on it yet. Okay, so what happens over the next six months when Claude's changing this app every day? Does it still work? I'm going to show you where it breaks, and then I'm going to show you Elements. It's a program you install on your computer, and Claude uses it to build, test, and deploy your app. So, I started over, and I asked Claude what a production app should be built with. Now Claude picks a stack based on what's popular on the internet.

It hasn't done a detailed review of each product. And this is what you get. 17 third party packages. Those pull in over 200 others. Over 50 different people and teams wrote them, and nobody built them to work together. Then you need seven separate tools, a package installer, a type checker, a test runner, a bundler, a migration tool, a deploy host, and CI. A separate team built each one, and they don't talk to each other, and they don't share the state of the build. And that's a problem right away, even on a prototype. It just gets worse with every change until one day the app doesn't run at all. Here's a simple one. Claude renames a field.

Email becomes email address. But 14 places in the code still use the old name. So now your signup form is broken. The TypeScript type checker would catch all 14, but only if Claude runs it. On the full project after every change and the bigger your app gets, the longer that takes. And the test runner doesn't know the type check failed. It'll run your tests against the broken code anyway. Okay, now you deploy. The host builds your code and releases it. It doesn't run your tests first. It doesn't migrate your database. And you're not paying a fixed price. You're paying for usage. Every build, every visitor, every crawler that hits your site. So the more you build and the more people show up, the more you pay.

One developer got a bill for $104,000, and then there's the database. Say you want to add one column. A migration tool like Prisma isn't part of the build, so Claude or your CI runs the migration by hand right on your app database. No test database, no tests on the new build, straight to production. Oh, and that same tool has a command that deletes your entire database. Claude ran it here and here. Now, Claude is great at writing code, and it's great at calling tools. But Claude is a statistical model. Ask it the same thing twice, and you can get two different answers. And sometimes the answer is wrong. And Claude can only work with the tools it's given.

It's not going to stop and build you a package installer, a type checker, a bundler, a test runner, a database migrator, and a deployer while it's working on your app. So Claude needs tools that do each of those jobs right, every time. That's what Elements is. We've been building it for over a decade. Let's install it and create an app, right now. Open the terminal in Visual Studio Code and paste one line. Create a new app, run elements start, and tell Claude what to build.

If you use the Claude desktop app, paste the same line into Claude and ask it to create an Elements app. So what did you just get? That project has its own build server, and it's always running. Your editor, your terminal, and Claude all connect to it, one agent or ten, and they share one build. No other toolchain works this way. When Claude saves a file, the build server runs one build. Install, type check, security analysis, bundle, test, migrate, release. Every step, every time. But only on the files that changed and the files that depend on them. So a build takes milliseconds. And when Claude wants to know if the code works, it runs one command, elements build.

The answer comes back in microseconds. Elements also comes with the app framework. Reactive HTML, RPC, sessions, live tables, email, jobs, payments. So I asked Claude to build the CRM again, this time on Elements, and the app has all of that from the first minute. Let's do that rename again. Email becomes email address. Claude saves the file and all 14 errors are right there, with the file and the line for each one. Claude fixes them, the build is green and all the tests are passing. And the database. Claude writes the change in a migration file and it's plain SQL. The build watches that file and applies it automatically on the test database first, so Claude never has to run a migration command.

Now deploy. It's one command, elements deploy, and that took under a second. It's that fast because the build runs on your servers. The build server on your laptop talks directly to the build server on each machine, so it only does the work that's needed. The deploy builds on every machine. It migrates the test database, it runs the tests against it, then it migrates the app database, and releases on every machine at the same instant. A release either fully succeeds or nothing changes. So if a step fails on any machine, every machine keeps running the previous release. Then it hot reloads the servers and every browser that's connected. These are your machines, by the way, on AWS.

Each one has a load balancer, your app, the build server. Need more capacity? Add a machine. Elements is one predictable monthly price per machine, and the price doesn't change with your usage. So hundreds of packages become one package, @elements/app. And the seven tools become one tool, connected to one build server. So will your app still work in 6 months? On Elements, every change Claude makes is built, tested, and released the same way every time. Build your app with Claude Code on Elements. Install it from elements.dev. On this channel, we're going to build a lot of apps on Elements and go deep on how each part works. New videos come out regularly, so subscribe. And tell me in the comments what you're building.

Add a comment