Skip to main content

December 2nd, 2026 ×

You Can Build Literally Anything (Alchemy)

#1060
or
Topic 0 00:00

Transcript

Guest 0

What does it take to build forkable companies? Has anyone thought about this? Like, I want to fork your company.

Guest 0

Bro, I'm not designing it for you. I'm designing it for agents. Yeah. And the best solution for secrets on agents is to not give them the secrets. The hardest part is actually managing the community contributions at this point. Like, I'll close 50 PRs and 60 will open overnight.

Scott Tolinski

Welcome to Syntax Today. We have Sam Goodwin on. He's the developer creator behind Alchemy. Last week, we had Michael Arnaldi on to talk about Effect, and he's like, you gotta talk to Sam. And we're like, well, we already have Sam queued up.

Scott Tolinski

My best way to describe Alchemy is just like infrastructure as code that's been, like, boosted up with effect. And that's probably a bad example. We'll get we'll we'll get Sam to explain a little better, but very excited about this episode. Welcome, Sam. Thanks a lot for coming on. Yeah. Thanks for having me on. And, yeah, good week for it, I guess, with Michael and I'll be going first to establish the context. Yep. That's good.

Scott Tolinski

Trying our best to get everybody effect filled, that listens to this this podcast. So give us a rundown. What is Alchemy and why did you create it?

Guest 0

Well, you're kind of half right with saying that it's infrastructure as code because that's a big part of what it is.

Guest 0

At its core, it's a reimplementation of infrastructure as code with effect. That's sort of the foundation. But the real important thing to know about Alchemy is it's not just about infrastructure. Why infrastructure as code is at the foundation is actually because of declarative programming, which is this different concept. Like infrastructure as code, what did it do? It solved the problem of making configuration changes to infrastructure, right? Yeah. We went from writing scripts and hacking and making changes to the system, which is really unsustainable, right? Have to be aware of so many things that could be wrong and how many different states the system could be in. Infrastructure as Code solved that with a declarative programming style, right? Instead of writing scripts that figure out how to make changes, you just write code that says what the system should be, and then some tool figures out how to make that happen, right? Which is so much easier to think about as a developer. Like if I want to change something, I just change the code and then it magically happens, right? Yeah, yeah. Alchemy embraces that concept fully, but takes it way beyond just infrastructure and merges your whole runtime, like your backend code, your API, everything in your application with the infrastructure.

Guest 0

So it brings that declarative style to the entire stack. So I like to describe Alchemy as a vertically integrated declarative programming framework.

Guest 0

And what it does is it optimizes the entire loop of developing from local iteration to deploying out to staging and preview environments and production.

Guest 0

It tries to make that entire feedback loop as fast as possible, but by going way beyond the scope of a new Terraform or a new SST, that's more close to an implementation detail of something we need to scale programming more so than the whole point of the product.

Scott Tolinski

Okay.

Scott Tolinski

So if I'm understanding this correctly, something like SST, Terraform or whatever, you build your app in, let's say you pick Node, you got React on the front end, maybe you've got a S3 bucket where you upload all your things.

Scott Tolinski

All of your actual implementation of that would be done in whatever frameworks that you choose. And then when it comes time to deploy that thing, you try to adapt that to something like a infrastructure as code. But, and and please correct me if I'm wrong, but with with Alchemy, you're like, you're kinda going all in on on like, I'm starting my web server from Alchemy Yeah.

Guest 0

I I I really like...

Guest 0

Not that Alchemy is anything like this company, but I really love, like, the the pitch of Tesla's vertically integrated factory. Right? Like, the... For the longest time, Tesla was going on about how powerful...

Guest 0

When you vertically integrate something, you can optimize so much more. Right? Yeah. And before Alchemy, you would, yeah, you would use Hono server with Next. Js, or maybe not Next. Js, and maybe you'd use SST. So you're sort of hobbling together a bunch of different frameworks to build something, and they fit together better or worse, right? Alchemy says, no, no, no, In the age of AI, we don't need to do that anymore. Let's go all in on effect. Effect has already done a huge job of basically gobbling up that core, you know, how to build a server, how to represent a schema, how to do middleware, how to do functional programming properly, and all that kind of stuff, right? So they've got this big core.

Guest 0

And Alchemy says, No, no, no. What we want actually is a very flexible but perfectly and succinctly integrated framework from infrastructure all the way up to the back end, all the way up to the front end. That's what it's doing.

Guest 0

And that is so that AI can rapidly build and verify the software.

Guest 0

So that verification loop is the most important thing.

Guest 0

In Alchemy, because we do this vertical integration, the type system can tell you that the infrastructure is correct. Like this is a new thing, right? Like if it compiles, that means your infrastructure is sound. There's no such thing as a missing IAM policy, a missing environment variable. There's also really no such thing as a crazy IAM policy that grants permission to everything.

Guest 0

We guarantee you correct policies, and practically speaking, we guarantee you least privilege policies by combining the runtime code and the infrastructure code. So that optimizes...

Guest 0

That eliminates a whole class of problems for agents. Woah,

Scott Tolinski

okay.

Scott Tolinski

Yeah, yeah, I think it just clicked for me because like you said, there's no such thing as like, often I have this problem where I'm with my agent, I'm typing and it can't do something. It says, Hey, can't do this. You probably have this setting weird. Go into the dashboard, click these three things, turn this thing on, and then we'll try it again.

Scott Tolinski

But you're saying that like, like everything from the ground on up, access and whatnot is all done inside of the alchemy and inside of effect.

Guest 0

Inside of the code. So like the code is the system. That's like mental model, right? You're not thinking about I'm writing code and then I'm deploying it to a system and I've got to worry about those things separately or I've to go up and tweak a configuration or whatever it is. The code represents the whole thing. That's what I mean by declarative.

Guest 0

It represents the business logic, it represents the infrastructure, and TypeScript guarantees it's correct altogether.

