1,000 AI Agents Building an OS from Scratch: How Autonomous Agent Systems Work
This article examines how modern LLMs have shifted from answering questions to orchestrating long-horizon, multi-agent software and hardware projects. Using a reported case in which more than 1,000 sub-agents spent eight days building a bootable operating system, it explains the four core mechanisms behind autonomous development—hierarchical long-range planning, isolated parallel execution, automated verification gates, and difficulty-based model routing—and translates them into a practical workflow for developers, including task-specification examples, an orchestration skeleton, and cost-control strategies. It also covers 3D content generation, text-to-hardware design, and the engineering boundaries that still require human sign-off.
A Folder, a Prompt, and 1,000 Agents
In November last year, a message went viral across technical communities. An engineer at a research team handed their latest large model an empty folder and asked it to build a prototype operating system. In the end, the model spun up more than 1,000 sub-agents, coordinated them around the clock for eight days, and delivered an operating system that actually boots on a physical laptop.
Similar cases were reported at the same time:
- One developer asked a model to build a fully functional 3D typewriter. The model handled 3D meshes, realistic lighting, the interactive interface, and the mechanical logic of the keystroke linkage all at once.
- Another generated a 3D world of more than 450 portals connected to each other from a single block of text.
- A sister model released alongside these systems showed comparably strong reasoning and coding abilities, and it routed simpler tasks to faster, cheaper lightweight variants.
In the same wave of releases, these models posted strong results on several general reasoning benchmarks and model capability indices. But benchmarks only tell you how smart a model is, not what it can do. The more interesting question is how it accomplishes complex work.
Capability Changed, So Usage Has to Change: From Search Box to Commander
Over the past two years, most developers have used large models as, essentially, more capable search engines: ask a question, get an answer, copy, paste. That pattern suits well-bounded local tasks such as writing a single function, explaining an error message, or completing a configuration file.
The capability shape has changed. These models no longer just answer questions; they act as task orchestrators:
- Breaking a vague, high-level goal into executable subtasks;
- Launching large numbers of specialized sub-agents at once;
- Organizing those agents to collaborate and cross-check each other;
- Sustaining progress over days or longer, on work that would normally take a senior engineering team weeks or months.
The human–AI relationship shifts accordingly. Instead of the person who writes every line of code, the developer becomes the person who defines goals, sets rules, and reviews results. When the role changes, the way of working has to change with it.
The Stress Test: 1,000 Agents, 8 Days, One Bootable OS
Building an operating system is one of the most demanding tasks in computer science:
- The kernel must handle process and thread scheduling, memory allocation and reclamation, interrupt handling, and file system management;
- Device drivers must talk to real hardware across a huge variety of models;
- The system call interface has to stay stable over the long term;
- The window system and login screen face users directly.
Even a highly specialized team typically needs years of iteration to produce a basic version. This time, the model’s work can be broken down as follows:
- Acting as chief architect. The model did not start by generating a few arbitrary scripts. It first defined the system layering and module boundaries, then decided what could run in parallel and what had to finish first.
- Decomposing the task at scale. It split the system into kernel, memory management, file system, disk and network drivers, window system, login screen, and other modules, then refined them into cleanly bounded subtasks.
- Executing in parallel. More than 1,000 sub-agents worked simultaneously in isolated environments, writing code, running tests, and reviewing each other’s submissions. Only branches that passed validation were merged into the core repository.
- Coordinating for eight days straight. Over those eight days it kept resolving merge conflicts, fixing failing cases, and reprioritizing work, gradually pulling the parallel effort together into a coherent whole.
What it delivered was an operating system that boots on physical hardware, with a custom kernel, persistent file storage, disk and network drivers, a window system, and a login screen.
The case demonstrates at least three things:
- Long-horizon consistency. Code produced by more than a thousand sub-agents can be merged rather than each agent going its own way.
- An end-to-end engineering loop. Writing code is only one step; testing, review, and merging matter just as much, and failing branches can be caught and rolled back quickly.
- Enough orchestration capability to replace human coordination overhead.
Of course, there is still a clear gap between “boots” and “reliably usable over the long term.” A native SDK, broader hardware compatibility, a complete security model, and performance tuning are all still ahead for prototypes like this one.
Under the Hood: What Makes Autonomous Agent Systems Work?
Put these cases side by side and four key mechanisms emerge.
1. Long-Range Planning: Fighting Attention Decay with a Project Map
No matter how large the context window, it is hard to hold every detail of a large project. Mature autonomous development systems usually adopt a layered memory structure:
- At the top, the project goal and acceptance criteria;
- In the middle, architecture documents, interface contracts, and the task board;
- At the bottom, the actual code, tests, and run logs.
Each agent loads what it needs on demand, avoiding the unbounded context growth that leads to goal drift.
The task graph should also be a directed acyclic graph with explicit dependencies. Only then can the system tell what can run in parallel and what must run in sequence. Once work reaches a thousand tasks, deciding what comes first is itself an engineering discipline worth managing deliberately.
2. Parallel Execution: Isolation Is the Prerequisite for Scale
Hundreds or thousands of agents working at once will inevitably touch the same codebase. Without isolation, conflicts spin out of control quickly. The common approach is:
- Give each task its own copy of the code, such as a branch or a worktree;
- Run builds and tests in an isolated sandbox;
- Detect conflicts before merging.
The model focuses on global scheduling, while simple implementation work goes to faster, cheaper lightweight models—keeping compute concentrated on the genuinely hard problems.
3. Automated Verification: Build the Gates Into the Pipeline
The biggest risk in an autonomous system is agents confidently making the same mistake. The effective defense is to let objective signals do the talking:
- Does the build pass?
- Are unit and integration tests all green?
- Does static analysis flag anything?
- Does code review approve?
Each gate works like a quality-inspection station on an assembly line. Anything that fails goes back for rework, and only when every check passes does it reach the mainline. Some engineering teams go further and have agents in different roles review each other, using adversarial review to compensate for the blind spots of a single model.
4. Layered Routing: Match Compute to Difficulty
Difficulty varies enormously across tasks. A sensible system splits work into tiers and assigns each tier to a different class of model:
| Difficulty | Typical Tasks | Suggested Model |
|---|---|---|
| High | Architecture decisions, kernel scheduling, driver adaptation, tracking down tricky defects | The most capable model with the deepest reasoning |
| Medium | Routine feature implementation, unit test writing, interface documentation | A balanced general-purpose model |
| Low | Code formatting, variable renaming, boilerplate generation | A fast, low-cost lightweight model |
Layered routing both controls cost and puts compute where it actually matters.
From Writing Code to Doing Architecture: The Developer’s New Workflow
Once you understand the underlying mechanisms, three practical steps make it real in a personal workflow.
1. Write the Goal as a Verifiable Spec
A spec does not have to be long, but it has to answer four questions: what is being delivered, what are the constraints, how is completion judged, and what is allowed?
# Illustrative task spec: make the goal verifiable and the constraints enforceablegoal: Build a basic kernel that passes the official test suiteconstraints:- target_architecture: x86_64- forbid_external_kernel_source # no reuse of existing kernel code- max_continuous_runtime: 2hacceptance:- official_test_suite_pass_rate: ">= 80%"- no_crashes_under_memory_stress- interrupt_latency: "< 10ms"budget:max_parallel_agents: 200max_cost: 500
2. Build a Local Agent Orchestration Framework
An orchestration framework needs at least five modules:
- Planner: decomposes tasks and maintains dependencies;
- Executor: runs agents inside sandboxes;
- Verifier: runs builds and tests consistently;
- Merger: manages branch merges and conflict resolution;
- Router: selects the model tier based on task difficulty.
Here is a minimal scheduling skeleton:
def develop(spec: dict, scheduler: Scheduler, max_rounds: int = 20):"""Autonomous development loop aimed at passing acceptance (illustrative pseudocode)"""repo = init_repo(spec) # init repo, baseline commit, and task graphfor _ in range(max_rounds):batch = scheduler.next_batch() # pick parallelizable tasks by dependencyif batch.is_empty() and repo.meets(spec["acceptance"]):break # all acceptance checks pass, exit earlypatches = []for task in batch: # simple tasks dispatched in parallel; shown seriallyagent = scheduler.spawn(role=task.role, # e.g. "architect", "test engineer", "reviewer"model=router.pick(task), # choose model tier by difficultysandbox=task.isolation # isolated code copy + sandboxed runtime)patches.append(agent.solve(task)) # run task, produce a patch to mergefor patch in patches: # verify one by one: test, review, mergeif verifier.build_and_test(patch) and reviewer.approve(patch):repo.merge(patch)else:scheduler.enqueue(retry(patch, reason="verification_failed"))return repo if repo.meets(spec["acceptance"]) else escalate_to_human(repo)
The framework should stay deliberately lean. The more components you add, the more single points of failure you introduce—one agent out of control can take down the whole pipeline.
3. Manage Cost With Tiered Strategy
Tiered scheduling works best when it matches task difficulty:
def pick(self, task) -> str:"""Route models by task type and risk level (illustrative policy)"""if task.risk == "high" or task.difficulty == "hard":return "frontier_model" # core logic, architecture decisions, hard problemsif task.kind == "test":return "balanced_model" # unit tests, integration casesreturn "fast_model" # boilerplate, docs, simple changes
From Virtual to Physical: Hardware, 3D Worlds, and Engineering Boundaries
Traditional software development leaves plenty of room to recover. When a web application breaks, rolling back a single commit often fixes it. Hardware design has no such margin: one wrong trace on a printed circuit board can keep an entire device from working, and every revision means extra prototyping cost and waiting time. That has long been a key reason large models struggled with physical product design.
New capabilities are breaking that boundary. Using just a block of text, researchers described three devices: a home voice assistant, a USB hands-free calling device, and a third device that was not fully enumerated in the original report. Moving from a text description to a hardware solution means the model has to coordinate component selection, interface definitions, the power scheme, PCB layout and routing, and enclosure structure.
The 3D content space has seen notable advances as well:
- The typewriter case required the model to handle geometric modeling, lighting and material rendering, web interaction logic, and the mechanical motion of the keystroke linkage at the same time;
- The world of more than 450 interconnected portals tested the model’s ability to maintain global consistency: portals must pair up correctly, and scene style and spatial coordinates must stay aligned.
Still, there is a gap between “it works on screen” and “it is reliable in the real world,” and that gap is a complete engineering validation system:
- In software, the source of truth is automated tests—a passing build and all-green cases are objective evidence;
- In hardware, the source of truth is real measurement. Signal integrity, electromagnetic compatibility, thermal design, and long-term reliability all depend on instrument measurements and repeated iteration;
- AI engineering also involves documentation norms such as dataset licensing, model cards, and datasheets, so that data provenance stays clear and traceable.
The safer collaboration model at this stage is to let the model handle design, simulation, and option comparison, while measurement, certification, and production go to human engineers. Encouragingly, open-source tooling for integrated-circuit placement and routing has already appeared, so physical design is seeing new automation support.
Putting Autonomous Agents to Work: Five Practical Guidelines
If you want to try this mode of working on your own team, these principles help:
- Start with a small, sharp scope. Pilot on tasks with clear dependencies and explicit acceptance criteria, such as backfilling tests for a legacy module or refactoring a self-contained utility library, rather than attacking a core system on day one.
- Automate verification. Without automatically runnable tests, autonomous development loses its source of truth, and errors get amplified as they propagate between agents.
- Hold the security boundary. Autonomous agents can write files, execute commands, and access the network, so permissions must follow least privilege and runtimes must be isolated. High-risk operations on live services need human approval, and code that has not been reviewed must not reach production directly.
- Make the process observable. Record the prompt, model version, code changes, test results, and resource consumption for each task, so you can review, diagnose, and continuously optimize.
- Keep a human in the loop. Architecture decisions, security-related changes, and external releases should be reviewed and confirmed by people at key checkpoints.
From application development to 3D content generation and now hardware design, autonomous agents keep crossing into more complex territory. Benchmarks show the upper limit of a model’s capability; autonomous agents show what that capability looks like when it lands in real engineering work.
Running this kind of autonomous development flow in the cloud requires elastic compute, isolated sandboxes, version control, object storage, message queues, logging, and monitoring and alerting. Baidu AI Cloud provides general cloud services such as containers, storage, message queues, logs, and monitoring and alerting, which can serve as a reference when choosing infrastructure.
For developers, the real question may no longer be “Can the model do it?” but “Can we define the goal clearly and build a reliable verification loop around the result?” When verification is trustworthy enough, the model has a real chance of becoming the tireless chief architect on your team.
