In 30 seconds
An agent normally relies on external software to choose the next task and save results. BabyAGI creator Yohei Nakajima compiled a fixed task controller into added Qwen model layers, using an in-model file system to pass results between steps. His two-billion-parameter model could carry out a short arithmetic example, but struggled at other tasks and the added loop took roughly eight gigabytes of weights. Separately, he uses a decision history from meeting notes to maintain a firm playbook that works across coding agents.
- 1Qwenputer adds a compiled processor to a language modelNakajima says the project puts a RISC-V CPU in added Qwen layers, while qwenFS similarly implements file reads and writes. Those projects inspired his agent-loop experiment.
- 2A fixed controller can coordinate tasks within the modelThe controller makes a task ledger, calls Qwen for each task, saves results and emits HALT after a set number of cycles. External Python starts the run and watches for the stop token.
- 3The proof of concept solved arithmetic but was not a general agentNakajima says the 2B model struggled at most tasks, and the compiled loop took about eight gigabytes of weights. He wants to try a larger model and test efficiency.
- 4Training a model to use a frozen controller is a possible next stepNakajima says his Qwen model was not trained for the compiled loop. He also speculates about agents writing and compiling their own controllers.
- 5Meeting decisions become a playbook that is independent of the agentUntapped Capital extracts events from old meeting notes and derives the current state into a shared repository. Nakajima can switch among coding agents without tying the firm's information to one harness.
Takeaways
- A fixed agent controller can be compiled into extra model layers; Nakajima treats it as an early experiment, not a replacement for external software.
- The 2B model managed a simple step-by-step arithmetic example but was not capable enough for general agent work.
- The small compiled loop added roughly eight gigabytes of weights, prompting questions about efficiency.
- Keep organizational state in a shared repository so different agents can work from the same playbook.
- A history of decisions can be projected into a current company view rather than manually writing a playbook from scratch.
Read the edited text by chapter
How agents changed startup sourcing
Nakajima describes using agents to find companies and distinguishes changes in funding markets from the value AI creates.
Shawn Wang welcomes Yohei Nakajima, a venture investor of 15 years and the creator of BabyAGI. Nakajima says AI became a focus more recently, although he began using agents for venture work in 2022, before ChatGPT appeared.
Wang asks why Sequoia ended its scout relationship with him. Nakajima does not know the firm's reasoning, but says a scout network once helped investors find startups that were otherwise visible only through personal connections. More startups now post publicly, so agents can gather a broad view of them online.
Wang asks whether a change in the public AI market should matter to pre-seed companies whose outcomes are years away. Nakajima says founders should stay focused on customer problems, but changes in the broader economy do reach early-stage funding after a delay.
Nakajima says investors often argue that a technological shift makes the current cycle different, although history makes him cautious about that phrase. Wang notes that AI companies have grown beyond what he expected a few years earlier and wonders how far that growth can continue.
Nakajima distinguishes value creation from the price investors put on it. He thinks AI is capturing value from other businesses, but whether expectations overshoot or undershoot that value is a separate question. He senses growing fear without basing his own early-stage work on public-market movements.
Wang says media incentives favor extreme predictions, while the answer may lie between them. Nakajima tries to reserve strong opinions for subjects he has explored deeply. They turn to his experiment putting an agent controller inside a language model.
From an in-model processor to a task controller
Qwenputer and qwenFS inspired Nakajima to compile a bounded BabyAGI-style loop into model layers.
Qwenputer, created by Divyansh Agrawal, compiles a RISC-V processor into additional layers of the Qwen language model. Nakajima says compiling code into model weights has research precedents, including the RASP language and DeepMind's Tracr compiler, but Qwenputer attaches the mechanism to a general language model as a tool.
Another project, Vixhal Baraiya's qwenFS, applies a related idea to a file system. Nakajima describes additional layers that recognize file commands in the token stream and carry out reads and writes. Seeing a processor and file system inside the model prompted him to try a BabyAGI-style task loop.
Asked what this enables, Nakajima says the first motivation was curiosity. He speculates about training a model to use the mechanism or eventually letting an agent change compiled code, while acknowledging that ordinary external software can also provide such functions.
Before this experiment Nakajima expected agents always to need an external harness, the program that coordinates the model and its tools. The proof of concept makes him think model-internal control could be possible in the future, though he does not claim the current implementation is efficient.
His controller has a fixed number of cycles, not an unlimited loop. It starts by prompting Qwen to generate an ordered task ledger. The circuit forces a file-write command, Qwen fills in the content, and qwenFS saves the ledger.

