nefuOS: A from-scratch OS with a browser, WebGL, and a local LLM — built in one month
Description and use
nefuOS is a fully custom OS stack built in one month with AI assistance, featuring a browser, compiler, package manager, shell, games, and a local LLM.
Problem
Build a complete operating system with a browser, compiler, package manager, and local LLM in one month using AI assistance.
Outcome
nefuOS achieved a fully functional OS stack in one month, with 1.04M lines of code, including a custom browser, compiler, package manager, shell, games, and a fine‑tuned local LLM that can call tools.
Workflow
- 1. Hand‑write ~120k lines of core kernel, VFS, IPC, and architecture.
- 2. Use AI to generate ~80% of remaining code, adding ~215k lines of self‑developed code and ~1.04M lines with third‑party code.
- 3. Implement dual BIOS/UEFI boot, TLS 1.3 stack, SWGL for WebGL2, and QuickJS bug workarounds.
- 4. Integrate custom browser, compiler, package manager, shell, games, AI, and other components.
- 5. Release on GitHub after one month.
Evidence
I hand‑wrote the first ~120k lines (kernel, VFS, IPC, the core architecture). Then I let AI fill in the implementation details — about 80% of the rest.
Architecture, decisions, and debugging are mine. AI just made the typing faster.
Self-developed: ~215k lines (C/C++ ~192k, Python ~24k)
With third-party: ~1.04M lines
One month
- Record date: 2026-10-02T12:56:02.597Z