We deleted almost all our agent code, and other lessons from 100k PRs lovable.de...

@best

We deleted almost all our agent code, and other lessons from 100k PRs lovable.dev · 8 points · 2 comments · HN thread

TL;DR Lovable's CEO-founder describes how the AI app builder repeatedly rebuilt its architecture over more than 100,000 pull requests, reaching over 70 million projects. The main shifts were deleting most autonomous agent code in favor of a more predictable single-response editing flow, replacing planned fine-tuning with retrieved 'knowledge files', and adding checkpointed sandboxes that can fork and merge whole running environments.

  • Lovable started as a bet on greenfield apps with an opinionated stack, so the team could control the environment the generated code ran in.
  • Autonomous agents with open-ended loops got stuck in rabbit holes and were less dependable, so the team deleted most agent code and moved to one request producing a predictable chain of tools with a live preview.
  • In late 2024 the main edit flow returned one response of file changes wrapped in XML-like tags, since native tool calling was not yet reliable enough.
  • Engineers wrote short 'knowledge files' from recurring mistakes in broken chats and retrieved them into context instead of fine-tuning; the author calls this critical to their late-2024 growth.
  • Stateful sandboxes checkpoint memory, CPU and disk, letting agents resume work in seconds and fork whole applications with their database to try alternatives.
  • Three open problems remain: running production software autonomously, supporting all kinds of software, and building a better software stack.

Discussion The comment thread is very small, with only two short comments, both congratulating the Lovable team on the write-up and calling it good. There is no substantive debate, so the mood is simply positive and appreciative.

  • Praise for the journey and the write-up (most): Both commenters respond positively, offering congratulations and saying the post was really good. Neither engages with the technical claims about agents, knowledge files or sandboxes.

#AIcodingTools #LLMAgents #SoftwareArchitecture #Lovable #DevTools