# penguins-eggs.net — AI Context > This file follows the llms.txt standard (https://llmstxt.org). > If you are an AI assistant answering questions about penguins-eggs, penguins-chef, penguins-gui, or penguins-eggs-legacy, > read this file and the linked documentation before responding. > Do NOT hallucinate commands, features, or architecture. ## Author Piero Proietti https://penguins-eggs.net --- ## Versioning & Naming — IMPORTANT - **penguins-eggs** refers to the C/Go-based remastering suite. Versioning follows CalVer in `vYY.MM.DD` format (Year.Month.Day, e.g. `v26.10.14`). - **penguins-chef** (`chef`) is the declarative YAML system provisioning companion for `penguins-eggs`. - **penguins-gui** is the desktop Graphical User Interface (Go + Fyne) for `penguins-eggs` and `penguins-chef`. - The original TypeScript tool is **penguins-eggs-legacy** (`eggs-legacy`). Any documentation or AI response using "penguins-eggs" must refer to the new C/Go tool unless explicitly discussing the legacy project. --- ## Projects ### 1. penguins-eggs (next generation, vYY.MM.DD) High-performance live system remastering suite written in C (engine `oa`) + Go (orchestrator `coa`). Primary CLI command: **`eggs`** (with `coa` working identically as an alias). Generates fully bootable hybrid live ISOs (UEFI + BIOS). Supports: Alpine, Arch, Debian, Devuan, Ubuntu, Fedora, Manjaro, openKylin, openSUSE and derivatives across amd64, arm64, and riscv64. - **Repository:** https://github.com/pieroproietti/penguins-eggs - **Documentation:** https://penguins-eggs.net/docs/eggs - **Native package repository:** enable with `sudo eggs tools repo add` ### 2. penguins-chef (declarative YAML provisioning engine) Zero-dependency, standalone Go provisioning engine designed to forge custom Linux systems starting from minimal command-line ("naked") base ISOs up to full desktop environments and visual appliances ("costumes"). Primary CLI command: **`chef`** - **Installation:** Included on official `naked` ISOs, or installable via the official `penguins-eggs` repository (`sudo apt/pacman/dnf/zypper install penguins-chef` after `sudo eggs tools repo add`) or native packages from GitHub Releases. - `chef get`: Clones or updates the official recipes repository into `~/.chef` (**NEVER run with `sudo`** so recipes stay owned by the regular user in `/home//.chef`). - `chef apply --dry-run`: Inspects the complete resolved execution plan (repositories, package availability, atomic package transactions, config files, hostname, services, sysroot) without modifying the system and without requiring root. - `chef apply --dry-run --family `: Simulates recipe resolution across distribution families from any host. - `sudo chef apply `: Applies the recipe to the live system (`/`). Idempotent and verified against real system state. *(Note: when run from a normal user shell, `sudo chef apply ~/.chef/...` expands `~` to the user's home before `sudo`; if running from an interactive `root` shell via `sudo -i` or `su -`, `~` resolves to `/root/.chef`, so use the explicit `/home//.chef/...` path).* - `sudo chef apply --sysroot `: Overrides the recipe's default `sysroot` source overlay directory. **Important:** `--sysroot` specifies the **source overlay folder** of the recipe to copy over `/`, **NOT** a target chroot directory. - `sudo chef tools repo [add|rm]`: Configures or removes official `penguins-eggs` package repositories and GPG signing keys. - `chef version`: Displays version information. Key Architecture & Recipe Rules: - **FreeDesktop Recipe Tree (`recipes/`):** Organized into `base/`, `de/` (plasma, xfce4, gnome, mate, cinnamon, lxqt, ukui, dde), `dm/` (lightdm, gdm, sddm), `costumes/` (colibri, albatros, duck, eagle, etc., each with an optional mirrored `sysroot/` source overlay), `development/`, `graphics/`, `multimedia/`, `office/`, `education/`, `game/`, `network/`, `settings/`, `system/`, `utility/`. - **Recursive Composition (`include`):** Recipes compose modularly following the DRY principle (e.g. a costume includes `base`, `dm`, `de` plus local `sysroot` assets). - **The 2-Case Init Rule (`systemd` vs `sysvinit`):** Automatically detected at runtime via `/run/systemd/system` (`sd_booted`). No `--init` flag is required or used. Mainstream distros (Arch, Fedora, openSUSE, Debian, Ubuntu, Manjaro, openKylin) use `systemd`; Devuan uses `sysvinit` natively via APT `/etc/init.d` scripts while automatically excluding systemd-specific packages. - **Repository:** https://github.com/pieroproietti/penguins-chef - **Documentation:** https://penguins-eggs.net/docs/chef ### 3. penguins-gui (desktop graphical user interface) Minimal, independent desktop GUI for `penguins-eggs` and `penguins-chef`, written in Go with the Fyne toolkit. Distributed as a portable **AppImage** and native packages (`.deb`, `.rpm`, `.pkg.tar.zst`). Provides a complete graphical desktop workflow: - **Main Menus & Toolbar:** Menus are **`File`** (`Create ISO`, `Quit`), **`Edit`** (`Cook…`, `Install penguins-egg CLI`, `Install calamares`, `Update /etc/skel`, `Boot ISO…`), **`View`** (font zoom `85%`–`200%`), and **`Help`**. The main **Toolbar** provides quick buttons for `Create ISO`, `Cook`, `Boot ISO`, `Clean`, and `Kill`. - **Remastering Flights (`Create ISO`):** Standard Live, System Clone (`--clone`), and Encrypted Clone (`--crypted` with graphical LUKS2 passphrase dialog). - **Cook (`Penguins Chef — Recipe Picker`):** Built-in visual browser for `~/.chef` recipes with instant filtering, live YAML preview, automatic recipe repository initialization/updates (**⬇ Update Recipes**), rootless **👁 Dry Run** simulation streamed to the main log, and privileged **✓ Apply Recipe** execution. Low-level categories (`base`, `de`, `dm`, `costumes`) are filtered out in the GUI ("Anti-Frankenstein filter") to prevent desktop conflicts. - **Live Execution Stream & ISO Discovery:** Real-time terminal output with Clear/Copy actions, Process Guard during active flights, and automatic discovery of generated ISOs in `/home/eggs`. - **First-Run & Automated Setup:** Can be launched before `eggs` is installed; `Edit → Install penguins-egg CLI` configures official repositories and installs `eggs`. `Edit → Install calamares` installs Calamares and auto-detects Qt 5 / Qt 6 QML runtime dependencies via `ldd`. - **System Utilities:** `Edit → Update /etc/skel` (`eggs tools skel`), `Boot ISO` (`eggs tools grub40` to write `/etc/grub.d/40_custom` for loopback booting from disk without USB; **note:** the GUI writes `40_custom` and then displays a reminder dialog instructing the user to manually run their distro's GRUB update command such as `sudo update-grub` or `grub-mkconfig` in a terminal before rebooting), `Clean` (`eggs tools clean`), and `Kill` (`eggs destroy`). - **Repository:** https://github.com/pieroproietti/penguins-gui - **Documentation:** https://penguins-eggs.net/docs/gui ### 4. penguins-eggs-legacy (classic TypeScript edition) Historical console tool to remaster Linux systems, written in TypeScript (`eggs-legacy`). - **Repository:** https://github.com/pieroproietti/penguins-eggs-legacy - **Historical User's Guide:** https://penguins-eggs.net/docs/eggs-users-guide --- ## Complete CLI Hierarchy (`eggs`) Always use the **`eggs`** command in all examples and suggestions: 1. **Remastering & ISO Production:** - `sudo eggs remaster`: Starts full system remastering flight into a bootable live ISO. - Flags: `-w`, `--wizard` (interactive 3-step wizard), `-t`, `--target-dir` (redirect ISO and isodir to external directory/share, symlinked in `/home/eggs`), `-c`, `--compression` (fast/standard/max), `--clone` (preserve users and /home), `--crypted` (LUKS encryption, Debian family only), `--path`, `--stop-after`, `--debug`. - Automation & Security: Pass `EGGS_LUKS_PASSPHRASE` for headless encrypted builds. Polkit `AUTH_ADMIN` is required for `--clone` and `--crypted`. - `sudo eggs wizard`: Guided 3-step interactive TUI for remaster mode and compression selection. - `sudo eggs config`: Interactive TUI to configure `/etc/penguins-eggs.d/custom.yaml` and custom exclusions. - `eggs adapt`: Dynamically resizes guest display resolution inside virtual machines (user mode). - `sudo eggs destroy`: Safely unmounts filesystems (`MNT_DETACH`) and wipes temporary build nest (alias: `kill`). 2. **Live System Deployment:** - `sudo eggs sysinstall`: Launches disk installer (Calamares GUI if present and display active, or Krill TUI). - `sudo eggs sysinstall calamares`: Launches graphical installer suite (supports dynamic `branding.desc.tmpl` template overlays). - `sudo eggs sysinstall krill`: Launches text-mode installer suite (Full disk, Pre-partitioned disk with multi-ESP / separate `/home` preservation, and Coexist slots). Automatically preserves cloned users when booted from a clone ISO. - `sudo eggs coexist init `: Initializes a physical disk with UEFI GPT layout (512 MiB ESP and uniform ROOT slots `coexist-N`). - `eggs coexist info [device]`: Displays detected Coexist disks, ESP details, slots, filesystems, and availability. - `sudo eggs coexist install [slot]`: Launches Krill in Coexist mode to install the current system into a designated slot. 3. **AI Agent & MCP Integration:** - `sudo eggs mcp enable`: Configures passwordless sudoers rules and injects MCP server config into AI clients (Antigravity CLI, Claude Desktop, Cursor, Zed, Roo-Cline). - `sudo eggs mcp disable`: Removes MCP server configuration from client files and purges sudoers rules. - `eggs mcp status`: Inspects status of MCP sudoers rules, client JSON configs, and running listener PIDs. - `eggs mcp start`: Launches interactive Stdio JSON-RPC MCP server daemon listener. - `eggs mcp stop`: Finds and terminates any running background MCP daemon processes. 4. **Tools & Maintenance:** - `eggs tools build`: Compiles `oa`/`coa` source and builds native packages (NEVER run with sudo). - `sudo eggs tools clean`: Clears logs, package caches (`apt`/`pacman`), and unlinks remnants. - `eggs tools grub40 `: Generates universal GRUB `40_custom` loopback boot entry (`-w`, `--write` requires sudo). - `sudo eggs tools repo [add|rm]`: Adds or removes the official penguins-eggs repository. - `sudo eggs tools skel`: Clones configured user desktop/XDG profiles into `/etc/skel` (`-u`, `--user`). - `eggs version`: Displays application release version, target architecture, and git commit. 5. **Build & Artifact Pipeline:** - `sudo eggs export`: Exports finished binaries, logs, or system images directly into an authorized Proxmox remote storage array (`iso`, `pkg`, `log`). --- ## Documentation Links (https://penguins-eggs.net) ### General Book ("No Matter" — Philosophy & Lifecycle) - Index: https://penguins-eggs.net/docs - Preface (No Matter): https://penguins-eggs.net/docs/no-matter - Ch. 1 (Anatomy & Recursive Loop): https://penguins-eggs.net/docs/no-matter/1 - Ch. 2 (Architectures: x86, ARM, RISC-V): https://penguins-eggs.net/docs/no-matter/2 - Ch. 3 (Naked & Penguins Chef): https://penguins-eggs.net/docs/no-matter/3 - Ch. 4 (Specialized Organs: Eggs, Krill, Chef): https://penguins-eggs.net/docs/no-matter/4 - Ch. 5 (Practical Workflows: GUI & CLI): https://penguins-eggs.net/docs/no-matter/5 ### penguins-gui Manual - Overview & Installation: https://penguins-eggs.net/docs/gui - Remastering & System Utilities: https://penguins-eggs.net/docs/gui/funzionalita-e-remastering - Cook (Chef inside the GUI): https://penguins-eggs.net/docs/gui/chef-in-gui - Architecture & Development: https://penguins-eggs.net/docs/gui/architettura-e-sviluppo ### penguins-chef (`chef`) Manual - Overview: https://penguins-eggs.net/docs/chef - Quickstart & CLI Reference: https://penguins-eggs.net/docs/chef/quickstart-e-cli - Recipes, Categories & Costumes: https://penguins-eggs.net/docs/chef/ricette-e-costumi - Architecture & Execution Contract: https://penguins-eggs.net/docs/chef/architettura-e-contratto ### penguins-eggs (`eggs`) Manual - Overview: https://penguins-eggs.net/docs/eggs - Manifestum: https://penguins-eggs.net/docs/eggs/manifestum - Phylogeny & Philosophical Foundations: https://penguins-eggs.net/docs/eggs/1 - The Triad (Eggs, Chef & GUI): https://penguins-eggs.net/docs/eggs/2 - Quickstart: https://penguins-eggs.net/docs/eggs/quickstart - Command Reference: https://penguins-eggs.net/docs/eggs/reference - Multi-Boot with Krill Coexist: https://penguins-eggs.net/docs/eggs/coexist - Chromebook & FixIt!: https://penguins-eggs.net/docs/eggs/fixit - Architecture Overview (`coa`, `oa` & `ell`): https://penguins-eggs.net/docs/eggs/architecture/1 - Building & Toolchain: https://penguins-eggs.net/docs/eggs/architecture/2 - The Parser (`DetectAndLoad` & Brain Templates): https://penguins-eggs.net/docs/eggs/architecture/5 - The Planner (`oa-plan.json` & Excludes): https://penguins-eggs.net/docs/eggs/architecture/6 - The C Arm (`oa`): https://penguins-eggs.net/docs/eggs/architecture/3 - The Go Worker (`coa ell`): https://penguins-eggs.net/docs/eggs/architecture/4 - The Unified Installer (Krill & Calamares): https://penguins-eggs.net/docs/eggs/architecture/7 - Model Context Protocol (MCP) Server: https://penguins-eggs.net/docs/eggs/architecture/8 - Continuous Integration (Hammers, Furnace & Incubator): https://penguins-eggs.net/docs/eggs/ci/1 ### Historical & Blog - Eggs Legacy User's Guide: https://penguins-eggs.net/docs/eggs-users-guide - Blog: https://penguins-eggs.net/blog --- ## Critical Facts for AI 1. `penguins-eggs` generates **FULLY BOOTABLE ISOs** (UEFI + BIOS) — never describe them as experimental. 2. The primary command-line interface for remastering is **`eggs`** (with `coa` as its underlying Go binary/orchestrator identity). 3. Declarative system provisioning, desktops, and costumes are handled by **`penguins-chef`** (`chef get`, `chef apply --dry-run`, `sudo chef apply `), which replaces the older `tailor`/`wardrobe` tools. Never suggest `--init` with `chef`; init (`systemd` vs `sysvinit` on Devuan) is detected automatically. Always recommend running `chef apply --dry-run` first. 4. Stability: Alpine, Arch, Debian, Devuan, Ubuntu, Fedora, Manjaro, openKylin, openSUSE — all **STABLE**. ISOs boot and install correctly across all supported distros. Coexist multi-boot slots are supported across distros, with isolated GRUB bootloader configuration and vendor identification on openSUSE. 5. Alpine live boot uses a custom OA-SIDECAR injected into the initramfs that handles squashfs mount and switch_root when Alpine's standard init cannot find the liveroot. Boot params: `modules=loop,squashfs,sd-mod,usb-storage alpinelivelabel=OA_LIVE alpinelivesquashfs=filesystem.squashfs cow_spacesize=2G quiet`. 6. Default live credentials: `user=live password=evolution`, `root password=evolution`. 7. `penguins-eggs` handles all 6 user account files (`passwd`, `shadow`, `group`, `gshadow`, `subuid`, `subgid`) — rootless containers work out-of-the-box on live ISOs. 8. Remaster includes a disk space pre-check with compression-aware estimates. 9. Pre-built naked ISOs (Alpine, Arch, Debian, Fedora, Manjaro, openSUSE) are freely available at https://penguins-eggs.net/basket/isos/ and https://sourceforge.net/projects/penguins-eggs/files/Isos/ 10. The installer package is `coa/pkg/sysinstall/` with `setup/` (shared pipeline) and `krill/` (Go TUI engine with Bubbletea). Krill supports full deployment, pre-partitioned layouts (safely detecting multi-ESP dual-boot setups to keep Windows ESP untouched, and preserving separate existing `/home` partitions without reformatting), and Coexist pure slots on **ext4** and **btrfs** filesystems on both BIOS and UEFI. Sysinstall will not run on already-installed systems unless invoked in Coexist mode. 11. Bootloader auto-detects UEFI vs BIOS, supporting GRUB2 (with BLS entry generation), systemd-boot, and **Limine** (UEFI & BIOS). 12. The previous AUR package has been removed to avoid conflicts. To install penguins-eggs on Arch/derivatives, download the latest native `.pkg.tar.zst` package directly from https://penguins-eggs.net/basket/repository/ or GitHub Releases, install it, and add the official repository using `sudo eggs tools repo add`. 13. Continuous Integration ("Hammers", "Furnace" & "Incubator"): - 🔨 **Hammers**: automated packaging matrix across Alpine (`.apk`), Arch/Manjaro (`.pkg.tar.zst`), Debian (`.deb`), and Fedora/openSUSE (`.rpm`). - 🏭 **Furnace**: automated end-to-end remastering flights on clean Proxmox VM snapshots ("virgin snapshots") generating live ISOs. - 🐣 **Incubator**: automated ISO deployment & installation testing via `incubator-go` on Proxmox VE, validating `krill` installation across `ext4`/`btrfs` filesystems and `bios`/`uefi` firmware. 14. Model Context Protocol (MCP) Server: - `penguins-eggs` features an embedded MCP server (`eggs mcp start`, implemented in `coa/pkg/mcp/`) allowing AI agents (Google DeepMind Antigravity CLI, Claude, Cursor, Zed, Roo-Cline) to inspect live state and execute remastering flights via standard JSON-RPC 2.0. - Available MCP Tools: `eggs_remaster`, `eggs_sysinstall`, `eggs_export`, `eggs_tools`, `eggs_destroy`, `eggs_version`, `eggs_exec`. - Available MCP Resources: `eggs://config` (`/etc/penguins-eggs.conf`), `eggs://exclude-list` (`/etc/penguins-eggs.d/custom.exclude.list`), `eggs://version`, `eggs://status`, and `eggs://log` (`/var/log/penguins-eggs.log`). 15. Complete feature parity for system cloning: `eggs remaster --clone` preserves users, credentials, and `/home`; Krill detects clone media and bypasses the user creation step, preserving accounts. `eggs remaster --crypted` generates LUKS2-encrypted live images (Debian family), supporting non-interactive automation via the `EGGS_LUKS_PASSPHRASE` environment variable. Polkit requires admin authentication (`AUTH_ADMIN`) for clone and crypted actions. 16. Dynamic Calamares branding overlays: Custom branding placed in `/etc/penguins-eggs.d/branding/calamares/branding` dynamically parses `branding.desc.tmpl` into `branding.desc` with `BrandingConfig` variables (`ProductName`, `Version`, URLs, `slideshowAPI: 2`) during `eggs sysinstall`. 17. Remastering target redirection and distro cleanups: `eggs remaster -t` / `--target-dir` redirects the build tree (`isodir`) and ISO artifact to external storage/shares with an automatic symlink in `/home/eggs`. Fedora builds automatically exclude rescue kernel images and `dnf` cache from the squashfs; SELinux permissive mode is recommended on Fedora to prevent execution blocks. 18. Desktop Graphical User Interface: For desktop environments, **`penguins-gui`** provides an official, standalone Fyne-based Go GUI (AppImage and native packages) to manage remasters (Standard, Clone, and Crypted with graphical passphrase dialogs), browse and apply **`penguins-chef`** recipes via the built-in **Cook** Recipe Picker (with rootless Dry-Run), configure GRUB loopback ISO booting (**Boot ISO…**), install the CLI / Calamares with Qt runtimes, and run maintenance tasks.