On each cycle, the controller reads the ledger and previous result, instructs Qwen to execute the next task and lets it produce a result. It then forces another write and advances to the next cycle. After the fixed number of steps, the circuit emits HALT; a small Python wrapper starts the model and watches for that token.
A small proof of concept and its limits
The 2B model handled a simple arithmetic example, but the system was large and struggled on broader tasks.
Nakajima says the two-billion-parameter model was poor at most tasks. Its successful example split a short arithmetic problem—add three to two, then multiply by four—into steps. The point was to show that the control loop could be compiled into weights, not that this small model was a capable general agent.

He calls it an early proof of concept and has made the code public. He wants to test a four-billion-parameter model and explore running the loop through Qwenputer, but says the small compiled loop already required roughly eight gigabytes of weights, raising an efficiency question.
Wang asks about looking inside a model's computation rather than only reading its verbal reasoning. Nakajima suggests the file-system idea may be useful for retaining state inside the model, and recommends starting with Qwenputer and qwenFS to understand the approach.
The processor, file system and BabyAGI controller currently occupy separate additional layers. Nakajima wonders whether a future system could combine them. Asked where file contents live, he tentatively describes their storage as part of the model's attention or inference state; both speakers treat the practical reason for doing this as an open question.
Training across the compiled boundary
Nakajima proposes teaching the model to use a frozen controller and speculates about future self-modifying agents.
Nakajima suggests freezing the compiled controller while training the language model to use it, since the Qwen 2B model was not trained on his BabyAGI loop. Another possible experiment would let an agent write a controller and compile its code into new weights.
A model able to rewrite its own weights within such a loop would be interesting, he says, but treats that as a future possibility rather than something the experiment already does. Wang connects the question to research on how weaker systems might help train stronger ones.
Nakajima says the project is too early to monetize, but he was surprised that he could ask a coding agent to compile an idea into additional layers by following the open-source examples. He encourages others to experiment with small computational mechanisms of their own.
Replayable runs and a firm playbook built from decisions
ActiveGraph preserves research runs; a related event-history approach reconstructs Untapped Capital's operating playbook.
For ongoing research, Nakajima uses ActiveGraph to make benchmark runs replayable and research reproducible. Wang connects this to event sourcing: recording the sequence of events so the state of a long-running process can be reconstructed.
Nakajima applies the same general idea at Untapped Capital, without using ActiveGraph itself. The firm's operating information lives in a repository rather than in any one agent, so he can use different coding agents against the same playbook.
Instead of writing that playbook from scratch, he extracted decisions from historical internal meeting notes and projected a current view from the resulting events. If an older note names one auditor and a newer note names another, the current view can reflect the later decision. Wang cautions that connecting too many streams can also create noise.
Wang says many teams are trying to build a shared company brain, but the approaches still vary and he finds few settled, production-ready patterns. Nakajima agrees there is room to improve even though he is proud of the system his firm has built.
Developer tools, robotics and meeting founders
Nakajima discusses areas he follows and how his investment practice connects him with builders.
Nakajima wants to keep following research that decomposes models and places mechanisms inside their layers. On the investing side, he mentions a portfolio tool API that bundles many pay-per-use services, reducing the need for separate subscriptions when giving agents access to tools.
He is also watching robotics and mentions Steelbot, a company working on developer-focused humanoid robots manufactured in the United States. He leaves the company's schedule to its founder to announce.
Founders can reach Nakajima by cold email or direct message; he estimates he met about half his portfolio companies on X. His pace is roughly 12 to 15 investments a year. He likes building small projects with founders before they start companies, allowing relationships to form through public experimentation.
Wang describes him as an investor who builds, rather than one whose primary strength is enterprise sales. Nakajima says he tries to help with sales but sees his strength at the earliest stage. He expects AI to keep creating value regardless of market swings.
More from this channel
32:22EN
1:12:23EN
1:23:32EN
1:25:52EN
2:43:49EN
23:15EN