# "What it takes to set intelligence free — Fabian Hedin, CTO, Lovable" <!-- ref: @content/youtube/aie/what-it-takes-to-set-intelligence-free-fabian-hedin-cto-lovable tags: [long-running agents, agent runtime, sandbox checkpoints, verification loops, Lovable architecture, product lessons] version: 2 updated_at: 2026-11-22T09:50:17.846Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=pZWPq_ZAmM4)** # What it takes to set intelligence free — Fabian Hedin, CTO, Lovable *Synthesized from Fabian Hedin's talk on AI Engineer, 2026-11-19.* Fabian Hedin, co-founder and CTO of Lovable, a platform for building, running and deploying software, gives a conference talk on the architecture behind Lovable's long-running agents. ## Core Thesis Fabian argues that agents were the right bet but the wrong bet in 2023: models were not smart enough, and the multi-agent framework Lovable built nearly bankrupted the company before they went back to a single-call design. Now that intelligence is sufficient, he says, agents work, and making them run for hours requires three pieces of infrastructure: a resilient agent runtime, fast cloneable computers, and layered verification loops. ## Key Insights - **History.** The 2023 product, then called GPT Engineer, made one LLM call per user message. Lovable then built a sophisticated framework with a main agent spawning specialized implementation, frontend and backend agents that exchanged messages, and it made the product worse. At the end of 2024 they returned to a simpler system with a few small models for retrieval and one main model writing to the user and generating code. - **Platform scope.** The agent can browse to test what it builds and connect to GitHub; a cloud layer supplies authentication, databases, storage, backend compute, security scanners, backups and logs; a business layer helps with payments, email, SEO, ads on Google and Meta, and analytics. Their thesis is that users should not have to care about code the way they once did, because the result is a product or business. - **No time limit.** Agents were capped at 30 minutes for a while; now there is no limit and he expects runs of 10 hours or more. The system processes over a billion tokens per minute. - **Runtime design.** Each agent has an inbox that people, other agents or schedulers can write to. The agent's memory is a "trajectory", an append-only log in which each event points to a parent, so trajectories can be branched like Git (not merged) for parallel agents. The prompt is derived from the log, which allows compression tuned to each model's context length. A debugging tool replays 156 events by dragging a slider. - **Stateless workers.** The process that runs the agent keeps no state between steps and writes everything to the log, so Lovable can deploy about 700 times a day (roughly every two minutes) without interrupting a ten-hour run, including urgent patches such as a Linux kernel vulnerability. - **Computer checkpoints.** A shared "golden" checkpoint captures disk, RAM and running processes of the base operating system and dev server, and copying it takes about 230 milliseconds. A checkpoint is saved after each agent step so a machine can resume in under a second, and shut down after about 10 minutes of absence. Machines can be branched for the drafts feature using copy-on-write RAM and streaming memory so that startup does not wait for all memory. - **Vite fork.** They rewrote Vite in Rust, doubling speed, cutting preview time from 40 to 3 seconds and reducing memory use by 6.5 times by dropping Node.js. - **Verification.** An inner loop runs within the agent's turn (build, lint or type errors, runtime errors in preview, headless-browser exploration). An outer loop runs between steps using user behavior, automated A/B tests, and business metrics such as conversions and payments. ## Actionable Takeaways 1. Separate the agent's durable state from the process that executes it, so you can redeploy workers without killing long runs. 2. Store history as an append-only, parent-pointer log and derive prompts from it per model instead of keeping one fixed prompt. 3. Checkpoint the entire computer (disk, memory, processes) after each step to allow instant resume and cheap branching. 4. Use copy-on-write memory and memory streaming to make sandbox cloning fast. 5. Give agents both inner-loop checks (build, lint, type, runtime, browser) and outer-loop feedback from real users and business metrics. ## Notable Quotes > "you don't have to care about code the way you did before." — Fabian Hedin > "in the end, it's not the code itself that matters." — Fabian Hedin > "We just made the product worse." — Fabian Hedin --- *Related: `@content/youtube/david-ondrej/build-anything-with-tmux-here-s-how` · `@content/youtube/david-ondrej/hermes-agent-is-crazy-180-000-github-stars` · `@content/youtube/nate-herk/opus-5-5-just-changed-video-editing-forever-free-skills` · `@content/youtube/aie/finops-for-ai-agents-who-spent-all-the-tokens-tisha-chawla-susheem-koul-microsoft` · `@content/youtube/sean-kochel/claude-code-creator-write-loops-not-prompts`* --- *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).*