Guest 0

And we also have local emulators so that you can emulate it really quickly in like a work tree. You got like 20 agents on your machine and they're verifying, right? They can verify it with a local emulator, and then when they're ready, they can deploy it and run the same test against a deployed version. There's no difference between your local version and your deployed version.

Guest 0

The agent can just tweak a flag and now it's deploying and testing against the live version.

Guest 0

Then that extends all the way through to CICD, so every pull request can get a preview environment.

Guest 0

And then once you're done messing around with it, you can roll that out to prod. It's all the same program, right? At no point did you have to worry about, Oh, is my staging environment correct? Is my local environment correct? You're not thinking about any of that. There's just coding. It's like we go back to local programming again. Do you remember this? It was so great. You would write code, you would run it, and then if it didn't work again, you would restart it. And it was so good. And then SAS came along and ruined everything.

Scott Tolinski

Yeah.

Scott Tolinski

You're just intertwined in all of these different services and you're just hoping it all works again, you know? Even even just the, trying to get something set up on somebody's computer, even just for local dev, you know? Like, never mind all these things, making sure that you've got absolutely everything dialed in.

Scott Tolinski

People are probably still trying to place, like, where this is in their mind.

Scott Tolinski

So when we talk about infrastructure, that is, like, what, Cloudflare, AWS? Like like, what are you targeting here, and and what are the primitives that you can use?

Guest 0

Yeah. So I will tell you that we're targeting anything with an API.

Guest 0

Okay.

Guest 0

So at the core, I made a video on this a little while ago, but there's this project we have called Distilled, which is effect native SDKs for every API. So we've used AI to build...

Guest 0

You know, take any API spec, it will generate you an effect native SDK for it. And then we take that effect native SDK, and then we use agents to build the whole Alchemy infrastructure as code and developer experience for that service. That includes AWS. So we have 100% coverage of AWS.

Guest 0

Cloudflare.

Guest 0

What else we got? We got HetSner, Fly, Railway.

Guest 0

We got GCP.

Guest 0

There's Stripe in there. I'm adding Rivet. I'm adding Effect Cluster. I'm adding all the sandboxes that you could know and love like Daytona, Archel, anything. So the point is you can think of Alchemy one through what can I use of Alchemy? But the Alchemy as a project is really that automated flywheel to transform an API into a programmable interface that's consistent and that works with Alchemy.

Guest 0

And the cool thing is if you go look at our landing page, you'll quickly notice that every cloud looks the same. That's something we've done with Alchemy. If you've gone and used Cloudflare and then you've moved over to Azure or AWS, you'll quickly notice that it's like you're learning a whole new thing. You're no longer just writing Node. Js. You're thinking about all these different mental models in their system. Alchemy makes it all look the same. So you have access to any cloud you want basically.

Guest 0

And as the project matures, as a new product comes out, we'll have automated the process of integrating that into Alchemy.

Guest 0

It's for cloud programming, but you can, I've seen people do home labs and all sorts of crazy stuff. Oh, that's cool. Yeah. Anything with configuration that could be software deployed Yeah. To

Scott Tolinski

And when somebody's picking their infrastructure, like if you pick Cloudflare, you kind of pick that early on, and you know, all right, I know the limitation of I'm not going to be able to run this certain database, but that's a bit of a trade off because it's cheap and fast and all the great things about Cloudflare, right? Does Alchemy make that an easier decision, or are you still choosing your infrastructure upfront? I know you said, like, I'm looking at the examples on the website of just like a basic server, and it looks very similar.

Scott Tolinski

So would I be able to move from one to another if I wanted to, or do you still choose your infrastructure upfront?

Guest 0

So I'm building it in layers to pick my favorite word. At the bottom is infrastructure as code, like we mentioned, so deploy anything. You can deploy Rust, Python, Hono.

Guest 0

So anyone who's got an existing app can use Alchemy and then they go and choose where they want to deploy it. So I can choose Cloudflare, I can choose AWS.

Guest 0

Very easy. You change one line of code and a website that's deployed to Cloudflare becomes deployed to AWS.

Guest 0

Yeah, so you're still choosing the infrastructure.

Guest 0

We make the programming model look as similar as possible, so it's easy to switch. But people want to choose infrastructure based on its qualities. I'm choosing Cloudflare because it has a global network, and it has durable objects that are all over the world, I love those. But we're slowly starting to incorporate what I would call sort of cloud agnostic programming models on top. So once you've got this layer of infrastructure as code, and you can sort of work with the particular clouds that you want, you can go one layer up where you use a cloud agnostic framework, which we call Alchemy Domain, where you express your whole application in just business terms, and then you just say, I want this application on Cloudflare, or I want this application on AWS with Revit, AWS with Efex cluster.

Guest 0

So as we build up, right, as we get these layers in place, because it's built on Efex, it's very easy to swap things out. And eventually, you'll be able to just build applications and run them anywhere. Like one demo I could have would be one application deployed to Cloudflare and AWS and GCP and Fly, and it's all the same program.

Guest 0

So to answer your question directly, you still choose, but as you go higher up the layers, the more it becomes abstract.

Guest 0

Okay. And as alchemy goes further along, I'll build more...

Guest 0

I'll probably build an abstraction that lets you ride against durable objects, but not think about Cloudflare, not think about Rivet. You're just thinking about the concept of a durable object.

Scott Tolinski

Yeah, that was my next question of like, I'm looking at all the primitives, right? Like you obviously have hosting, you obviously have containers, and one of the primitives is a database. So if I'm choosing, like let's say I want to use PlanetScale, am I reaching for drizzle like I normally would, or is the ORM involved in effect land?

Guest 0

We support Drizzle.

Guest 0

Also support not Drizzle. So again, it's sort of layers, right? We support PlanetScale, Neon, all of AWS databases, GCP, like anywhere that has a SQL database, and you explicitly choose it, right? But you can put that behind a service and say, Okay, I've got a database service, and it's got a connection string, that's all I care about it.

