What it takes to set intelligence free with Fabian Hedin, CTO, Lovable
Lovable's central claim is that after years of failed and overcomplicated attempts at multi-agent systems, the underlying LLM intelligence has now matured en
By Sean WeldonWhat It Takes to Set Intelligence Free: Agentic Architecture at Production Scale
Abstract
This synthesis examines the evolution of production agentic architecture at Lovable, an AI software-building platform, from 2023 through the present. The central claim advanced is temporal rather than architectural: sophisticated multi-agent systems failed in 2023 not because the designs were unsound but because the underlying model intelligence was insufficient, and the same class of design now operates reliably at scale. Evidence is drawn from three infrastructural layers - an agent runtime built on a Git-inspired append-only trajectory log, a microVM sandbox provisioned from a "golden checkpoint" with copy-on-write memory forking, and a two-tier verification loop spanning build-time signals and production business metrics. Reported operating characteristics include throughput exceeding one billion tokens per minute, 230-millisecond project provisioning, and 700 deployments per day without interrupting long-running agent tasks. Implications are drawn for teams designing durable, long-horizon agent systems.
1. Introduction
Agentic systems - software in which a large language model (LLM) iteratively plans, calls tools, observes results, and continues without per-step human direction - have followed a non-monotonic adoption curve. Early enthusiasm in 2023 produced elaborate orchestration frameworks that frequently underperformed simpler designs, prompting a period of architectural retrenchment, followed by renewed complexity as frontier model capability improved.
The case examined here, drawn from Lovable CTO Fabian Hedin's account of the company's build history, traces that full arc within a single production system. The central thesis is that agentic architecture is capability-gated: the viability of a given design depends less on the elegance of the orchestration than on whether the underlying model can sustain long-horizon reasoning, and on whether the surrounding runtime and sandbox infrastructure can make long-horizon execution durable and verifiable.
Section 2 establishes the historical trajectory of the system. Section 3 analyzes three infrastructural layers - runtime, sandbox, and verification - in turn. Section 4 extracts transferable technical findings. Sections 5 and 6 discuss implications and limitations.
2. Background and Related Work
The platform originated in 2023 as GPT Engineer, whose architecture consisted of a single LLM call per user message. This proved adequate for single-page applications but did not generalize to larger systems. A subsequent redesign adopted a hierarchical multi-agent framework in which a main agent spawned specialized front-end and back-end agents that communicated with one another - a pattern with contemporaneous support in the research literature on multi-agent orchestration.
That design failed. The retrospective assessment is unambiguous: the approach "didn't work at all" and "made the product worse." The diagnosis offered is that the premise was correct but the timing was not: "we turned out to be true that they were the future, but we were definitely wrong on the now piece in 2023."
In late 2024 the system was deliberately simplified: small LLMs handled knowledge retrieval, while a single main LLM wrote prose to the user and code to the repository simultaneously. This configuration was reliable and performant, but agent autonomy was bounded to roughly 30 minutes of continuous work as a reliability guardrail. The present generation removes that bound, reinstating sophisticated agentic orchestration at production scale with unbounded task duration and a stated design target of sessions exceeding ten hours.
3. Core Analysis
3.1 Agent Runtime: Trajectories as an Append-Only Log
Each agent is modeled as having a separate inbox, receiving messages from humans, other agents, or scheduled system wake-ups. Incoming messages are copied into the agent's trajectory - a task history modeled explicitly as a Git-inspired append-only log, where each event points to a parent event. This structure supports forking: two events can point to the same parent, allowing parallel agents to spin up without duplicating shared history. Unlike Git, trajectories cannot be merged - "we cannot merge agent directories, but we can spawn them out."
The trajectory records the complete history of tool calls and their success or failure, kept separate from the prompt actually fed to the model. This separation enables flexible summarization and compaction strategies that can be tuned independently of the recorded history, and it underlies a debugging capability in which engineers scrub through a slider across recorded events (e.g., 156 events) to replay UI state at any point.
Critically, agent processes are stateless between turns and tool calls, persisting only to the task history. This statelessness is what permits 700 deploys per day - roughly one every two minutes - without disrupting long-running agent tasks, since a redeployed process can resume from the trajectory rather than from in-memory state.
3.2 The Computer: Sandbox Provisioning via Golden Checkpoints
Each agent operates against a sandbox, referred to as "the computer," provisioned from a golden checkpoint containing the OS, system services, common tools, and a ready dev server, including disk, memory, and running processes. New project checkpoints copy from this golden image in approximately 230 milliseconds. Project-specific checkpoints are saved after every agent turn, enabling subsecond spin-up and spin-down of idle computers without dropping in-transit requests.
Forking the computer - analogous to forking the trajectory - supports features such as "drafts," where a user works in a separate environment simultaneously with the main one. This is made economical through copy-on-write memory: forking a computer is free until a process writes to RAM, at which point only the affected memory page is copied. Memory streaming allows a virtual machine to boot before all memory is loaded, starting with OS memory and streaming the remainder progressively, which addresses the fact that each sandbox previously required a few hundred megabytes of memory streamed from cold object storage, taking several seconds.
A concrete optimization illustrates the compounding effect of this layer: the team rewrote the Vite dev server in Rust, removing the Node.js dependency. This produced 2x faster code starts, reduced preview load time from 40 seconds to 3 seconds, and reduced memory footprint 6.5x - a systems-level change that directly improves agent iteration speed, since faster preview cycles shorten the inner verification loop described below.
3.3 Verification: Inner and Outer Feedback Loops
The platform's verification architecture is organized into two loops. The inner loop, operating within a single agent turn, consists of build status, lint and type errors, runtime errors surfaced in the preview, and headless browser exploration of the running application. The outer loop, operating between turns, incorporates production user behavior, user feedback, automatic A/B tests on copy to measure conversion impact, and business metrics such as payment transactions and conversion rates.
This two-tier structure reflects the platform's stated thesis that "what matters is actually not the code... what matters is the outcomes." Business capability integration - receiving payments, sending emails, SEO optimization, running advertising campaigns, and analytics - allows the agent to optimize not merely code correctness but business strategy around the resulting product, closing the loop from code change to measured real-world outcome.
4. Technical Insights
Several implementation patterns generalize beyond this specific platform:
- Separate the recorded history from the model's working context. Storing a complete, append-only trajectory independently of the prompt allows summarization and compaction policies to evolve independently of what actually happened, and supports debugging via replay.
- Design for forking, not merging, in agent state. Git-style parent-pointer forking is cheap to implement and sufficient for parallel agent spawning; full merge semantics may be unnecessary complexity for this domain.
- Statelessness at the process boundary enables continuous deployment. Persisting only to durable task history, rather than in-process memory, decouples agent longevity from service lifecycle, a prerequisite for frequent production deploys alongside long-running tasks.
- Copy-on-write and progressive memory streaming reduce the marginal cost of environment duplication, which is a prerequisite for features like parallel drafts and rapid sandbox cycling.
- Rewriting hot-path tooling in a lower-overhead runtime (Rust replacing a Node.js-based dev server) can yield order-of-magnitude latency and memory improvements that directly shorten agent feedback loops.
A notable trade-off is that unbounded agent task duration (targeting 10+ hours) depends on both the model's sustained reliability over long horizons and the infrastructure's ability to checkpoint and resume state without loss - neither of which is sufficient alone.
5. Discussion
The historical arc described here - simple, then prematurely complex, then simplified, then complex again - suggests that architectural sophistication and model capability must be co-developed rather than designed independently. The 2023 multi-agent failure and the current success of a structurally similar design indicate that the same orchestration pattern can be correct in principle yet non-viable in practice until the underlying model crosses a reliability threshold.
This has implications for teams building agentic systems today: architectural ambition should be matched against demonstrated model reliability on long-horizon tasks, rather than against theoretical elegance, published designs, or competitive pressure. The infrastructure investments described - trajectory logs, checkpointed sandboxes, dual-loop verification - appear to be necessary scaffolding that makes increased model capability usable, rather than substitutes for that capability.
An open question not addressed in the source material is how trajectory compaction strategies are selected as context windows and task durations grow, and how the outer verification loop's business metrics are weighted against inner-loop code correctness when they conflict.
6. Conclusion
This analysis has traced a single production system's path from a one-call LLM architecture, through a failed multi-agent experiment, to a simplified reliable design, to a renewed and infrastructure-supported multi-agent system operating at over a billion tokens per minute. The key contribution is evidence that agentic architecture viability is gated by model capability as much as by design quality, and that durable infrastructure - append-only trajectories, checkpointed sandboxes with copy-on-write forking, and layered verification - is what converts raw model capability into reliable, long-horizon production behavior. Practically, teams building agent systems should treat runtime and sandbox infrastructure investment as a precondition for, not a consequence of, increased orchestration complexity.
Sources
- What it takes to set intelligence free - Fabian Hedin, CTO, Lovable - Original Creator (YouTube)
- Analysis and summary by Sean Weldon using AI-assisted research tools
About the Author
Sean Weldon is an AI engineer and systems architect specializing in autonomous systems, agentic workflows, and applied machine learning. He builds production AI systems that automate complex business operations.
Sean Weldon builds apps and custom software at 22Atlas.