Replit CEO Amjad Masad Proposes Models Training Narrower Replacements
The JIT-compiler analogy reframes recursive self-improvement as a practical systems problem: runtime distillation rather than ever-bigger general agents. Builders designing agent pipelines can treat generality as a temporary bootstrap and specialise downward for cost and safety. It also contrasts with the current race toward larger general models from OpenAI and Google, suggesting an opposite architecture path.
Replit CEO Amjad Masad described a concept he calls models training their replacements, drawing an analogy to a just-in-time compiler that emits optimised machine code on the fly.
In his view, a general agent such as Operator or Astra could detect that a use case is narrow and train a smaller, domain-specific model to take over that task.
He argued such distilled models would be cheaper, less vulnerable to prompt injections, and less prone to harmful behaviour because they are less capable.
The remarks were shared in a video posted on X on 26 Feb 2026.
Who’s building this? a16z @a16z Replit CEO Amjad Masad on how general models could train smaller, domain-specific models on the fly: "There's a lot of talk of recursive self-improvement, but there's something I don't think is getting a lot of discussion, which is models training their replacements." "You can think of it as a just-in-time compiler. As you're executing dynamic code, the interpreter realizes there's an opportunity to optimize, and it emits machine code on the fly that's a lot more optimized." "You can imagine general models, you're doing something with Operator or Astra, some of the big models, and they realize the use case is limited, or some other agent observing realizes the use case is limited." "General agents have all these flaws, but there's also more potential for them to be harmful, more potential for them to go off the rails." "So the model, on the fly, trains a model that could be its replacement, but is a lot more domain specific. Therefore it's cheaper, less vulnerable to prompt injections, and less harmful for you, because it's less capable." "It's almost like a system that's training machine learning models for specific use cases as it's monitoring the entire system." @amasad
This report is categorized under AITOP's "Industry" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Replit, Amjad Masad, agents, distillation.
Source attribution: curated from Amjad Masad (@amasad). Cross-source corroboration: 11 independent sources have covered this development (including a16z, 宝玉, Tibor Blaho), confirming industry-wide signal strength.