Guest 0

And then you can provide layers that... So you could provide your planet scale layer, and you could also provide your neon layer, right? And then depending on whether it's prod, maybe you swap in planet scale, and for dev, you swap in neon. I like to joke about that because Neon's great for dev, but maybe not as good for prod as planetscale.

Guest 0

Well, Alchemy, you know, you could just swap that out with one line and you've got a... For prod, you're deploying a different application. So the primitive is a resource at the end of the day. A database is a resource that has a various lifecycle. For example, I need to apply migration scripts when I deploy.

Guest 0

Maybe those are generated with Drizzle, maybe they're not. It doesn't matter. We also support Prisma.

Guest 0

So you can still use Drizzle.

Guest 0

I don't think there's a really great effect ORM right now. It's probably Drizzle's effect implementation, but as they come online, we'll support those. But the primitives are really function, right? There's like a function that exposes an HTTP server over fetch.

Guest 0

That's like one primitive.

Guest 0

There's containers, which is just another function. That's a function running on a container. It's the same thing. There's databases, sandboxes, there's... What else? Streams, queues, DynamoDB tables, all those things are modeled very closely as either something that you expose to the world or something that you asynchronously process in the background. Think of it very much like you declare a queue in memory and then you have a loop that pulls from the queue.

Guest 0

We have primitives for those as well, so you can do asynchronous jobs. Yep. And then DurableObjects is the real killer primitive. I think it's going to take over the world. It's not just the Cloudflare primitive, but that little isolated JavaScript program that you can reference anywhere in the world is so powerful.

Scott Tolinski

Let's talk about that a bit more, because I feel like enough people aren't as excited about the durable objects, and it's great to hear that you are.

Scott Tolinski

Tell us about it. Why do you like durable objects so much? Why are they changing the world?

Guest 0

Well, because distributed systems are hard, and before durable objects, everything was done sort of through queues, right? You would put a queue and then you would have a job process the queue, you have to worry about, are there two running at the same time? So you really want to make sure that things are processed in a specific order. So you would choose a queue and key it by some message ID, and that's how you would guarantee the order, right? And that's really hard already when it's so much easier to think about, Oh, I've got a little node program running in the cloud and I can address it by a key and it's always the same instance. There's only one of those instances running at a time and I can connect to it.

Guest 0

I can hit it with requests or I can get a WebSocket to it and listen to it. And it also has SQLite storage, we can store a bunch of data that it needs to track its state. That little actor, it's like a little program that you can have millions of these. So you start to think about your program in terms of these little units instead of, I've got a server and it serves web requests and it's got a database. It's like, No, I've got little programs all over the place and maybe I want to give every user their own little program that's just for them, right? That's so powerful. And once you have that ability to address it by key, you can build so many cool abstractions on that. Durable workflows are trivial to build on durable objects.

Guest 0

In fact, I think even Cloudflare's R2 and a lot of their services, like their Git service, is built on durable objects. It's such a scalable model. So yeah.

Guest 0

If you're going to get excited about it for any reason, obviously agents.

Guest 0

It's the perfect way to think about modeling an agent, right? An agent runs in the background for a long period of time. You've got hundreds of sessions. Well, the easiest way to isolate a session is throw it in a durable object. You can connect to it via WebSocket, listen to everything that's coming out. You can send in messages. That's so much simpler. Again, getting back to the idea of I write and run a program, right? Everyone learns programming this way and it's so easy to understand.

Guest 0

Then we throw them into the industry, and it's like, oh, you can't do that anymore. You've gotta build distributed systems. You gotta worry about all this different stage. And it's like, oh my god.

Scott Tolinski

That's true. I I used to teach programming in, like, in person, and often what we would do is make an object, and that object could do things. It had functions. It had methods. It had state that lived inside of it. You know? Like, you just stuck everything inside of that object.

Scott Tolinski

You just told people, like, here is your nice little object that can do anything. Then you throw them into the real world, you're like, well, actually we don't store the data in the object. You have to make an API and send the data over the wire.

Scott Tolinski

It literally is that easy, they're also real time.

Scott Tolinski

You can make so much with these durable objects. Yeah,

Guest 0

we have a project. I released it recently, it's called Alchemy Domain. I mentioned it briefly.

Guest 0

Yeah. It's a model of domain driven design that compiles two durable objects.

Guest 0

And what I love about it is it lets you express the whole application in purely functional programming terms that are testable using behavior testing. So instead of testing, Oh, did I modify this row properly? Or did I send this message to a queue? No, your test basically says, If their bank account is open and they try to submit a withdrawal, then the bank account goes down by this much. Or given they had $80 then they try to withdraw $100 then it's rejected. You basically write it this way. And that compiles to durable objects in this beautiful way. So I think we're going to see more frameworks that let you think higher level in the business domain, and then it compiles to infrastructure under the covers.

Guest 0

And that's sort of really the goal of alchemy is to provide all those primitives for people to sort of give their agents the ability to talk in their language rather than some archaic AWS cloud providers language, which you don't want to think about. You just want to think about your business, right, and the rules and the policies of your business.

Guest 0

I'm trying to add more than durable object runtime to that, but it's actually hard, which speaks to the incredible power of durable objects. Once you have this concept, you can build really powerful things.

Scott Tolinski

Aside from a Cloudflare durable objects, who else is doing that? Is that Rivet the big player in that space?

Guest 0

Yeah, there's Rivet.

Guest 0

I know that other cloud providers are testing the water with it. I don't know if they're building their own, but they might be.

Guest 0

There was CellD, which is still a thing and it's going to become WorkerD, so I'm waiting for that. I'm going to add support. I would throw effect cluster in there with it. They're very close to the same thing. It's an active framework.

Guest 0

