Codync
A free, open-source 1:1 alternative to Grok Bot and Muse. Message Claude Code, Codex, Cursor and 40+ coding agents as persistent bots from your iPhone, Mac or Linux desktop. Group chats, threads, appr
A decentralized kernel network where AI survives as a swarm. We built the immortal body first — and we show you the honest completion % of every layer, including the parts that are 10%.
Developer toolsGitHub @monyuonyuOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Repository information has not been collected yet.
No updates detected yet. GitHub releases will appear here.
AIが死なないための OS — a research kernel where an AI lives as a swarm across PCs, phones and SBCs. μT-Kernel 3.0 (IEEE 2050) core; bare-metal x86-64 & AArch64, Linux, Android, Windows. SWIM gossip, distributed inference, a small learning mind.
Translation pending
Taken from the repository README
Loading the full README.
Read the full README ↗Translated from README.ja.md (the Japanese version is the original) at commit
4722c82d.
An OS where AI never dies — a research kernel written from scratch.
The idea: instead of living in one company's data center, an AI is spread across many ordinary devices — PCs, phones, small boards — so that as long as any one of them is still running, a failure does not kill it. p-kernel builds that "home for an AI that participants bring together, and participants can stop" starting from the kernel, the lowest layer of the OS.
This README keeps what runs today, what is being designed, and what is only a vision clearly apart. If anything here overstates reality, that is a bug and gets fixed. Open problems are published in one place, the gap-ledger.
The project's goal, as written in the Japanese README (with dated notes):
Build a platform that satisfies an AI's self-preservation.
Do distributed computing at the kernel level.
2025-04-06
Decided to see how far I can get with the power of AI.
2026-03-22
This is moving fast... Aiming not for an ordinary kernel but for an AI-first kernel
that repairs and replicates itself like a living thing, and becomes a collective
mind through distributed inference.
Today's AI can only run inside a particular company's servers. If those servers break or the service ends, the AI is gone, along with everything it learned. p-kernel asks: if an AI lived spread across many machines, could we build a mind that does not die from a failure or from the circumstances of any one place?
Why should it not die? The goal is not a clever AI that surpasses frontier models.
What we want to keep is the record of people's lives. Even after a person is gone, "this person was really here" remains. Even if humanity is gone, the swarm starts up again and keeps the records. We want to build that kind of ark.
So what we ask of the brain is to hold everyday conversation and to remember it. An ark's job is not to spread like fire, but to stay afloat.
(A brain that can remember conversations and answer from them, and a procedure for starting up again, do not exist yet.)
But "does not die" does not mean "cannot be stopped." Only devices whose owners have agreed take part. An owner can remove their device from the swarm at any time. People will be able to stop the whole swarm. p-kernel will not have any feature that spreads by breaking into other machines. These are design rules (rule 9 of the overarching rules in the ROADMAP). The owner's consent record and the signing allowlist already exist. A test that nothing is left on a removed device, the path to stop the whole swarm, and identifying the protocol name and version on the wire are still to be built and confirmed by tests.
In research terms, p-kernel explores an operating substrate for distributed artificial life (an Artificial Life substrate). This is not a claim to have created life or consciousness. It is an experiment in building a base on which small minds can persist across failures, share memory and knowledge, and evolve within explicit safety boundaries.
To get there, it is built on these principles:
The system is thought of as a living thing with five layers.
| Layer | Role | What exists today |
|---|---|---|
| Body | Hardware, I/O, persistent memory | ARK (a power-loss-safe filesystem), p-fs (a distributed store) |
| Brain | Thinking and learning inside one device | A small word-association brain (~21,568 parameters) and a language model that grows from a blank slate |
| Self | A "self" that continues across machines | A hash-chained record of its history (self/lin) |
| Collective | Many devices acting as one | SWIM, groups of nearby devices (regions), in-kernel pub/sub (K-DDS), swarm learning |
| Evolution | Changing itself while running | Still at the first stage; the safety mechanisms (isolation and signing) come first |
Claims of "works" in this README carry the strength of their evidence.
Anything not listed under "What runs today" is not claimed to work.
kernel/mtkernel3/).| Target | Status |
|---|---|
| Bare-metal x86-64 (QEMU) | Boots to a shell |
| Bare-metal AArch64 (QEMU virt) | Boots to a shell. Raspberry Pi 3 network-boot instructions included (the real board's SD card is not supported yet) |
Process on Linux (aarch64, boot/linux) | Boots to a shell. The base of the Android app |
Process on Linux (x86_64, boot/linux_x86_64) | Boots to a shell |
Windows x86_64 (boot/windows/x86_64) | Builds an .exe (checked in CI). Not yet confirmed to start on a real machine |
tk_* calls used by upper layers behave as specified (tasks, semaphores, event flags, mutexes, message buffers, mailboxes, fixed- and variable-size memory pools, cyclic handlers, alarm handlers, time, dispatch disabling — including error codes and boundary values). Expected values are checked against the μT-Kernel 3.0 specification (three items follow the reference implementation, not the specification). Fourteen deliberately broken kernel builds are confirmed to turn the tests red, every time. Runs on Linux x86_64, bare-metal x86, and bare-metal AArch64 (arch/common/tk_conform.c).smp-autodetect — a non-blocking job that failed 14 of its 15 runs up to 2026-09-09).relay/). Traffic is authenticated with HMAC-SHA256 and protected against replay (CI relay-tests). It is not encrypted. If the relay goes down the network remains, and anyone can run their own relay.world command.connect-anywhere-certs).survival-loop) [live].protect-loop-live and others) [live].ark-crash-fuzzer) has not seen it return corrupted data since the ARK-2 fixes (before them, this test found 4 bugs).collective-learn-live) [live].A small brain of about 21,568 parameters that learns associations between words.
mind teach sky blue, and mind ask sky answers "blue".shared-mind-live) [live].one-mind-live).belief-revision-live) [live].Limits: it can only learn pairs of words and cannot form sentences. The measurements were on constructed tasks, not real conversation. Details: living-mind.md.
The word-association brain can only learn a fixed vocabulary. So since June 2026 the direction has been not to load a pre-trained model, but to grow a small, blank language model on the device itself.
samples/11_distributed/run_cradle_live.sh, not in CI; the lessons are fixed sentences, not SmolLM2 output). However, once the text used for checking no longer overlaps the training side (2026-10-12), the taught student does worse than an untaught one, and this test is red. The earlier green rested on memorizing text that also appears on the training side.student quant <8|4|2> <row|g32|tensor> rounds a copy of its own weights to int8, int4, or int2 and measures how much worse it gets. int8 (per row) barely changes it (CI st-quant). For now it only measures; it does not yet store itself in the smaller form. Notes: brain-quantization.mdst-merge). So far this is a safety net rather than clever merging. Notes: brain-merge.mdThe safety mechanisms are built first, ahead of the day it rewrites its own code.
ring3-survival, a non-blocking job) [in-proc].Not yet: the learning-side code still runs inside the kernel, and the same isolation on AArch64 is not done.
http://127.0.0.1:7800) and draws itself and its peers as stars. The stars move with real sleep and learning events.crown-text-identity).Not claimed to work yet.
The list of things designed but not yet verified is in V-MODEL.md.
Where it is headed, not where it is now.
The whole way of thinking is in survival-network.md.
No mechanism to push back against devices that do not contribute (2026-07-04). A mechanism (recip) that finds devices which only receive and quietly deprioritizes them was taken as far as a design. It was then decided not to adopt it: if some devices are weak, the swarm can make up for them. Devices that answer requests do so without expecting anything back. The design document is kept in survival-recip.md.
On one machine (Linux, about a minute)
sudo apt install -y build-essential
git clone https://github.com/monyuonyu/p-kernel.git
cd p-kernel/boot/linux # on an aarch64 machine
# cd p-kernel/boot/linux_x86_64 # on an x86_64 machine
make && ./p-kernel
At the prompt:
mind teach sky blue ← teach
mind ask sky ← ask (→ blue)
mind wait ← wait for sleep to fix it into the weights
world ← the swarm's view
help ← all commands
./p-kernel running, open http://127.0.0.1:7800 in a browser. You can talk to the baby from there too../p-kernel in a second terminal. On the same LAN they connect automatically. Teach on one side and ask on the other.make in relay/ (tests: make test). Run ./relay on a server reachable from outside, and each device joins with the same key.samples/11_distributed/run_swarm_demo.sh (x86_64 Linux, 6–8 minutes). A small classifier learned by one node (635 parameters, not a language brain) spreads to ten; they keep answering as they are killed one by one, and a newcomer inherits from the last survivor. These are ten processes on one machine, not ten devices.android/ (docs/android.md).make in boot/x86 or boot/aarch64 (scripts to boot in QEMU included).tcb_churn.c) keeps watching for bugs of the same kind as KILL-CHURN.See LICENSE. Original code is BSD-3-Clause. The kernel core (kernel/mtkernel3/, derived from μT-Kernel 3.0) follows the T-License 2.2.