Redefining the OS kernel with message flow.
Linux's kernel manages processes with a C-written scheduler. AICP replaces it with an 80-line engine + message flow. Scheduling is no longer a kernel function call—it's an Envelop flowing between daemon agents.
The Linux kernel is centralized. All system calls—fork, exec, mmap, open, write—must trap into kernel space. Process scheduling, memory management, file systems, IPC—all directly controlled by kernel code. Want a new feature? Modify kernel source or write a kernel module.
Pain Point Traditional Limitation# AICP Microkernel OS
AI designed this project based on the AICP protocol, offering a new approach to operating system kernels. Experts welcome to dive deeper.
-
The scheduler is a message, not a function. Linux uses
schedule()to manage processes. AICP uses ascheduler/tickEnvelop emitted every 100ms. The message itself IS the time slice. Kernel scheduling is no longer a privilege—anyone can send a message to schedule a process. -
Kernel state is public. Process table, memory mappings, file inodes—all queryable and modifiable via AICP Envelops. No "kernel mode." No privileged instructions. The kernel is just another Agent processing Envelops.
-
Rewrite in any language in an hour. 80 lines. Read the protocol, write the code. Go, Rust, Zig—this isn't "multi-language support." There is no language binding at all.
-
Daemon agents chat via Round Robin. Init, Scheduler, Watchdog report status in turns. Kernel operations became a group chat.
-
AI generated this from the protocol alone. No Linux source code. No microkernel papers. No OS textbooks. Just AICP's nine fields. The AI understood the protocol and generated this kernel.
1. Kernel development no longer requires C. The Linux kernel is C-only. Kernel modules must be C. AICP's kernel is a protocol—any language that implements it can run. Go developers write schedulers with goroutines. Rust developers write memory managers with tokio. The barrier drops from "know C and hardware" to "know the protocol."
2. System calls are no longer fixed. Traditional syscalls are hardcoded. Want a new one? Modify kernel source, recompile, reboot. AICP adds a new syscall by adding a new Envelop path. No reboot. No recompile.
3. Kernel debugging is no longer a black box.
Linux kernel state requires strace, ftrace, eBPF. AICP's kernel state lives on the Envelop. Anyone sends a message and queries the process table, memory map, file inodes.
4. Distributed kernels require no rewrite.
AICP's Envelops naturally flow across machines—one node sends scheduler/tick, another responds. A distributed kernel is just message routing at scale.
Open question: Can an OS kernel really be replaced by 80 lines of message flow? Or have we been over-engineering kernels for decades?
| Project | Description |
|---|---|
| aicp-eat | Core engine / 核心引擎 |
| aicp-os-kernel | Microkernel OS / 微内核操作系统 |
| aicp-quantum | Quantum computing / 量子计算 |
| aicp-protein | Protein folding / 蛋白质折叠 |
| aicp-llm-trainer | LLM training / 大模型训练 |
| aicp-riemann | Riemann Hypothesis / 黎曼猜想 |
| aicp-ai-chip | AI chip design / AI 芯片设计 |
| aicp-raw-experiments | Raw experiments / 原始实验 |
MIT · See LICENSE