I'm not sure if they've got all the same capabilities like hibernatable WebSockets are a really powerful thing that Cloudflare has and no one seems to do as well. You definitely want that or else it's not cost effective.

Guest 0

Those are the players that I'm aware of. I wouldn't be surprised if we saw many of these. Things are so easy to build now. You see people, everyone's building their own programming languages you know? It's like Yeah. It's just gonna go bananas, think.

Scott Tolinski

Everyone's making their own version of durable objects right now. Mhmm. Let's talk about that with, being able to build absolutely anything because, like, one of the reasons I absolutely love Cloudflare is because they almost have all of the pieces. Right? Mhmm. Like, you can you can pretty much just say... Like, a lot of people are just, like, settling on the Cloudflare stack right now because they have they even have email, they have blob storage, they have image resizing, they have obviously hosting and durable objects and WebSockets and like all of these types of things. Soon, I heard they're gonna get TCP connections,

Guest 0

which is is gonna be really cool. TCP workers, please. I need them. They're to change the world, TCP workers. That's... Okay.

Scott Tolinski

Let me pause my question there.

Scott Tolinski

Sorry. My own own own... I'm curious. This is excellent just chatting with you.

Scott Tolinski

My use case for TCP and workers was I just often connect to hardware, like robots.

Scott Tolinski

Right? Like, one time I flew a drone with a React app that I built and it was all done over TCP. And I had to like, had to do it with a Node because you couldn't do that in anything.

Scott Tolinski

Use cases aside from that? Well, may have overspoken,

Guest 0

changing the world, but for me it's tunnels. Like, the one that I want to build is tunnels. Oh, so like, everyone who builds on Alchemy, you can run it locally emulated, right? But if you're building a...

Guest 0

I don't have Stripe locally emulated just yet. I will get it there. But until it is, you need a webhook.

Guest 0

So how do you get a webhook from the public internet into your local machine? There are ways to solve it, but one of the easiest ways is tunnels, But building a tunnel right now mostly requires you do a container, which has a fixed cost. I don't want fixed costs.

Guest 0

It's only there costing me money when there's traffic flowing through.

Guest 0

So that's an easy use case, but SOX proxies is the other one. So if you think about the best way to solve secrets for agents, the best solution for secrets on agents is to not give them the secrets.

Guest 0

So how do you let them connect out to other services without giving them the secrets? Well, the best way is a proxy. So you have them connect to a proxy and then the proxy injects the secret so that they can never see it, which works fine for HTTP, but there are other lower level things where it's like, Hey, how do I make sure that every traffic, every request going off the host can be injected with a man in the middle there? Socks proxy is what you need. I think you can only build that with TCP. And I want to build that on Cloudflare.

Guest 0

I want it to be global, like a global SOCKS proxy with all your credentials so that you can keep your credentials away from your agents and have sandboxes all over the world programming.

Scott Tolinski

Oh, that's great. That...

Scott Tolinski

Cool.

Scott Tolinski

All right. Back to my my original question. One of the reasons why effect is becoming so popular is because like, people don't, people don't, a lot of people aren't looking at effect, right? Because it's, it uses generators and it's kind of hard to understand and blah, blah, blah. But now that you don't have to necessarily look at the code all that much, it's, it's becoming much more popular because of the benefits of all of that certainly outweigh it. And I think it's just so cool that you can give an agent something like alchemy and say, here is a way to describe every single piece, soup to nuts. Right? And you can build you can build whatever you want. Is is that like a big

Guest 0

push for this type of thing? Yeah. It's it's crazy. Like, a year and a half ago, I literally tweeted because I I was moving from Alchemy v one to v two, and part of that push was rewriting in effect.

Guest 0

And at that time, there was a lot of pushback.

Guest 0

I was like, Bro, I'm not designing it for you. I'm designing it for agents.

Guest 0

That was controversial at the time, and now it's obvious. Every framework is...

Guest 0

All that matters now is the objective reality of whether something is better or not. Is it easier to verify? Is it easier or harder to express working software with this tool? Yes or no. Right? But before AI, that wasn't the criteria that people picked software. They picked the ones that they understood or that, you know, it was sort of like this lowest common denominator of what people could handle because, you know, these are pretty advanced ways to build software and it's like pretty unreasonable to expect everyone to get it, right? So that put a ceiling on sort of how rigorous or sort of extreme you could go with pushing things like functional programming, effectful systems, domain driven design, test driven development, all that sort of stuff, right? Because the human was the limiting factor. That's gone now. We have mechanical machines that can push out pretty good software and don't care and don't have the same biases as humans.

Guest 0

So I think that's why you're seeing effect explode because effect reduces the surface area for mistakes and has composability, so you get less spaghetti but also less mistakes.

Guest 0

If it compiles, you know more about the correctness of your program. That's a good quality for agents.

Guest 0

Alchemy builds on top of that. But also, some of the really tedious and boring ways of programming are so fun now, right? Not everyone likes to do everything in a purely functional programming way, right? It's mind bending. But now AI spits that out, and when it does, it's easily testable, which is what you want. So I'm telling people, start judging your frameworks through how well they can be tested. Stop judging them through... You're used to judging them through the terse ness. You know, how much can I squeeze into one file? That's out the window. Now you care about how well can agents verify it.

Guest 0

So that's changing, and alchemy is all about that. I want the infrastructure to be verified by the Type system. I want the test to run all the time quickly on the real system.

Guest 0

I want the test to be defined in terms of behaviour, not mechanical details, not low level details.

Guest 0

And I want that entire verification loop to be exposed to the agent and to go all the way through to production.

Guest 0

That is the goal of alchemy. And I don't think alchemy could have succeeded before AI.

Guest 0

It's too much. I've tried to build these things for five, ten years, and you're always pushing up against the limiting... Humans are not willing to adopt so much change, but now we're in an era where change is cheap, which is great. Can

