# basecamp/omarchy — AlpLab Radar Static Code Audit

- Ring: `adopt`
- Category: `dev`
- Overall score: `4.4/5`
- Implementation check: `verified`
- Maturity: `mature`
- Audited commit: `31e1a0c32cf1` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T05:51:29Z
- Repository: https://github.com/basecamp/omarchy
- Radar entry: https://radar.alplab.co/#repo/basecamp/omarchy
- License: `MIT`
- CI workflows: `.github/workflows`
- Tags: `linux`, `arch`, `wayland`, `hyprland`, `desktop`, `ai-agents`

## Summary

The core source of the Omarchy Arch-based Linux desktop distribution: a metadata-driven `omarchy` bash command center (~630 scripts in bin/), a Quickshell/QML desktop shell with a permission-scoped plugin system, Hyprland configs, ISO package lists, timestamped migrations, 49-language i18n, and first-class AI coding-agent account/usage tooling for ~26 providers.

## Implementation Check

README.md is a thin index but the manual/ chapters it links to are implemented by working code: manual/14-omarchy-cli.md's command center is bin/omarchy's router (register_command_files, dispatch_fast_or_help), and manual/48-security.md's passwordless sudo is bin/omarchy-sudo-passwordless with NOTAFTER-expiring visudo-validated sudoers rules.

## When to Use

Use as a daily-driver Linux desktop for developers on x86_64 or supported ARM (Apple Silicon, Snapdragon, N1x, GB10) who want polished tiling Wayland, deep AI-agent integration, and a fully scriptable `omarchy` CLI. Not for servers, fleets that need Secure Boot (the install requires it off), or anyone unwilling to run a rolling Arch release.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 5.0/5 |
| usability | 4.5/5 |
| reliability | 3.0/5 |
| security | 4.5/5 |
| integration | 5.0/5 |

## Code Evidence

bin/omarchy implements the full command router (register_command_files awk batch scan of `omarchy:` metadata headers, route collision detection, `commands --check` validation) covering ~630 bin/ scripts; bin/omarchy-windows-vm (priv_target, open_mount_source, pinned_dir_contains, valid_priv_action) refuses PATH-symlinked pkexec targets, pins bind-mount sources by opened FD/inode against post-validation races, and re-validates every compose field in __priv_write_compose; test/shell.d/windows-vm-compose-test.sh reproduces concurrent path-swap attacks, malicious compose input, and planted-credential symlinks against exactly those guards; bin/omarchy-sudo-passwordless uses #!/bin/bash -p with omarchy_security_require_privileged_bash_startup and omarchy_security_sanitize_bash_environment (BASH_ENV/ENV/SHELLOPTS scrubbing in bin/omarchy-security-functions), writes sudoers via mktemp + `visudo -cf` + atomic rename with NOTAFTER expiry and systemd timer revocation; bin/omarchy-setup-security-sshd (valid_github_user, disable_password_auth) validates the hardening config with `sshd -t`/`sshd -T` before reload and only disables passwords after a key is authorized; default/polkit/org.omarchy.pkg-add-curated.policy + bin/omarchy-pkg-add-curated gate passwordless installs to a root-owned per-app allowlist the privileged half re-checks; shell/shell.qml (createScopedPluginShell, pluginOwnsTarget, AuthServiceStore) gives third-party plugins narrow capability APIs and isolates lock/polkit services outside the traversable object graph, with shell/Commons/Util.qml execArgv providing argv-safe execution for caller data; .github/workflows/test.yml + test/ci-vm boot a sha256-verified release VM in QEMU/KVM and run test/all (test/cli + test/shell, ~230 files in test/shell.d) inside the live desktop session; bin/omarchy-update sequences snapshot, keyring, system packages, migrations, AUR, and boot verification before offering reboot.

## Issues Found

Minor: optional installers execute third-party remote scripts — bin/omarchy-install-dev-env:111 (bash -c with curl to opam's install.sh, and rustup's sh.rustup.rs) and bin/omarchy-install-ai-herdr:18-19 (downloads releases.herdr.dev/app/install.sh then runs it); manual/02-getting-started.md requires Secure Boot/TPM disabled to install. No confirmed material security defect in the core path was found.

## Key Risks

Static review only — nothing was executed, so tests and CI are verified to exist and be substantive, not to pass. The repo needs a full Arch/Omarchy install (pacman, Hyprland, Quickshell, fcitx5) and only runs on Linux desktop hardware; packages, ISO builder, and signing live in sibling repos (omacom/omarchy-pkgs, omarchy-iso) not audited here. Rolling-release model and a ~630-script bash surface mean behavior can shift release to release; several GitHub Actions steps are tag- rather than SHA-pinned (maturity signal unpinned_actions=19), though test.yml pins actions/checkout to a commit hash.

## Reviewed Files

- `README.md`
- `LICENSE`
- `AGENTS.md`
- `bin/omarchy`
- `bin/omarchy-update`
- `bin/omarchy-agent-instructions`
- `bin/omarchy-agent-account-add`
- `bin/omarchy-install-ai-herdr`
- `bin/omarchy-install-dev-env`
- `bin/omarchy-setup-security-sshd`
- `bin/omarchy-pkg-add-curated`
- `bin/omarchy-sudo-passwordless`
- `bin/omarchy-security-functions`
- `bin/omarchy-windows-vm`
- `test/all`
- `test/shell`
- `test/cli`
- `test/ci-vm`
- `test/acceptance`
- `test/shell.d/base-test.sh`
- `test/shell.d/windows-vm-compose-test.sh`
- `.github/SECURITY.md`
- `.github/workflows/test.yml`
- `.github/workflows/i18n-check.yml`
- `.github/workflows/i18n-sync.yml`
- `.github/workflows/visual-evidence.yml`
- `.github/workflows/ci-qemu-image.yml`
- `default/polkit/org.omarchy.pkg-add-curated.policy`
- `install/omarchy-base.packages`
- `shell/shell.qml`
- `shell/Commons/Util.qml`
- `shell/plugins/README.md`
- `shell/plugins/menu/Menu.qml`
- `manual/02-getting-started.md`
- `manual/14-omarchy-cli.md`
- `manual/48-security.md`
