Yohei Nakajima Put an Agent Loop Inside a Language Model

A fixed controller and file system can live in model layers, but his small-model experiment exposes practical limits.

YNYohei Nakajima게스트 · Untapped Capital
채널
Latent Space
게시일
2026년 11월 29일
영상
26:32
읽기
6분
슬라이드
2
원문
영어
YouTube에서 열기
스크롤하면 영상이 오른쪽 아래로 작아져 계속 재생됩니다. 자막은 읽기 언어를 따릅니다.
읽기 언어2개 언어로 읽을 수 있음
이 글은 아직 한국어 번역이 없어 영어 원문으로 표시합니다.
요약

30초 요약

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

핵심 정리

  1. A fixed agent controller can be compiled into extra model layers; Nakajima treats it as an early experiment, not a replacement for external software.
  2. The 2B model managed a simple step-by-step arithmetic example but was not capable enough for general agent work.
  3. The small compiled loop added roughly eight gigabytes of weights, prompting questions about efficiency.
  4. Keep organizational state in a shared repository so different agents can work from the same playbook.
  5. A history of decisions can be projected into a current company view rather than manually writing a playbook from scratch.
전문

챕터별로 다듬은 전문 읽기

원본 자막만 보기
01

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.

02

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.

One cycle of the compiled agent
슬라이드 1 / 2One cycle of the compiled agentThe diagram shows the controller, Qwen and qwenFS taking turns to write a task ledger, execute tasks and stop.

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.

03

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.

Comparing BabyAGI with the compiled loop
슬라이드 2 / 2Comparing BabyAGI with the compiled loopA table contrasts the original external loop with a controller, task ledger and file storage inside the newer experiment.

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.

04

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.

05

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.

06

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.

같은 채널의 다른 글

32:22EN
Latent Space· 2026년 11월 28일팟캐스트 · 2명Why AI labs buy shared training data and pay extra for exclusivity게스트 Gabe Greenberg · 진행자 Shawn WangG2i founder Gabe Greenberg explains how labs buy expert-built tasks, balance quality against speed, and price exclusive data.Data quality & curationRL environments & simulatorsReinforcement Learning+2
1:12:23EN
Latent Space· 2026년 11월 26일팟캐스트 · 3명Jeff Barg: Clay Opens Its Sales Data to Any Agent게스트 Jeff Barg · 진행자 Shawn Wang, Basil ChathaClay rebuilt its workflow assistant around a coding agent while making the same tools available to outside agents.Go-to-Market에이전트 엔지니어링AI cost & performance+2
1:23:32EN
Latent Space· 2026년 11월 19일팟캐스트 · 2명Cristina Cordova: Linear chose agents before a traditional enterprise roadmap게스트 Cristina CordovaLinear’s COO explains why she delayed enterprise sales, kept support human and changed course as agents began creating work.Go-to-MarketProduct-Led Growth에이전트 엔지니어링+2
슬라이드 3장1:25:52EN
Latent Space· 2026년 11월 10일팟캐스트 · 2명Zeno Rocha on building email tools for people and agents게스트 Zeno Rocha · 진행자 Shawn WangThe Resend co-founder explains deliverability, agent-facing interfaces and why he writes product information for machines to read.Product StrategyAI agentsProduct-Led Growth
슬라이드 4장2:43:49EN
Latent Space· 2026년 11월 9일팟캐스트 · 9명What AI Labs Buy: Expert Data, Realistic Workplaces and the Art of Evaluation게스트 Garrett Lord, Sahil Bhaiwala, Nishant Ranka, Nick Magazine, Jonas Mueller, Collin Schweiker, Steve KellingHandshake AI opens its training environments and benchmarks for biology, investment banking and safety, showing where capable agents still fail and how experts find the gaps.AI agents평가(Evals)Data quality & curation+2
슬라이드 3장23:15EN
Latent Space· 2026년 11월 8일팟캐스트 · 2명Jay Parikh: GitHub must adapt as coding agents change development게스트 Jay Parikh · 진행자 Shawn WangGitHub's scale, model choices and security are changing as agents join developers, says Microsoft CoreAI's Jay Parikh.코딩 에이전트개발 워크플로와 테스트인프라와 배포+2