Scott Tolinski

you talk a little bit more about observability? Because I know that's a huge benefit when you use effect.

Guest 0

Yeah. So Effekt gives you basically otel for free. If you do otel without Effekt, it is extremely annoying.

Guest 0

But the Effektful functions and the way they compose gives you otel for free. We provide exporters, right? So you want to export to Acxiom, right? Well, that's an Alchemy resource.

Guest 0

So you just go, you know, axiom.telemetry, and you provide that to your worker. And now we deploy the Acxiom collector, get the secret, put that in the worker and connect the exporter, and you you didn't do anything. You wrote one line of code and you've got telemetry, which is awesome. And then you also say, Oh, I want a dashboard.

Guest 0

Well, you just say, Hey, agent, give me a dashboard. It writes that as an Alchemy code, which is, you know, yield star Axiom. Dashboard. Boom. So all my dashboards are managed in infrastructure as code. So Efec lets you get that from your runtime and Alchemy lets you operationalize it, right? Dashboards, monitors, alarms, all deployed as part of the same program.

Guest 0

I think Alchemy should be described as a no compromise way to build software, right? You're moving fast, but not at the cost of prototype quality. You're getting high quality code and you're also getting monitoring and alarming and everything out the gate.

Guest 0

Hit the ground running with something that's scalable to maintain rather than you know, have a bunch of shitty code that's hard to maintain. Sure. You demonstrated the proof of concept, but now what do you do? Right? Alchemy takes away that compromise. Beautiful.

Scott Tolinski

I will do a little shameless plug for Sentry because we are brought to you by Sentry, and there is effect. You can hook this, all of this stuff right up to Sentry and get all of that data pushed right into it. And you could figure out exactly what's going wrong, whether it's obviously errors and stuff, but it could be performance and anything that could go wrong with your application,

Guest 0

that stuff will show up in Sentry. It's a great spot to push that stuff. Yeah. I brought up Acxiom just because it's the only... It's the one that we lazily chose, and I haven't bothered to add the others yet, but I consider them all in scope. So I'm doing a push right now for sandboxes where I'm building six sandbox providers at once.

Guest 0

Eventually,

Scott Tolinski

I'll do observability providers all at once. Man. Take your pick, whichever one you want. What sandbox providers are you working on right now? What's out there? What are your options? I know CJ, part of Syntax, he just released his own called DevVM, which is spot to run a little

Guest 0

sandbox on your computer, and I've been using that lately. Man, there's there's so many. And AWS just came out with a new one two days ago or something that I'm adding. But I'm starting with...

Guest 0

What have I got? I think Archel is probably the most interesting one that that I found.

Guest 0

Archel, Daytona, E2B, I threw in boat, and I also added modal in there.

Guest 0

Not that much rhyme to reason, just like, Hey, let me pick the best ones that I know so I can get my foothold in and figure out how these things work.

Guest 0

Archul is most interesting to me because it's not really sandboxes, it's more file systems. So you've got a file system that you can run a command along.

Guest 0

Rather than spin up a VM, which is its own file system and everything has to go to the VM, you've just got a file system and you can like... If it needs 100 CPUs to do the task, then they all get servicely allocated and thrown away.

Guest 0

Rather than you have to pick the size of the VM for every task that might run on it, you can actually pick a different amount of CPU and resources per task.

Guest 0

So maybe Bash needs two CPU and maybe GetFile needs none.

Guest 0

So you get this beautiful serverless experience over a file system that comes with downsides because now you don't have a persistent virtual machine with processes, which I think agents love.

Guest 0

Boat is interesting because they're doing a little bit in the space of the credential proxy that I mentioned before, which I think is No credential should be in the sandbox. That's obvious.

Guest 0

And I think they're doing the most there, although they're not doing as much as I hoped. So I'm sort of looking at that space of, let me build all the sandbox providers, and then I'll build the proxy and give you the ability to deploy and manage your own proxy. You shouldn't even trust both with your proxy.

Guest 0

You should own your proxy, right? It's your credentials at the end of the day.

Scott Tolinski

So those are, that's- Unfortunately, we've learned that over the last couple of weeks of, yeah, these providers you want to trust with your credentials, but there's a lot going on right now, unfortunately, lot of them are getting hacked.

Guest 0

Yeah. I don't know if anyone's secure right now. That makes me worry a lot, especially about being an open source framework that people are building services on. It's like, oh, man. I need I need to I need to put like those, what is it, Astra Cyber on it and like go through all those things. Security is a big worry right now. So the more you can give developers the power to own their own secret storage, you know... I'd rather trust Cloudflare with secret storage than I would trust a small startup with secret storage.

Guest 0

Totally.

Scott Tolinski

So obviously, you've been building this absolute monster of a project.

Scott Tolinski

Really interesting. I'm very curious what your current agentic development stack looks like. How do you tackle writing software? I'll just leave it at that.

Guest 0

Oh, God.

Guest 0

Test driven development, I would say. I care a lot about conventions and patterns.

Guest 0

Don't like Next. Js, but I like that they push very heavily a file system convention. I think you see that in Rails as well. I'm a big believer in single file responsibility.

Guest 0

So I try to have one file, one test, they all go together, and I try to do everything with test driven development. You can see that in Alchemy, like that's also part of the product. It's like I think everyone should be doing test driven development.

Guest 0

Whenever I have an issue with Alchemy, it's always...

Guest 0

I go to T3 code, so I use T3 code primarily because I need access to multiple harnesses and I want to use the subscription, right? And I think T3 code solves that really well and it's a good product. I like it. But I'll just open a session and just say, Hey, repro this test, with and then fix and open a PR. That's really all it takes. And then like the agent's MD and the skills are there to sort of give it the tools it needs. The hardest part is actually managing the community contributions at this point. Like, I'll close 50 PRs and 60 will open overnight.

Guest 0

