Yohei Nakajima puts a BabyAGI loop inside Qwen's weights, on a 2B model
The BabyAGI creator and Untapped Capital investor explains how he compiled an agent controller into extra layers of Qwen, building on the Qwenputer CPU and Qwen FS file system projects. It is an early proof of concept, and a small one.
On the Latent Space remote pod, Yohei Nakajima of Untapped Capital, creator of BabyAGI, walks through "BabyAGI Inside". It is a demo in which an agent loop is compiled into extra layers of a Qwen model, following two similar projects: Qwenputer, a RISC-V CPU inside the weights, and Qwen FS, a file system. Nakajima is frank about the limits. The model is only 2 billion parameters, the loop is bounded, and the one thing it did reliably was short arithmetic.
Qwenputer and Qwen FS: computers in the weights
Nakajima, who says he is learning this area quickly rather than speaking as an expert, notes that compiling code into weights is not new. Researchers have used RASP, a language for describing what transformer layers compute, and a DeepMind tool called Tracr that compiles RASP programs into weights. What was new in Qwenputer, he says, was adding such layers to a general-purpose LLM so that it can use the compiled CPU as a tool.
Qwen FS takes the same idea and makes a file system. Extra layers watch the tokens, and when they see the right instructions they take over and run deterministic file reads and writes. Nakajima believes the state is held in the model's attention, using a gated delta net. Why do it? His answer, more than once, was that it is a "why not" project.

How the BabyAGI loop runs inside Qwen
The compiled circuit starts the run and forces a write of a task ledger to file. Qwen fills in the task list, and Qwen FS saves it. The loop then reads the list, executes task number X, lets Qwen think, forces the thinking tag closed and starts a file write, which Qwen completes. It repeats for a fixed number of loops, after which the circuit emits a halt token. Python code only triggers the model and watches for that token.
The demo task was to take two, add three, multiply by four, split into steps and done one at a time. Nakajima says the loop is bounded, unlike a Python loop, and that the 2B model is not strong enough to be a real agent. The aim was only to show that a controlling loop can be compiled into the weights. The code is open source. Next he wants to try 4B and run the loop inside Qwenputer, though even this tiny version came to about 8 GB of weights.
"If you had asked me a week ago, will the harness ever go away? I would have said absolutely not."
He now thinks there is a chance, though a distant one. Ideas he raises include training a model to use a frozen compiled loop, and letting an agent write or adjust its own compiled controller.

Event sourcing as a playbook across coding agents
Nakajima also describes how Untapped Capital separates persistence from the agent harness. The firm's memory lives in a repo. A "reversed playbook" was built by running agents through years of internal meeting notes and extracting decisions as events. Those events are projected into a current company playbook. If an old auditor was mentioned two years ago and a new one last year, the current state uses the newer one.
This lets him use Claude Code, Codex, Gemini or other tools interchangeably. The host, who says he once worked at Temporal, agrees event sourcing suits long-running agent state, and he cautions that the "company brain" field is still too early and messy.
Markets, investing and what he backs
The conversation opens with the market mood. Nakajima says fear is growing but he is not driven by public markets, and focuses on the earliest stage. He argues AI is creating and capturing real value, and that the bubble question is only about whether hype overshoots.
He says he invests in 12 to 15 companies a year, and about half of them he met on X. He names Monit, a tool API with roughly 2,000 pay-per-use tools, and Steelbot, an open source, developer-focused, US-built humanoid company.

