(English version follows below)
先日、清水亮氏の記事で『Zero-App OS』という非常に興味深い実験を知った。
その記事はこれ↓
そしてそのネタ元↓
LinuxもPythonもファイルシステムすらなく、わずか113KBのx86-64アセンブリ基盤の上に量子化AIと簡易アセンブラだけを載せ、ユーザーが求めたアプリをその場でアセンブリ言語から機械語へ変換して実行するというものだ。さらに面白いのは、アプリがクラッシュしてCPUの例外(Exception)が発生すると、そのエラーがそのままAIにフィードバックされ、コードを書き直して再実行する仕組みになっている点である。
発想の筋は抜群に良い。人間が介在しないのであれば、わざわざ高級言語や巨大なコンパイラを挟む必要はないという割り切りも痛快だ。
ただ、実際に毎日使う道具としてのリアリティを考えると、この113KBという構成は「少しコンパクトすぎる」ようにも感じる。
1. 「揺らいではいけない土台」はあらかじめ用意すべき
ファイルシステムもUI基盤もドライバもない状態から、毎回ゼロベースで画面描画やI/O処理までAIにひねり出させるのは、あまりにも非効率でリスクが高い。
実用的なシステムを目指すなら、以下の3つは人間(あるいは検証済みのコード)が設計した「枯れていて堅牢な固定基盤(API群)」として下層に用意しておくべきだろう。
- ハードウェア制御(ドライバ・メモリ保護・割り込み管理)
- UIの土台(高速な描画エンジン・基本コンポーネント)
- データ基盤(ファイルシステム・DB・永続化機構)
これら揺らいではいけない土台をOS側に固定してしまえば、AIが担当する領域は「ユーザーの意図を汲み取ってロジックを組み立て、それらの基盤APIを直叩きするマシン語をその場で生成する部分」だけに集約される。ここに3桁Bクラスの推論能力を持つAIを載せられれば、一発のコード生成精度も跳ね上がり、実用性は一気に現実味を帯びてくる。
2. 巨大AI一つに背負わせず「役割分散と並列化」で安定させる
さらに重要なのが、OSの頭脳となるAIのアーキテクチャだ。1つの巨大な万能AIにすべてをやらせようとすると、コンテキストが肥大化し、UIのレイアウトを考えながらメモリ保護やセキュリティまで気にする羽目になり、どうしても破綻が起きやすくなる。
現実のシステム開発や分散制御と同じように、役割ごとに専門特化したAIへ分割し、並列で動かして統合するパイプラインを組む方がはるかに安定するはずだ。
- 窓口AI(要件定義):人間と対話し、曖昧な要望を明確な「仕様書」に翻訳する。
- 専門AI群(並列実装):仕様書を受け取り、「I/O・データ処理専門」「ビジュアル・UI専門」「ロジック・演算専門」といった特化型AIが、それぞれの持ち場のマシン語を同時並行で高速生成する。
- まとめ役AI(統合):バラバラに上がってきたパーツのインターフェース(メモリの受け渡しや呼び出し順序)を繋ぎ合わせ、矛盾のない一つのプログラムへ組み上げる。
- 安全性&検証AI(独立監査):実行される直前に立ちはだかり、「仕様書にない不正な通信やファイル操作をしていないか」「メモリ破壊の危険がないか」を冷徹にチェックする。NGなら実行をブロックして該当する専門AIへ差し戻す。
この「作る側」と「監査する側」の相互牽制に加え、下層のOS基盤によるハードウェアレベルの例外トラップが二重の防壁として機能すれば、動的にマシン語を生成・実行する危うさを構造的に潰すことができる。
3. まるで人間の「脳と神経と意識」のような役割分担
こうやって全体を見渡してみると、この構造は人間の「脳と神経と意識」の役割分担に驚くほどよく似ている。
- 自律神経・脊髄反射(固定されたOS基盤):心臓を動かしたり、熱いものに触れて手を引っ込めたりする部分。いちいち大脳が考えていたら間に合わない、生命維持のための堅牢で反射的な土台だ。
- 感覚野・運動野・小脳(専門AI群):視覚情報の処理や手足の細かな動きなど、それぞれの持ち場が意識しなくても並列で高速に働く。
- 脳幹・視床(まとめ役AI&安全性検証AI):バラバラの神経信号を統合しつつ、体に危険が及ばないように無意識下でゲートキーパーの役割を果たす。
- 前頭前野・意識(窓口AI):「何をしたいか」という意図をまとめ、全体の方向性を決める司令塔である。
1つの巨大な頭脳にすべてを計算させるのではなく、生体のように「無意識の反射基盤」「専門領域の並列処理」「統合と安全のゲートキーパー」「意識の窓口」へと役割を分けることこそ、複雑なシステムを無理なく破綻させずに動かすための最も自然な最適解なのだと思う。
4. 「分散&並列AI」が普及すると何が変わるのか
今のAI業界はどうしても「1つの巨大モデル(モノリス)に何でも詰め込んで賢くする」という力技の競争が目立つ。しかし、こうした分散&並列のアプローチが広がれば、ハードウェアや運用の常識までガラッと変わるはずだ。
- 「巨大なGPU1枚」から「小さなチップの並列」へ:何百GBものVRAMを積んだ高価なGPUに頼らなくても、複数のNPUや省電力チップ、あるいはネットワーク上の複数台のマシンに「I/O専門」「UI専門」「監査専門」を分散して同時実行できるようになる。
- 「ブラックボックスの恐怖」が減る:単一の巨大AIが暴走したとき、どこを直せば再発しないか制御するのは至難の業だ。分散型なら「UIが崩れたからビジュアルAIだけ差し替える」「監査AIのルールだけ厳しくする」といった局所的なメンテナンスと原因切り分けが可能になる。
- ローカル環境でのプライバシーと速度の両立:すべてをクラウドの巨大AIに投げるのではなく、手元の環境で軽い専門AIたちが並列で下ごしらえや監査を行い、本当に重たい推論が必要なときだけ大きな頭脳を呼ぶ「階層的な分散」も組みやすくなる。
5. OSそのものもAIに作らせればいい
もっとも、こうした基盤やパイプラインを人間が一から実装しようとすれば、膨大な時間とコストがかかる。だが、それこそ「人間は仕様(憲法)だけを定義し、堅牢な土台そのものをAIに設計・実装させる」というセルフホスティング的なアプローチをとればいい。
今のAIは「すごいAIを1つ作る」フェーズにあるが、いずれ「賢いAIが当たり前になったから、次はどうやってチームとして組ませれば一番安定して速いか(アーキテクチャの勝負)」というフェーズに必ず移っていく。
私自身にはこれを一から組み上げる時間もお金もないため、まずは「設計図の青写真」としてここに書き残しておくことにする。世界中のどこかで次世代OSの実験に取り組んでいる開発者の目に留まり、何か小さなヒントにでもなれば嬉しい。
Title:
Beyond the “Zero-App OS”: A Blueprint for a Next-Generation OS Modeling the Brain, Nerves, and Consciousness
Body:
I recently came across a fascinating experiment called Zero-App OS (introduced in an article by Ryo Shimizu).
The article is here ↓
And here’s the source for that↓
It strips away Linux, Python, and even a filesystem. Instead, it packs a quantized AI and a tiny assembler onto a mere 113KB x86-64 assembly foundation, generating and executing machine code on the fly whenever a user requests an app. What makes it truly remarkable is how it handles crashes: when a generated app triggers a CPU exception, that hardware-level error is fed directly back to the AI, which rewrites the assembly and tries again.
The core concept is brilliant. If humans are no longer writing the code, cutting out high-level languages and bloated compilers makes complete sense.
However, thinking about this as a practical, everyday tool, a 113KB setup feels a bit too minimal.
1. Keep the “Unshakeable Foundation” Fixed
Forcing an AI to reinvent basic I/O, screen rendering, and storage access from scratch every single time is inefficient and risky. To build a genuinely usable system, three core layers should remain as a deterministic, rock-solid foundation (exposed as strict APIs) designed beforehand:
- Hardware Control: Drivers, memory protection, and interrupt handling.
- UI Foundation: A fast rendering engine and core UI primitives.
- Data Layer: Filesystems, databases, and reliable persistence mechanisms.
By locking these critical foundations in place, the AI’s job narrows down to a single, high-leverage task: interpreting the user’s intent and generating native machine code on the fly that directly calls these underlying APIs. Pair this architecture with a 100B+ parameter class model (such as an efficient MoE), and one-shot code accuracy skyrockets—turning an experimental toy into a viable daily driver.
2. Stabilize Through Distributed, Parallel AI Pipelines
Just as important is how the AI brain itself is structured. Forcing a single monolithic AI to juggle UI layout, data parsing, and memory safety all at once leads to context pollution and brittle outputs.
Much like modern distributed control systems and software engineering teams, the OS intelligence should be split into specialized agents running in parallel:
- Interface AI (Requirements & Spec): Converses with the user and translates ambiguous requests into a clear, structured specification.
- Specialist AI Agents (Parallel Implementation): Dedicated models—such as an I/O & Data AI, a Visual & UI AI, and a Logic & Compute AI—generate native machine code for their respective domains simultaneously.
- Integrator AI (Linker & Assembler): Stitches the generated modules together, resolving interfaces, memory layouts, and execution order into a cohesive binary.
- Security & Verification AI (Independent Auditor): Acts as a strict gatekeeper right before execution. It inspects the assembled code to ensure there are no unauthorized network calls, rogue file operations, or memory violations—blocking unsafe code and kicking it back to the responsible specialist AI.
Combining this internal checks-and-balances loop with hardware-level CPU exception trapping creates a dual-layer defense that structurally eliminates the risks of dynamic machine-code execution.
3. Mirroring the Human “Brain, Nerves, and Consciousness”
Looking at the architecture as a whole, this division of labor mirrors the human nervous system and consciousness:
- Autonomic Nerves & Spinal Reflexes (Fixed OS Foundation): Keeping the heart beating or pulling a hand away from heat—fast, deterministic survival mechanisms that cannot wait for conscious deliberation.
- Sensory/Motor Cortex & Cerebellum (Specialist AI Agents): Dedicated modules processing vision or fine motor skills simultaneously in the background.
- Brainstem & Thalamus (Integrator & Security AI): Merging disparate neural signals while acting as a subconscious gatekeeper to protect the body from harm.
- Prefrontal Cortex & Consciousness (Interface AI): The executive commander that forms intent and sets the overall direction.
Rather than forcing one massive brain to compute everything at once, separating responsibilities into reflexive foundations, parallel specialists, an unconscious safety gatekeeper, and a conscious interface is nature’s own blueprint for running complex systems reliably without breakdown.
4. What Changes When “Distributed & Parallel AI” Becomes the Norm?
Today’s AI industry is heavily focused on brute-force scaling—cramming everything into a single monolithic model. Yet, shifting toward smaller, specialized models running in parallel fundamentally reshapes hardware and operational paradigms:
- From “One Massive GPU” to “Parallel Small Chips”: Instead of relying on expensive, power-hungry GPUs with hundreds of gigabytes of VRAM, specialized tasks (I/O, UI, Auditing) can be distributed across multiple NPUs, low-power chips, or separate nodes on a local network running simultaneously.
- Eliminating the “Black Box” Fear: When a monolithic AI fails or behaves unpredictably, isolating the root cause is nearly impossible. In a distributed architecture, maintenance is modular: if the UI breaks, swap out the Visual AI; if security needs tightening, update the Auditor AI’s rules.
- Balancing Privacy and Speed Locally: Rather than sending everything to a massive cloud model, lightweight local specialists can handle preprocessing and auditing in parallel on-device, calling upon a larger brain only when heavy reasoning is truly required.
5. Let AI Build the OS Foundation Itself
Of course, building such a microkernel foundation and multi-agent pipeline from scratch takes massive time and resources. Yet, we can apply the exact same philosophy to its creation: humans define the “constitution” (the architectural rules and API boundaries), and AI builds, fuzz-tests, and hardens the underlying foundation itself.
Right now, the race is about building one great AI. Soon, as capable models become commoditized, the real battleground will shift to architecture—how to organize specialized AIs into a fast, rock-solid team.
I don’t have the time or budget to build this myself, so I am leaving this architectural blueprint here instead. If this idea of “Fixed Foundations + Parallel Specialists + Independent Auditing” sparks even a small insight for someone out there building the next generation of computing, putting it into words will have been well worth it.