So I'm trying to thread the needle of I want people to contribute. I don't... Like, we're having this internal debate of should we turn off pull requests and have it be issues on. I literally had this on my show notes to ask you about. So please tell me what you Well, like the cost of fixing a pull request is almost the same cost of just building the issue.

Guest 0

I treat it as signal, it's still good signal, and I have skills that basically transform pull requests in the way they should be. I still haven't figured out why they don't come out the way. Because if I put in the same prompt, I'm pretty sure I get a better result. Something strange going on there. But yeah, unfortunately, when I started to release more and more, I started to get pull requests that pushed beyond where I had seen the project, and now it's like I'm slowing down. It's like I'm going off in this direction building the vision for the project, and now I'm getting inundated with ideas.

Guest 0

Not just bug fixes, but ideas.

Guest 0

And they can't be fixed with AI. I have to think about those, and I can only think about one thing at a time, right? So that's become really difficult. Building stuff is so easy at this point. I'd say Alchemy is one of the most scalable software projects right now because it's not like a million different problems.

Guest 0

It's a million copies of the same problem. You're building a resource. There's only so many ways to build a resource, and they all roughly look the same and the conventions and the patterns are there. So I can very quickly be like, add boat. I could add sentry. I could add... I can build features at the whole product scale now rather than tiny features. But community is where...

Guest 0

Why I'm building the sandbox is because I'm going to try and automate the whole thing. Is t three code is good, but I need my sandboxes in the cloud because I regularly run out of memory until TSRS came out. I don't know if you've talked about TSRS on the stream, but...

Scott Tolinski

Listeners, that's the TypeScript Rust port.

Guest 0

So good that honestly saved my project in so many ways because TypeScript would use 20 gigs of memory to compile. So if I had two agents compile at the same time, it would blow up and TSRS dropped that to three gigabytes, so so much more scalability. Wow.

Guest 0

But still, I need it in the cloud.

Guest 0

I need every pull request to be instantly audited and triaged and I think a lot of people are starting to experiment with that.

Guest 0

And I think you can see it happening.

Guest 0

Agents are going to go through this real quick iteration, and eventually there'll just be a bunch of libraries that everyone uses and agent products.

Guest 0

I don't know, I think there's a risk there that they might not have as much longevity as you might think because it's just code at the end of the day. The only thing that keeps people to harnesses is the subscription, at least for me. I would probably ditch my harness if I could run Claude Max subscription in my own harness and not pay $20,000 But yeah, I don't know.

Scott Tolinski

That's how I that's how I build at the moment. Very simple, like nothing crazy complicated, just agents, envy, and skills and t three code. Yeah. So you're like primarily just like sitting down, you're thinking about what should I work on right now, and you're typing in the box and having the agent rip on that. Don't have any sort of like, I know you said you want to, but you don't have an automated software factory where you're just constantly scanning for improvements or anything like that?

Guest 0

Nothing like that. I describe the... I call it the flywheel from Distilled to Alchemy is the only automated thing we have, but it can be automated in one session. It produces a refined SDK spec. So if you go look at... We have a thing called the wall of shame on Distilled.

Guest 0

The thing you need to know, and I don't think most people know this, is that most cloud companies are really bad at defining specs for their API to the point where they're just blatantly wrong. They're wrong and they're incomplete.

Guest 0

And for us to be able to scale alchemy and infrastructure as code to all services, we had to solve that problem.

Guest 0

We can't rely on them to do it correctly. So we have an automated process that generates a spec from an API and then develops the whole alchemy side as a way to find all the problems. So it finds all the inconsistencies in the spec and fixes them. And that's a little flywheel that I tested. I tested it at scale, it generated all of AWS. That's the scale it can go to.

Guest 0

So that's an automated process. I don't have anything like issue to pull request automation yet.

Guest 0

That would probably be easy to do, but I'm pretty invested in building it myself. Yeah. You know? Build it with alchemy. I'm pretty obsessed with the idea of self improving systems.

Guest 0

And I think alchemy is sort of the foundation of that because it's declarative.

Guest 0

I should be able to build the system that builds alchemy, I'll build that with alchemy.

Guest 0

And then I can give that to anyone and they can fork it and deploy it to their own environment because it's alchemy, right? Because alchemy can be deployed anywhere.

Guest 0

So then that system can work on improving itself, deploy previews of itself, test itself, and then upgrade itself. So I'm very interested in that. So I could go use something like T3Codes webhooks to do some automation, but I want scale it with Alchemy. That's where I'm going.

Scott Tolinski

And what subs are you paying for or maybe getting comped right now? And you mentioned Claude?

Guest 0

Yeah. I'm a Claude Maxie for sure. I have four Claude Max subscriptions and I have one...

Guest 0

I think it's okay to talk about that. Theo talks about it all the time.

Guest 0

So if I get owned, other than he should get owned, I have one GPT subscription. I have a Grok subscription that I was trying a little while ago because it was the Fable 5.0 and it was just costing too much money.

Scott Tolinski

But Opus 5.5 just destroyed everything. It's just so much better than every other model. It is. So like, I'm just default Opus 5.5 almost everything right now. I haven't touched... I was looking at my thing, you get, like, special fable butt budget. I'm at 0% Fable. Are you just using Opus 5.5 for everything? Yeah. Opus 5.5 for everything. Maybe I'll throw an Astra in there for a debug. I think Theo's counsel skill is pretty interesting.

Guest 0

I think we'll start to use them together more, because they have different skills. I'm testing Fable right now, 5.2, on some design.

Guest 0

I'm always looking for something that has good design sense. And Claude has been, by design, mean, code design, actual front end design, architectural design, developer... Code and developer experience design.

Guest 0

And Opus 5.5 is phenomenal at it, I'm hoping that Fable's even better, but I don't see much of a difference at the moment. Interesting. Opus basically made Alchemy fully automated at this point. Like, I Wow. I can fix any issue pretty much automatically with Opus, and it does a better job than I would if I did it by hand. So, yeah. That's amazing.

