Table of contents
Three layers, one dispatcher:
1. The core — a single NativeAOT binary (x, ~3.7 MB, ~6 ms startup)
- Busybox-style: everything is an applet invoked as
x <applet> [args], or via argv[0] symlink dispatch. One process, runs-and-exits, pipe-friendly. - Shared foundation every applet can use: layered TOML config (
~/.config/x/x.tomlcore,applets/<name>.tomloverlays, applet wins) and a SQLite store (Microsoft.Data.Sqlite, zero-daemon, zero config).
2. Three tiers of applets, resolved by precedence: built-ins > .so islands > ghosts
- Tier 1 — built-ins: compiled into x, share config/SQLite/runtime.
- Tier 2 — .so islands: native shared objects in
~/.local/lib/x/, discovered by filename, a clean C ABI (int x_<name>(int argc, char* argv[])) — zero runtime access, true islands by design. - Tier 3 — ghosts: config-only aliases in the
[ghosts]TOML table. Re-dispatch internally to x applets or hand off to/bin/sh, chains to depth 8, loop-guarded. No code at all.
**3. Generated shell integration (built-in applet) **
x rc <shell>emits shell dialect (env, PATH, aliases, raw blocks) from the same TOML; rc files collapse to a one-lineevalstub. The shell becomes an output, not a config.
Notes
BusyBox style, more like heavily inspired by it. Also, the generated shell integration itself is the RcApplet. I was largely tired of not having my shell init files (think bashrc) not managed by something. I figured why not have x do that. Having raw pass through in addition to the sections you can specify was to make migration easier. I figured if where are going to make this a true natural extension to the shell, then it should also be as shell agnostic as possible. However, unlike BusyBox built-in applets share a care runtime and only .so lib(dll in windows terms) based are true islands. No runtime access, totally on purpose as isolation was a ket feature. Ghosts are well shell aliases with super powers. They can call internal or external things and even chain things.