Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

PsyDian logo: a capybara looking up

PsyDian documentation

PsyDian is an AI-assisted operating system written from scratch in Rust for x86_64. When the kernel hits a failure, such as a page fault, a failed heap allocation or a panic, it records a structured diagnostic. A host-side AI Bridge reads that record over the serial port and asks an AI service to explain what happened and what to try next.

One rule shapes the design: the AI only suggests, the kernel checks, and the user decides. The kernel has no network and no API keys, and every AI reply is checked twice before anything runs.

User -> shell -> kernel -> diagnostic record -> serial line -> AI Bridge -> AI service

Try it

On Linux, macOS or Windows (WSL):

curl -fsSL https://raw.githubusercontent.com/PsyDianOS/PsyDian_OS/main/scripts/install.sh | bash
psydian demo

psydian demo uses a built-in mock AI, so no API key is needed. Inside PsyDian, try ai hello, then run 1.

How this book is organised

SectionWhat you find thereStart with
ProductWhy PsyDian exists, who it is for, what it costs and the planBusiness requirements
ArchitectureHow the kernel, the AI Bridge and the AI service fit togetherHigh-level design
ReferenceThe serial protocol and every error codeProtocol and API
EngineeringSecurity model, testing, CI/CD and traceabilitySecurity design
ProjectWho owns what and how the repository is laid outTeam responsibilities

New to the project? Read the project overview first, then the high-level design.

These documents started as the design specification written before the code. Where the implementation has moved on, the source code and its README are the final word; a pull request that brings a page up to date is very welcome.