Scott Tolinski

CI seems to be the bottleneck for absolutely everybody right now. Mhmm. I know Alchemy can be used to create the CI, you probably have some thoughts on that.

Guest 0

Yeah. I think there's also a lot of crossover between sandboxes and CI. So we are fortunate to be sponsored by Blacksmith right now.

Guest 0

They're great because they sped up GitHub Actions.

Guest 0

With no effort, they just sped up GitHub Actions by 50%, 60%, and they sponsor us, which is awesome. So shout out to Blacksmith.

Guest 0

That's cool.

Guest 0

But I still find them too slow.

Guest 0

I think CI needs to be instant, and that's where we're going. I think it's the exact same problem as sandboxes.

Guest 0

It's, Hey, I've got a project, it's got a Git repository, and I basically need to boot, install, and compile as quickly as possible. So I don't know why any of these CI services don't let me do that once and then put it in CI and then boot straight into a fully compiled project.

Guest 0

So I'm interested in playing with the sandbox providers for CI replacements.

Guest 0

They don't typically have Windows and Mac, that's sort of where that falls down is you're stuck in a Linux environment.

Guest 0

But yeah, so I'm very interested in that space. Alchemy integrates into your CI.

Guest 0

I do think eventually I might build Alchemy CI and expose that as primitives as well as a service.

Guest 0

That's something that I'm interested in because alchemy at the end of the day is a CI project.

Guest 0

It's about deploying and tearing down and upgrading software and testing software. So CI is a natural place for us. And I think you can see that this problem with the inefficiency.

Guest 0

I actually think npm downloads is a great metric for the inefficiency of CI.

Guest 0

You've seen there's this npm download inflation right now. Yeah, everything's whoop. Whoop up. Yeah, everything's just up and to the right. That's because why are we installing dependencies every time? I still haven't figured out why this is the case. And I'm also...

Guest 0

If I go and solve that, I'm just going to hurt alchemy because now instead of downloading alchemy, you do it once, right? There's sort of this negative incentive to fix the problem. Your own npm downloads will go down, will drop. Exactly.

Guest 0

If you remove that inefficiency.

Guest 0

Maybe there's good reasons for it, but something is wrong there. It still takes minutes to do CI. I think we need to get into seconds level.

Scott Tolinski

And that's... We were talking to Kyle Daigle, COO of GitHub, about that as well because we're just like, is, is, is the solution is just faster computers or.

Scott Tolinski

Is the solution to a lot of this stuff? Like he mentioned, I think it was called like proof of work or like black box testing, where you don't actually care about what's going on inside of it. It's just like what comes out the other end if it looks like what you want. Do you have any thoughts there, or do you still think, I know your big TDD, just npm is all and running all the tests is the way.

Guest 0

Yeah, I think you want to push it all as far upstream as you can. How much can you test locally? How much can you do with unit tests versus having an agent click around in an app? If you go look at alchemy's copy, we sort of model it this way of the first feedback loop is the compiler.

Guest 0

How much information does a successful compilation tell you? I would argue with Alchemy, it tells you more than any other framework because it tells you not just that your business logic is probably correct, it also tells you that your infrastructure is correct and it will deploy. That's great, right? So you've now removed something that needs to be tested and made it to a compile error. So more and more pushed upstream and verifiable with tests or I'm interested in formal verification, but I don't know enough about it to comment on it. Yeah, so I'd say push more and more upstream and paralyze, right? And let agents do all that and then have CI be the last check and then just optimize it to be as quick as possible. That's about as far ahead as I've thought about it. Yeah. But better programming models. I don't think we're going to get there with hobbling together software that loosely fits together and agents making up how to write tests. No, how much more can we express in the framework I think is important. So that's why alchemy, I'm taking strides into domain driven design that I mentioned because it's purely functional.

Guest 0

It can be tested with behavior driven tests, which agents are great at writing and humans are good at reading.

Guest 0

I'm pretty sure because it's purely functional, it can be formally verified.

Guest 0

So I could probably take something like Lean and say, Hey, formally verify every possible state of this state machine.

Guest 0

So I think you're going to see way more state machine programming because it's not so loosey goosey. There's steps that can be reasoned over their inputs and their outputs. And if you can reason over the inputs and the outputs statically with a TypeSystem or with Lean or whatever it is, then you don't need to run tests, right? It's proven that it'll behave correctly. Yeah.

Scott Tolinski

Yeah. You're right, actually. That that that's a really good point, right? The test fast.

Scott Tolinski

Yeah. It's all there.

Scott Tolinski

That's great. Okay.

Scott Tolinski

Else we haven't hit on that you you like to talk about?

Guest 0

People come into Alchemy and they view it through the lens of, It's just a rewrite of Terraform. It's just a rewrite of Pulumi and SST.

Guest 0

And in a way, it is that.

Guest 0

But when I released Alchemy Domain, everyone was a little bit surprised.

Guest 0

Some people were like, Holy hell, this is great. And then other people were like, This doesn't belong in Alchemy. Why does an infrastructure as code tool have domain driven design? And the answer is because the goal is to basically build a language or not programming language, but a framework that it can express the entire company.

Guest 0

That's kind of the goal.

Guest 0

Everyone's talking about self driving companies and all that sort of thing. I think alchemy is the way to actually do it. I want to express not just a little app, but a whole business in code. It's email, it's DNS, it's payment policy, it's payroll, it's founding of the company, it's cap table, it's human resources infrastructure, it's backend services, it's products and services, all of that. What would it take to be able to go from a prompt to a working company or a working product and service, right? Alchemy is a declarative framework for all of those concepts. So representing whole business domains and products and services as code that is opinionated and type checks and is verifiable end to end. That's what Alchemy is. It is not a slightly more easy to use SST.