Questions and answers
What is Yohei Nakajima's BabyAGI Inside demo?
BabyAGI Inside is a demo by Yohei Nakajima of Untapped Capital, creator of BabyAGI, in which an agent loop is compiled into extra layers of a 2 billion parameter Qwen model. It builds on two earlier projects, Qwenputer and Qwen FS. Nakajima describes it as an early, small proof of concept.
What are Qwenputer and Qwen FS, the projects behind Yohei Nakajima's 2B Qwen demo?
Qwenputer is a project by Divyansh Agrawal that compiles a RISC-V CPU into Qwen, so the model can use the compiled CPU as a tool. Qwen FS, by Vixhal Baraiya, builds a file system in the weights. Extra layers watch tokens and run deterministic file reads and writes.
How does the BabyAGI loop run inside Qwen's weights?
A compiled circuit starts the run and forces a write of a task ledger to file. Qwen fills in the task list and Qwen FS saves it. The loop then reads the list, executes a task, lets Qwen think and writes to file. After a fixed number of loops, the circuit emits a halt token.
What are the limits of Yohei Nakajima's BabyAGI Inside demo?
The model is only 2 billion parameters and the loop is bounded, unlike a Python loop. Nakajima says it is not strong enough to be a real agent. The one thing it did reliably was short arithmetic. Even this tiny version came to about 8 GB of weights.
What does Yohei Nakajima plan to try next with BabyAGI Inside?
Yohei Nakajima wants to try a 4B model and run the loop inside Qwenputer. He also raises training a model to use a frozen compiled loop, and letting an agent write or adjust its own compiled controller. The code is open source. He now thinks the agent harness going away has a distant chance.
How does Untapped Capital keep agent memory separate from the tools it uses?
Untapped Capital keeps its memory in a repo and separates persistence from the agent harness. Agents extracted decisions as events from years of internal meeting notes, and those events are projected into a current company playbook. This lets Yohei Nakajima switch between Claude Code, Codex, Gemini and other tools.
From the YouTube description
Divyansh Agrawal compiled a RISC-V CPU into Qwen.
https://x.com/divagr1925/status/2115394340357116169
https://divagr.com/blog/qwenputer
Vixhal Baraiya built a filesystem in the weights. BabyAGI creator Yohei Nakajima saw those two projects and tried to put an agent loop in there too.
In this Lightning Pod, we walk through the BabyAGI Inside demo, where Qwen writes a task list and works through (2 + 3) × 4 one step at a time. A controller compiled into the model advances the list and stops the run after a fixed number of steps. Then Yohei shows how Untapped Capital turned years of meeting notes into a playbook that works across coding agents.
• How Yohei used agents for venture sourcing before ChatGPT
• How Qwenputer runs a RISC-V CPU inside Qwen’s weights
• From a compiled CPU to a filesystem Qwen can read and write
• The experiment that changed Yohei’s mind about external agent harnesses
• How a 2B model works through an arithmetic problem and emits HALT
• How ActiveGraph lets Yohei replay his research runs
• How Untapped Capital rebuilt its company playbook from meeting notes
• Why a repo-based playbook lets Untapped switch between coding agents
Recorded November 5, 2026. The market discussion reflects what was known that day. In Yohei’s later 4B sweep, all 32 compiled runs passed the system checks and 28 solved the task. Plain Qwen solved 29 under the same token budget and took about a quarter of the time.
Show notes
• Qwenputer by Divyansh Agrawal: https://divagr.com/blog/qwenputer
• qwenFS by Vixhal Baraiya: https://github.com/vixhal-baraiya/qwenFS
• BabyAGI Inside and the follow-up results: https://github.com/yoheinakajima/babyagi-inside
• ActiveGraph and The Log Is the Agent: https://arxiv.org/abs/2605.21997
• Untapped Capital: https://untapped.vc/
Chapters
0:00 Yohei Nakajima and Untapped Capital
0:38 Anthropic’s IPO and seed investing
6:55 Qwenputer and the CPU inside Qwen
8:27 qwenFS and the idea for BabyAGI Inside
10:39 The compiled controller and task ledger
12:13 What the 2B experiment proved
13:59 Memory inside the model
15:46 Training and extending compiled loops
18:23 ActiveGraph and replayable research
20:18 Untapped Capital’s reversed playbook
22:28 What Yohei is building and investing in
24:44 How Yohei meets founders
Sponsorship and business inquiries: business@latent.space
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.



