Agent Research
Evidence check
  • Preprint
  • No code released
  • Not independently replicated

What Yohei Nakajima Said About Agent Loops in Weights: Control, Not Skill

On Latent Space, BabyAGI creator Yohei Nakajima said compiling an agent loop into Qwen's weights made him rethink whether agents need an outside harness. His repository's later, budget-matched test shows plain Qwen solves as many tasks in about a quarter of the time. We checked the numbers and pulled out what builders can use today.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 6 min read
Share
A person's hands on the keyboard of a plain black laptop at a home desk, with an open notebook of hand-drawn loop diagrams, an external drive and coffee mugs nearby.
Image: AI-generated, i10X
On this page
  1. What he built, in one paragraph
  2. The claims, quoted
  3. What is new compared with his earlier posts
  4. The numbers, checked against his repository
  5. What it means if you build agents
  6. Takeaways
  7. What is still open
  8. i10x Perspective

BabyAGI creator and Untapped Capital investor Yohei Nakajima told Latent Space, in a Lightning Pod published on November 29, that compiling an agent loop into a model’s weights changed his mind about agent harnesses: “if you had asked me a week ago, will the harness ever go away, I would have said, absolutely not” [10:12], but after the experiment he sees “absolutely a chance down the road” [10:23]. The episode was recorded on November 5. His own repository has since tested that idea against a plain model, and the result points the other way for anyone building agents today: the compiled loop gives exact control, but no measurable gain in what the model can solve, at roughly four times the run time.

What he built, in one paragraph

BabyAGI Inside sits on two hobby projects from October and early November: Qwenputer, which puts a RISC-V CPU into the weights of Alibaba’s small Qwen 3.5 models, and qwenFS, which adds a file system the model reads and writes inside its own forward pass. Nakajima reversed the direction. In Qwenputer and qwenFS, Qwen calls the compiled machine like a tool; in his version, a compiled controller calls Qwen, keeps a task ledger in qwenFS and emits a HALT token after a fixed number of cycles. The host Python code only feeds in the objective and samples until HALT. He described the goal plainly: to prove “a controller loop could live inside the weights” [12:46].

The claims, quoted

On the limits of the first build, which ran on Qwen3.5-2B, he was blunt: “The 2 billion model is not good enough to run an agent” [12:51]. The only task family it handled was short arithmetic, the example in the episode being take 2, add 3, multiply by 4, split into separate steps. He also flagged the cost side himself: the small loop “was like eight gigs in weights. So I’m not sure how efficient it is” [13:31]. And he said the loop is bounded, a hard-coded number of iterations, unlike a normal loop in Python [12:14].

His biggest surprise was not the circuit but the workflow. You could ask a coding agent to “compile code into extra layers on weights and it just works” [17:50], pointing it at the open Qwenputer and qwenFS code as examples.

The second half of the episode is the more practical part. At Untapped Capital, he said, he has started “separating persistence from the harness” [20:25]. The firm’s operating knowledge “lives in a repo” [20:37], built as what he calls a “reversed playbook” [20:43]: an agent went through years of internal meeting notes, extracted the decisions as events and projects the current state from them. His example: if an older note names one auditor and a newer one names another, the projected playbook knows the current auditor is the latest one mentioned [21:02]. Because the state lives in the repo, he said he can switch between Claude Code, Codex, Gemini and other coding agents [20:33].

What is new compared with his earlier posts

When he launched the project on X on November 5, Nakajima wrote that “the agent still sucks, but the loop works”. On November 9 he posted that the loop now ran on Qwen3.5-4B and that “better reasoning solved most of the unsolved tasks from the 2B test”, adding “so yeah, we can compile agent loops into model weights i guess”. Two things in the interview do not appear in those posts: the explicit change of mind about harnesses and the description of a repo-based, agent-agnostic firm playbook. i10x had not covered BabyAGI Inside or Nakajima before this piece.

The numbers, checked against his repository

The BabyAGI Inside repository now contains a preregistered comparison that the interview could not include. On a frozen suite of 32 short, checkable task chains, plain Qwen was given the same token budget as the compiled loop and forced to answer. The ratios and per-task figures in the last rows are our own arithmetic from those published results.

