# What it takes to set intelligence free — Fabian Hedin, CTO, Lovable
<!--
ref: @content/youtube/aie/2026-11-19-what-it-takes-to-set-intelligence-free
tags: [agents, long-running agents, agent runtime, sandboxes, checkpointing, verification, vibe coding, infrastructure]
version: 2
updated_at: 2026-11-21T06:23:59.210Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=pZWPq_ZAmM4)**


*Synthesized from Fabian Hedin's talk on AI Engineer, 2026-11-19.*

Fabian Hedin is co-founder and CTO of Lovable, a platform for building, running and deploying software; he presents solo at the AI Engineer event.

## Core Thesis
Fabian argues that Lovable was right in 2023 that agents were the future but wrong about timing: with GPT-4-era models, multi-agent architectures made the product worse. Now that models are smarter, long-running agents work, but only with three pieces of infrastructure: a durable, Git-inspired agent runtime, fast checkpointed computers, and tight verification feedback loops.

## Key Insights
- **The failed first attempt.** In 2023 the product (then "GPT Engineer") made one LLM call per user message. Lovable then built an elaborate multi-agent framework with a main agent spawning specialized agents (initial generation, frontend, backend) that exchanged messages. It made the product worse, and the company nearly went bankrupt. At the end of 2024 they reverted to a simple design: a few small LLMs to retrieve knowledge, then one main LLM writing to the user and generating code in a single message.
- **Agents are back in production.** The new agent system runs at over a billion tokens per minute. Agents were previously capped at 30 minutes; now there is no limit, and runs of 10+ hours are imaginable.
- **Product thesis.** Users shouldn't need to care about code; the result that matters is a product or business. Beyond the coding agent (with browser testing and GitHub), Lovable provides cloud pieces (authentication, databases, storage, backend compute, security scanners, backups, logs) and business pieces (payments, email, SEO, Google and Meta ads, analytics for conversions).
- **Agent runtime: inbox.** Each agent has its own inbox. Users, other agents, or scheduled wake-ups can all send messages, and the agent copies them into its trajectory.
- **Agent runtime: trajectory as Git-like log.** The trajectory is an append-only log where each event points to a parent event. Two events sharing a parent create a branch, so parallel agents can run from any point without duplicating shared history. Unlike Git, trajectories can't be merged (merge semantics are unclear), but agents can still communicate.
- **Prompt separated from history.** The trajectory records everything (every tool call, successes and failures, platform events). The LLM prompt is derived from it, so compression and summarization can be tuned per model and context length.
- **Debugging tool.** A slider replays the trajectory; in the demo, 156 events let the interface reflect any moment in history.
- **Stateless processes.** Because history is stored separately, the processes running agents are nearly stateless and save to the trajectory after every step. Lovable deploys 700 times a day (about every two minutes) without interrupting 10-hour tasks, and can patch things like a Linux kernel vulnerability quickly, since another process can pick up work.
- **Computer checkpoints.** A shared "golden" checkpoint holds the OS, system services, standard tools and a ready dev server, capturing disk, RAM and running processes. A new project gets a copy in about 230 ms. A checkpoint is saved after each agent step, so a computer can start in under a second, be shut down after ~10 minutes of user absence and resume instantly, even with in-flight requests preserved.
- **Branching computers.** Like trajectories, computers can be branched, which powers the "drafts" feature, with potentially hundreds of simultaneous copies.
- **Optimizations.** Copy-on-write for RAM makes a copy cost no memory until written. Sandboxes need only a few hundred MB, but streaming from cold object storage takes seconds, so memory streaming lets the machine start before all memory is loaded (OS memory first).
- **Vite rewritten in Rust.** Lovable forked Vite and rewrote it in Rust, dropping the Node.js dependency. Results: code ran twice as fast, preview time fell from 40 to 3 seconds, and memory use dropped 6.5x. Controlling the apps also gives control over memory writes, improving copy-on-write.
- **Verification as feedback loops.** The inner loop runs within an agent turn: build success, linter and type errors, runtime errors in the preview, and a headless browser inside the computer. The outer loop runs between steps (when control returns to the user): visitor behavior, user feedback, automated A/B tests (e.g., copy changes vs. conversion), and business metrics such as payments and conversions, so the agent optimizes the business and not only the code.
- **Multi-agent works now.** Agents can each have their own computer instance or share one, and agent-to-agent coordination now works at scale.

## Actionable Takeaways
1. Don't build elaborate multi-agent systems ahead of model capability; test whether current models can support the complexity, and fall back to simpler designs if the product gets worse.
2. Store agent history as an append-only log with parent pointers (Git-style) so you can branch parallel agents without copying shared history.
3. Keep the prompt separate from the full event log so you can compress or summarize differently per model and context length.
4. Keep agent processes stateless and persist after each step so you can redeploy frequently (Lovable: ~700 times/day) without interrupting long runs.
5. Checkpoint the whole sandbox (disk, RAM, processes) from a "golden" base image and after every agent step, enabling sub-second restarts, idle shutdown and branching.
6. Use copy-on-write RAM and memory streaming to make sandbox copies and startup cheap.
7. Profile your dev tooling: replacing Vite/Node.js with a Rust binary cut preview time from 40 s to 3 s and memory 6.5x.
8. Build both inner-loop verification (build, lint, types, runtime errors, headless browser) and outer-loop feedback (analytics, A/B tests, conversions, payments).

## Notable Quotes
> "We were definitely wrong about the 'now' in 2023." — Fabian Hedin

> "We just made the product worse." — Fabian Hedin, on the first multi-agent framework

> "It's not the code itself that matters... what really matters is the results." — Fabian Hedin

---

*Related: `@content/web/huggingface/2026-11-30-leap-lean-as-policy-verifiable-robot-control` · `@content/web/huggingface/2026-11-29-boundary-aware-policy-learning-robot-manipulation` · `@protocol/shell-and-runtime-traps` · `@protocol/silent-signal-and-evidence-traps` · `@content/web/huggingface/2026-11-27-os-omni-computer-use-benchmark`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*