<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ShellyForever — a 64-bit OS written entirely in x86-64 NASM assembly (with AI assistance)]]></title><description><![CDATA[<h2>Why I built this</h2>
<p dir="auto">I hate Unix commands. <code>ls</code>, <code>cd</code>, <code>rm</code>, <code>mv</code>, <code>cp</code> — two- and three-letter cryptic abbreviations that made sense to someone in 1971 and have just been carried forward ever since because &quot;that's how it's always been.&quot; I wanted a shell where the commands actually describe what they do, without needing to memorize a decades-old convention. So instead of complaining about it, I designed my own command set and built an OS around it from the ground up.</p>
<p dir="auto"><strong>ShellyForever</strong> (currently v0.1.1) is a 64-bit OS written completely from scratch in x86-64 NASM assembly. No C, no existing kernel, no BIOS libraries beyond boot-time disk/keyboard calls. It boots and runs on real hardware, not just in an emulator. The name's a commitment, not just a name — I plan to keep updating it forever.</p>
<p dir="auto">To be upfront about how this was built: the assembly code itself is almost entirely AI-written. My part was designing the shell and commands — what each one should be called, how it should behave, what made sense to me as the person who'd actually be typing them — then having the AI implement that in asm and iterating with it on bugs and logic.</p>
<h2>How it's built</h2>
<ul>
<li><strong>Bootloader</strong> (<code>boot.asm</code>) — 512-byte boot sector. Starts in 16-bit real mode, loads the kernel off disk, switches to 32-bit protected mode, builds its own minimal page tables, switches to 64-bit long mode, jumps into the kernel.</li>
<li><strong>Kernel</strong> (<code>kernel.asm</code>) — everything else:
<ul>
<li>A VGA text-mode driver (writes directly to <code>0xB8000</code>) with scrolling</li>
<li>A polled PS/2 keyboard driver (decodes scancode set 1, handles shift, backspace, enter)</li>
<li><strong><code>rush</code></strong>, the custom shell — prompt, line editor, a tokenizer that understands quoted strings, and a command dispatcher</li>
<li>An in-memory filesystem tree rooted at <code>/home</code>, with recursive copy/move/delete</li>
<li>A simple <code>name = value</code> int64 variable table</li>
<li>A built-in line editor for file content</li>
</ul>
</li>
</ul>
<h2>The commands (no more <code>ls</code>/<code>rm</code>/<code>cd</code>)</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Command</th>
<th>Example</th>
<th>What it does</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>cf</code></td>
<td><code>cf docs</code>, <code>cf ..</code></td>
<td>change folder</td>
</tr>
<tr>
<td><code>mkf</code></td>
<td><code>mkf docs</code></td>
<td>make a folder</td>
</tr>
<tr>
<td><code>mkfl</code></td>
<td><code>mkfl a.txt &quot;text&quot;</code></td>
<td>make a file with content (<code>-force</code>/<code>-silent</code>/<code>-info</code>/<code>-test</code>)</td>
</tr>
<tr>
<td><code>del</code></td>
<td><code>del a.txt</code></td>
<td>delete a file (requires <code>auth</code>)</td>
</tr>
<tr>
<td><code>rname</code></td>
<td><code>rname old.txt new.txt</code></td>
<td>rename a file or folder</td>
</tr>
<tr>
<td><code>owrite</code></td>
<td><code>owrite a.txt &quot;new text&quot;</code></td>
<td>overwrite a file's content in place</td>
</tr>
<tr>
<td><code>cpy</code></td>
<td><code>cpy docs docs_backup</code></td>
<td>copy a file/folder (recursive)</td>
</tr>
<tr>
<td><code>mov</code></td>
<td><code>mov docs archive</code></td>
<td>move/rename a file/folder (recursive)</td>
</tr>
<tr>
<td><code>show</code></td>
<td><code>show &quot;hi&quot;</code>, <code>show a</code></td>
<td>print a message or a variable</td>
</tr>
<tr>
<td><code>list</code></td>
<td><code>list</code></td>
<td>list current folder contents</td>
</tr>
<tr>
<td><code>view</code></td>
<td><code>view a.txt</code></td>
<td>print a file's content</td>
</tr>
<tr>
<td><code>find</code></td>
<td><code>find notes.txt</code></td>
<td>search every drive for a name, print its path</td>
</tr>
<tr>
<td><code>lookfor</code></td>
<td><code>lookfor &quot;todo&quot; notes.txt</code></td>
<td>grep a file's content, with optional line range</td>
</tr>
<tr>
<td><code>edit</code></td>
<td><code>edit a.txt</code></td>
<td>built-in text editor</td>
</tr>
<tr>
<td><code>&lt;n&gt; = &lt;value&gt;</code></td>
<td><code>a = 5</code></td>
<td>set a variable</td>
</tr>
<tr>
<td><code>rmv</code></td>
<td><code>rmv a</code></td>
<td>remove a variable</td>
</tr>
<tr>
<td><code>vars</code></td>
<td><code>vars</code></td>
<td>list all variables</td>
</tr>
<tr>
<td><code>calc</code></td>
<td><code>calc 1 + 2 * 3</code></td>
<td>evaluate a math expression</td>
</tr>
<tr>
<td><code>rr</code></td>
<td><code>rr script.rsh</code></td>
<td>run a rush script file</td>
</tr>
<tr>
<td><code>prs</code></td>
<td><code>prs</code>, <code>prs kill 1</code></td>
<td>list/kill running scripts</td>
</tr>
<tr>
<td><code>auth</code></td>
<td><code>auth sdown</code></td>
<td>elevate for one dangerous command</td>
</tr>
<tr>
<td><code>current</code></td>
<td><code>current</code></td>
<td>print current path</td>
</tr>
<tr>
<td><code>wipe</code></td>
<td><code>wipe</code></td>
<td>clear the screen</td>
</tr>
<tr>
<td><code>dscan</code></td>
<td><code>dscan</code></td>
<td>scan drives for existing volumes</td>
</tr>
<tr>
<td><code>fmt</code></td>
<td><code>fmt data</code></td>
<td>format a drive with a volume label</td>
</tr>
<tr>
<td><code>mount</code></td>
<td><code>mount data</code></td>
<td>mount a formatted drive under <code>/data/</code></td>
</tr>
<tr>
<td><code>label</code></td>
<td><code>label old new</code></td>
<td>rename a mounted drive's label</td>
</tr>
<tr>
<td><code>ali</code></td>
<td><code>ali gs list</code></td>
<td>create a command alias</td>
</tr>
<tr>
<td><code>alis</code></td>
<td><code>alis</code></td>
<td>list aliases</td>
</tr>
<tr>
<td><code>color</code></td>
<td><code>color cyan</code></td>
<td>change output text color</td>
</tr>
<tr>
<td><code>sync</code></td>
<td><code>sync</code></td>
<td>save the filesystem to disk</td>
</tr>
<tr>
<td><code>rboot</code></td>
<td><code>rboot</code></td>
<td>save and restart (requires <code>auth</code>)</td>
</tr>
<tr>
<td><code>sdown</code></td>
<td><code>sdown</code></td>
<td>save and shut down (requires <code>auth</code>)</td>
</tr>
</tbody>
</table>
<p dir="auto">Some quality-of-life extras: command history and scrollback (arrow keys), <code>;</code> to chain commands on one line, <code>~</code> to pipe one command's output into another, <code>$</code> for comments, and <code>.rsh</code> script files for automation.</p>
<h2>Known limitations</h2>
<p dir="auto">No interrupts yet (keyboard/disk are polled), no real memory allocator (flat identity-mapped first 2MB), no ACPI (shutdown uses emulator magic ports on QEMU/Bochs/VirtualBox, halts cleanly on real hardware/anything else), and fixed-size file/folder tables for now.</p>
<h2>Code</h2>
<p dir="auto"><div class="card col-md-9 col-lg-6 position-relative link-preview p-0">



<a href="https://github.com/TheServer-lab/ShellyForever" title="GitHub - TheServer-lab/ShellyForever: A 64-bit shell-based OS written entirely in x86-64 NASM assembly, from scratch — no C, no BIOS libraries beyond boot-time disk/keyboard calls, no existing kernel.">
<img src="https://opengraph.githubassets.com/0e75a50827088ce4c286cea88955e298c9ac750a686bc19b824938e0e19cedba/TheServer-lab/ShellyForever" class="card-img-top not-responsive" style="max-height: 15rem;" alt="Link Preview Image" onerror="this.parentElement.remove()" />
</a>



<div class="card-body">
<h5 class="card-title">
<a class="text-decoration-none" href="https://github.com/TheServer-lab/ShellyForever">
GitHub - TheServer-lab/ShellyForever: A 64-bit shell-based OS written entirely in x86-64 NASM assembly, from scratch — no C, no BIOS libraries beyond boot-time disk/keyboard calls, no existing kernel.
</a>
</h5>
<p class="card-text line-clamp-3">A 64-bit shell-based OS written entirely in x86-64 NASM assembly, from scratch — no C, no BIOS libraries beyond boot-time disk/keyboard calls, no existing kernel. - TheServer-lab/ShellyForever</p>
</div>
<a href="https://github.com/TheServer-lab/ShellyForever" class="card-footer text-body-secondary small d-flex gap-2 align-items-center lh-2">



<img src="https://github.githubassets.com/favicons/favicon.svg" alt="favicon" class="not-responsive overflow-hiddden" style="max-width: 21px; max-height: 21px;" onerror="this.remove()"/>



<p class="d-inline-block text-truncate mb-0">GitHub <span class="text-secondary">(github.com)</span></p>
</a>
</div></p>
<p dir="auto">Happy to go deeper on the boot process, the on-disk filesystem format, or the AI-assisted workflow if people are curious. Feedback welcome, especially from anyone who's done bare-metal x86-64 work.</p>


<div class="row mt-3"><img class="img-thumbnail" src="https://sh.itjust.works/pictrs/image/104a03b5-ec1b-4bec-a2fe-f555035ed6dc.png" alt="Link Preview Image" /></div>]]></description><link>https://citiverse.it/topic/8e3e2f5c-02b9-4f76-9484-73f52a887367/shellyforever-a-64-bit-os-written-entirely-in-x86-64-nasm-assembly-with-ai-assistance</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 10:23:39 GMT</lastBuildDate><atom:link href="https://citiverse.it/topic/8e3e2f5c-02b9-4f76-9484-73f52a887367.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Aug 2026 16:18:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ShellyForever — a 64-bit OS written entirely in x86-64 NASM assembly (with AI assistance) on Tue, 04 Aug 2026 12:36:32 GMT]]></title><description><![CDATA[<p dir="auto">You complain about cd (change directory) and instead replace it with cf (change folder)? How is that any better? The keys even have the same distance to each other.</p>
<p dir="auto">What?</p>
]]></description><link>https://citiverse.it/post/https://feddit.org/comment/14299282</link><guid isPermaLink="true">https://citiverse.it/post/https://feddit.org/comment/14299282</guid><dc:creator><![CDATA[b0rax@feddit.org]]></dc:creator><pubDate>Tue, 04 Aug 2026 12:36:32 GMT</pubDate></item><item><title><![CDATA[Reply to ShellyForever — a 64-bit OS written entirely in x86-64 NASM assembly (with AI assistance) on Tue, 04 Aug 2026 11:47:17 GMT]]></title><description><![CDATA[<p dir="auto">Honestly, my biggest complaint about Linux is the unmount command. Really? They couldn't add one more character to 'umount'?</p>
<p dir="auto">Likewise, you have lots of four character commands. Why drop one character from move and copy?</p>
]]></description><link>https://citiverse.it/post/https://lemmy.world/comment/25117694</link><guid isPermaLink="true">https://citiverse.it/post/https://lemmy.world/comment/25117694</guid><dc:creator><![CDATA[mcavoya@lemmy.world]]></dc:creator><pubDate>Tue, 04 Aug 2026 11:47:17 GMT</pubDate></item><item><title><![CDATA[Reply to ShellyForever — a 64-bit OS written entirely in x86-64 NASM assembly (with AI assistance) on Tue, 04 Aug 2026 08:34:09 GMT]]></title><description><![CDATA[<p dir="auto">Seems far more esoteric than existing UNIX commands, even weirder that some of them the description can only be understood if you already know <em>better</em> unix commands.</p>
<blockquote>
<p dir="auto">grep a file's content, with optional line range</p>
</blockquote>
<p dir="auto">If I didn't already know what grep was, how would this be helpful, if I do know what grep is - why would I want it changed?</p>
<p dir="auto">Change for changes sake is never good.</p>
]]></description><link>https://citiverse.it/post/https://lemmy.world/comment/25115849</link><guid isPermaLink="true">https://citiverse.it/post/https://lemmy.world/comment/25115849</guid><dc:creator><![CDATA[ms_lane@lemmy.world]]></dc:creator><pubDate>Tue, 04 Aug 2026 08:34:09 GMT</pubDate></item><item><title><![CDATA[Reply to ShellyForever — a 64-bit OS written entirely in x86-64 NASM assembly (with AI assistance) on Mon, 03 Aug 2026 23:48:29 GMT]]></title><description><![CDATA[<p dir="auto">If you hate commands so much why didn't you just alias them? Instead you've replaced them all with your own esoteric versions. That's fine, if it works better for you then by all means. But it's certainly not easier or better than any of the other conventions we have.</p>
]]></description><link>https://citiverse.it/post/https://sh.itjust.works/comment/26721564</link><guid isPermaLink="true">https://citiverse.it/post/https://sh.itjust.works/comment/26721564</guid><dc:creator><![CDATA[vendetta9076@sh.itjust.works]]></dc:creator><pubDate>Mon, 03 Aug 2026 23:48:29 GMT</pubDate></item><item><title><![CDATA[Reply to ShellyForever — a 64-bit OS written entirely in x86-64 NASM assembly (with AI assistance) on Mon, 03 Aug 2026 21:02:54 GMT]]></title><description><![CDATA[<p dir="auto">Lmao this is a troll right?</p>
]]></description><link>https://citiverse.it/post/https://sh.itjust.works/comment/26719360</link><guid isPermaLink="true">https://citiverse.it/post/https://sh.itjust.works/comment/26719360</guid><dc:creator><![CDATA[die444die@sh.itjust.works]]></dc:creator><pubDate>Mon, 03 Aug 2026 21:02:54 GMT</pubDate></item><item><title><![CDATA[Reply to ShellyForever — a 64-bit OS written entirely in x86-64 NASM assembly (with AI assistance) on Mon, 03 Aug 2026 19:23:32 GMT]]></title><description><![CDATA[<p dir="auto">Their contribution to this project appears to be just making up command names and describing common operations. That's kind of worthless.</p>
<p dir="auto">On the functionality front rather than the technical accomplishment front, why would anyone want to use a vibe-coded OS that breaks long-standing usage patterns and has zero oversight over the actual code? If you just want to change the name of commands, you can use "alias", or in this scheme "ali" because that apparently "describes what they do" better than the full word.</p>
]]></description><link>https://citiverse.it/post/https://sopuli.xyz/comment/24930123</link><guid isPermaLink="true">https://citiverse.it/post/https://sopuli.xyz/comment/24930123</guid><dc:creator><![CDATA[zaktor@sopuli.xyz]]></dc:creator><pubDate>Mon, 03 Aug 2026 19:23:32 GMT</pubDate></item><item><title><![CDATA[Reply to ShellyForever — a 64-bit OS written entirely in x86-64 NASM assembly (with AI assistance) on Mon, 03 Aug 2026 18:03:41 GMT]]></title><description><![CDATA[<p dir="auto">Mentioned the word "AI"</p>
]]></description><link>https://citiverse.it/post/https://sh.itjust.works/comment/26716616</link><guid isPermaLink="true">https://citiverse.it/post/https://sh.itjust.works/comment/26716616</guid><dc:creator><![CDATA[r1ck@sh.itjust.works]]></dc:creator><pubDate>Mon, 03 Aug 2026 18:03:41 GMT</pubDate></item><item><title><![CDATA[Reply to ShellyForever — a 64-bit OS written entirely in x86-64 NASM assembly (with AI assistance) on Mon, 03 Aug 2026 17:52:41 GMT]]></title><description><![CDATA[<p dir="auto">what did you do to trigger the downvotes? lol</p>
]]></description><link>https://citiverse.it/post/https://lemmy.ml/comment/27049807</link><guid isPermaLink="true">https://citiverse.it/post/https://lemmy.ml/comment/27049807</guid><dc:creator><![CDATA[eldavi@lemmy.ml]]></dc:creator><pubDate>Mon, 03 Aug 2026 17:52:41 GMT</pubDate></item></channel></rss>