Measure (32 short task chains)Compiled loopPlain Qwen, same token budgetRatio
Qwen3.5-4B: chains solved2829plain +1
Qwen3.5-4B: tokens generated100,54546,800about 2.1x
Qwen3.5-4B: wall time on one Apple M54.6 h1.2 habout 3.8x
Qwen3.5-4B: minutes per solved chainabout 9.9about 2.5i10x calculation
Qwen3.5-4B: tokens per solved chainabout 3,591about 1,614i10x calculation
Qwen3.5-2B: chains solved812plain +4
Qwen3.5-2B: wall timeabout 3.5 h0.6 habout 5.8x

Source: BabyAGI Inside README and budget-forced results (F2 arm), as of November 30, 2026. One greedy run per item; ratios and per-chain figures are i10x calculations.

The eight gigabyte figure from the interview fits the repository: each compiled 2B checkpoint is about 8.8 GB, against 4.55 GB of weights for stock Qwen3.5-2B on Hugging Face, so the build roughly doubles the model on disk. The 4B checkpoints are about 15 to 16.4 GB each, and because the cycle count is fixed at build time, the four verified cycle counts need 65.6 GB of free disk.

The repository’s own conclusion is careful. The earlier headline gain of 40.6 points over plain Qwen came from a baseline that stopped every plain run before Qwen finished thinking, so it measured truncation, not capability. With a fair budget, the loop wins no task that plain Qwen loses. On 48 longer held-out tasks of 4 to 32 steps, a host-run version of an adaptive loop completed 20, or 25 when told the true length, against 38 for plain Qwen, and the preregistered decision was a no-go. That longer test was a simulation in host code, not a compiled checkpoint.

What it means if you build agents

For production work, nothing here argues for moving orchestration into weights. It fits what recent tests of coding agent harnesses found: the wrapper around a model can matter as much as the model itself. The compiled loop matched a plain model at best, needed about twice the tokens, ran about four times longer per suite on an Apple M5 and doubled the model size. What it does offer is determinism: every token is attributed to either the circuit or the model, and the run cannot skip a step or forget to stop. That is interesting for research on verifiable control and tamper-resistant monitoring, not for shipping features.

The playbook pattern is the part you can use now. If your team’s decisions, conventions and project state live in a repository as dated events, a newer coding agent or a cheaper model is a configuration change instead of a migration. It also gives you an audit trail of why the current rule is what it is.

More on this beat in our Agents section.

Takeaways

  • Keep the harness outside the model. On Nakajima’s own preregistered test, plain Qwen with the same budget solved 29 of 32 chains, the compiled loop 28, at about a quarter of the time.
  • Treat weight-compiled agents as research. Expect roughly double the disk footprint and one checkpoint per fixed loop length; there is no unbounded loop yet.
  • Check the baseline before trusting a gain. The project’s early 40.6 point advantage vanished once the plain model was allowed to finish its answer. Ask for budget-matched baselines in any agent benchmark you rely on.
  • Separate memory from the agent. Storing company knowledge as event-based files in a repo, as Untapped Capital does, keeps you free to switch between Claude Code, Codex or Gemini.

What is still open

Whether a much larger model changes the picture, whether an unbounded loop can be compiled at all, and whether training a model to use a frozen compiled loop closes the gap, something Nakajima said he might try [16:03]. Latent Space had not posted an official transcript when this article was published; the quotes come from the episode audio and are checked against two speech-to-text passes.

i10x Perspective

The honest value of this experiment is the negative result, and Nakajima deserves credit for publishing it in the same repository instead of letting the November 9 post stand. For agent builders, it confirms that the harness is where reliability is won, much like the planner, generator and evaluator setup Anthropic described: memory, stopping rules and audit trails are easier to get right in ordinary code than in a widened residual stream. We think the interview’s real signal is the second half. An agent-agnostic playbook rebuilt from meeting notes is a cheap, boring pattern that most teams could set up in a week, and it hedges against the fastest moving part of the stack, which is which coding agent is best this month.

Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Editor's picks

  1. Nuvacore Raises $200M+ at $2.2B for an AI Data Center CPU It Has Not Built Yet
  2. EU Industrial AI Blueprint: What Snabe’s Report Would Change for Companies
  3. AWS Quick Docs, Sheets and Slides Are Included, but Agent Hours Are Metered
  4. Qwen-Audio-3.1-Live: Alibaba’s Voice Agent Model Bills Every Second, Even Silence
  5. ChatGPT Turns Four: What OpenAI’s Own Numbers Say About 1.2 Billion Users