omar espinosa , index
ES , Read in Spanish

[ swift · macos ]

Alkit

A macOS launcher built like a small operating system.

Swift, one resident process, one command graph behind every surface, and performance budgets enforced as tests.

ShellShellRuntimeRuntimeSystemKitSystemKitpalettepalettemini-appsXPCXPCroot helperroot helper

A native macOS launcher, and a runtime for small tools behind it. A command palette with apps, files, clipboard history, window management, a calculator that understands units and currencies, battery and fan control, a system monitor, a shelf in the notch, and alerts when a coding agent finishes or needs me. Written in Swift for macOS 26 and later.

A runtime, not a list of features

The idea is an operating system in miniature: the palette is the shell, mini-apps are the programs, capabilities are the system calls and the rule engine is launchd. Everything lives in one resident process. A second process exists only when it buys isolation or privilege: a root helper for the few SMC writes fan control needs, and later a sandboxed JavaScript host for third-party mini-apps.

One process, two peers
  1. Shell What do I see? palette, menu bar, notch, settings, hotkeys; the only AppKit and SwiftUI
  2. Runtime this project What runs, and when? mini-app registry, command graph, capability broker, rules, query pipeline
  3. SystemKit What is the machine doing? power, thermals, processes, storage, network over IOKit, libproc and Mach
  4. Helpers What needs a boundary? a root daemon for fan control over XPC; a JavaScript host, later
  • Nothing loads unless used. The host indexes each mini-app's static manifest at launch and activates its code on the first hit.
  • Capabilities, not frameworks. A mini-app never touches IOKit; it asks for a power reading and the broker decides who supplies it.
  • Mini-apps describe, the host renders. Third parties will only get declarative elements; first-party code can drop to SwiftUI.

Every surface reads the same graph

One command graph, many terminals
  1. Mini-apps a static manifest, code on the first hit
  2. Command graph one tree of commands
  1. Palette
  2. Menu bar
  3. Notch
  4. Hotkeys
  1. The same action, wherever it is called

No surface grows a private list of actions. The palette, the menu bar popover, the notch, settings, rules and hotkeys are all projections of one tree of commands, so a new action shows up everywhere at once.

Budgets are tests

A number without a measurement recipe is not a budget. Each budget names how it is measured and, where possible, a test that fails when it is broken; signposts and a script record each journey (launch, hotkey to first frame, keystroke to results, popover, notch, idle) over 30 runs and tag a result as noisy when the machine was busy. One rule came from a freeze: an event tap on the main thread holds every key until main answers, so a stall there froze the whole Mac's keyboard. Every tap now runs on a thread of its own.

Measured on the installed buildBeforeAfter
Idle CPU of the file index while agents add 4 git worktrees3.29 %, 348 folder walks0.025 %, 0 walks
App size, Release42 MB, universal, unstripped8.7 MB, arm64, stripped
AI usage relaunch over 21.7 GB of agent logs24.7 s471–499 ms
Footprint after that read327 MB72 MB
Full scan of the home folder69.2 s, 605,330 rows23.2 s, 117,500 rows

Most of the idle CPU was coding agents: their git worktrees were 72 % of the file index and were walked again and again. They are excluded now, and file events are coalesced. Not every budget passes yet: typing still drops 17 % of frames at 120 Hz against a 5 % target.

Status

My daily launcher since its first phase. It is a paid app with a license key per Mac; signing, notarization and Sparkle updates are in place, and the first public release is next. The repo is private. Also open: the launcher panel's design pass and the rest of the memory budget.

Stack Swift · SwiftUI · AppKit · Swift Package Manager · IOKit · SQLite FTS5 · FSEvents · XPC · os_signpost