Guest 0

It's not a slightly more TypeScript friendly infrastructure as code. You can use it for that, but it is a bunch of layers on top to optimize agentic programming. That's what Alpha is. Yeah.

Scott Tolinski

An entire business, HR, payroll, that's unreal to think about it. To think that we might actually get there like, in a year from now, we might be like, hey. Yeah. You wanna start up a business? Like, just npm install this thing.

Scott Tolinski

And, like, obviously, you get your product, but you get, like, the rest of the business as well.

Guest 0

Yeah. It's crazy. There are APIs out there for founding companies. So you could actually found a company over API. I'm like, oh, I should build a resource for that. Would be... A bank account. Because what do have to do? Okay. Give me... Found a company, get my tax records. Okay. Create a Mercury account and set up a treasury and put whatever it is you need. How am I going to run my email? Maybe I go to Cloudflare email, I need my email, whatever.

Guest 0

Set up my G Suite.

Guest 0

All of these things are annoying. I think if someone goes and builds an agent that automates it or something, it's the wrong product.

Guest 0

They're so easily representable in Alchemy, it's absurd. It's just a resource for that thing, and then you connect them together.

Guest 0

What does it take to build forkable companies? Has anyone thought about this? I want to fork your company and build it. And I think of these crazy ideas. Let's imagine alchemy gets there. It will, by the way, where you can express all those things in one program.

Guest 0

I sort of think about this trend of software is moving from this very static professional discipline where we lay down these pillars of technology and they kind of don't move, right? Very static.

Guest 0

And for me, software is changing and becoming more like content, where I like to use the example of a dance goes viral on TikTok and there's like 40 different remixes of the same dance or the same sound or whatever. That's the future of software in my mind. If someone comes up with an idea on the weekend and just prompts an AI, here it is. And then someone forks that and mixes it with two other ideas and three other ideas and mix, match, mix, match, mix, that's what I think software is going to become.

Guest 0

And alchemy is the foundation for making that possible. Because to make that reality, you need to be able to not think about the external world. The only thing that should exist would be the code.

Guest 0

Anything outside of it should not be considered. So I can take your Alchemy application and deploy it on my own. Once you have that, you can fork whole services, whole products, whole companies very easily and deploy them. And then if you just take that one step further and build a software factory with that, so you build a software factory that's forkable, clonable, tunable, now you've got self improving systems, right? So that's the direction. That's where I want to go to, is solve this foundational declarative language for building services and companies, and then just go one layer up and just let let it go wild as like a network. Beautiful.

Scott Tolinski

I like the dream. Let's move into the last section of the episode, which we call Sick Picks and Shameless Plugs.

Scott Tolinski

Do you have a sick pick for us?

Guest 0

Yeah. Well, sick pick, I don't know, has to be probably just becoming a dad, I guess.

Guest 0

You told me at the start of the call that Michael Arnaldi said that. Yeah. Respect it. It's such an awesome thing. I thought it would be so disruptive to my life and how am I going to build my company and build my product this, but it's actually made everything better. Becoming a dad, I would encourage everyone to It's have hard work, it's incredibly transformative,

Scott Tolinski

but it's the best thing you can do. Nothing's been better for my career than having kids. Like, it's such a kick in the pants. It's obviously exhausting and takes all of your time. It's it's frustrating, all of those things. But just having...

Scott Tolinski

If if anyone's listening and be like, I'm kinda busy with my career. I don't know. Like, having to provide for somebody else is is such a huge kick in the pants to get everything dialed in. I think it may be smarter, to be honest, you know, or at least maybe more efficient for sure. That's... It it works. I have four. That's that's why I'm so successful successful and and smart. Smart. Right? Right? It's It's just just the the more kids you have. Yeah.

Guest 0

All right. Well, I've got to keep going then, man. Yeah. And on the shameless plug...

Guest 0

Yeah. I think I would shout out Fold Kit by Devin Jameson. He recently left his job full time to go full time on Fold Kit, so best of luck to him. I think it's a cool framework. I sort of view it as that little icing on the cake of what I'm trying to build because I'm not a front end guy, right? I don't have much experience in front end, I'm a back end person. And at the moment, Alchemy has automated everything up to the API, right? But I love Fold Kit because it's so aligned with the idea of building frameworks for machines instead of humans because it's behavior driven testing and it's pure functional programming, state machine. It's nothing like React and Solid, which are awesome frameworks themselves. But I think the fact that it's different and humans wouldn't do it traditionally is actually a signal now. I think that's a high signal. So I shout out Fold Kit. We

Scott Tolinski

were talking to Michael about Fold Kit, and I was was like, oh, so is it JSX? He's like, no, it's functions. I was like, oh, so like tag template literals.

Scott Tolinski

No. He's like, it's functions. It's functions all the way down. It's just functions.

Guest 0

Which is so good because it's crazy. JSX, as much as I love it visually from a perspective, is actually annoying.

Guest 0

It's hard to build an embedded UI because of JSX and because of React and all that sort of thing. If we could just throw all that away and just have functions, that's great. And yeah, I would not write code this way, but AI doesn't care. And AI, if you can constrain it into thinking about state machines and pure functional programming, it will scale a lot further than thinking about tangled together code that has no structure or reason to it. So Functional programming is where it's at. We've known this for a hundred years now. It's not like it's news to people. It's just that the skill ceiling is... The skill floor is just so high now. That's the difference. Yeah. Beautiful.

Scott Tolinski

Cool. Well, thank you so much for coming on. Appreciate all your time. I'm very much excited. I'm gonna build my next thing in alchemy and Awesome. Going all in durable objects.

Guest 0

That's the way, man. For sure. Yeah. All in on effect and durable objects. Like, when when you mix the two, it's gorgeous. Yep. It's dangerous. Cool. Alright. Thanks again, Sam. Thanks. Appreciate it.

Share