Repository navigation
Closed
Description
devstack runs on Windows and Linux (ADR-0011). This issue records what macOS would take, from a read of the code (2026-10-17). Not planned yet; an ADR comes first when it is.
The workspace should compile for *-apple-darwin (every Linux-only call is gated; Platform::Macos exists in the stack file model), but several parts compile and then misbehave.
Developer machine (CLI, daemon, hub, requesting remote lanes), about 1.5–2 weeks
- Process ownership (
crates/devstack-proc/src/unix.rs): everything reads/proc, so on macOS process lists are empty:stop()never escalates to SIGKILL, the shim does not notice the daemon dying (noPR_SET_PDEATHSIG), restart cleanup finds no orphans (ports stay taken), usage is all zero. macOS backend via libproc (proc_listpidsby process group,proc_pidinfofor group/start time/CPU/RSS, Mach time units scaled withmach_timebase_info), parent death by pollinggetppid()in the shim. Tests incrates/devstack-proc/tests/need a macOS path. M - Machine metrics (
devstack-procmemory_total,memory_available,cpu_timesreturnNone): the lane memory check never refuses, sharing offers 0.sysctl hw.memsize,host_statistics64(HOST_VM_INFO64),host_statistics(HOST_CPU_LOAD_INFO). S - Build job usage without cgroups (
builds.rs): reuse the libproc walk. S - Hub autostart: a LaunchAgent plist (
launchctl bootstrap gui/$UID), not XDG autostart;doctormust not report the Linux integration as present. S–M -
devstack://link: macOS delivers URLs as Apple Events to an app bundle; a small applet (osacompile,CFBundleURLTypes,lsregister) or a signed stub app that runsdevstack open-url. M - Folder picker (
crates/devstack-hub/src/dialog.rs):osascript … choose folder(no AppKit from the hub's worker threads). S - Docker start (
crates/devstack-compose/src/engine.rs):open -g -a Docker(optionally OrbStack, Colima), hints anddoctor. S - Browser (
hubcmd.rs):open <url>,open -a "Google Chrome"for--browser. S -
devstack update(update.rs): pick the darwin asset per target. S -
self uninstall: leave a Homebrew install tobrew uninstall; remove LaunchAgent and the link app. S - File watching (
watch.rs): FSEvents reports real paths; canonicalize the repository path (/tmp→/private/tmp, symlinked project folders). S - Port probe (
supervisor.rs): with BSD socket semantics a bind on127.0.0.1can succeed while something holds*:port; verify, add a connect probe. S - Local Network privacy (macOS 15): a hub started by launchd may be blocked from reaching a pool on the LAN unless signed; test early.
Release and distribution, about 1–2 days
-
release.yml:aarch64-apple-darwinandx86_64-apple-darwinon amacos-14runner (MACOSX_DEPLOYMENT_TARGET=11.0), two tarballs; the publish pattern must takeaarch64-*. - CI:
macos-14in the check matrix. -
install.sh:Darwin-arm64/Darwin-x86_64(prefer arm64 under Rosetta),shasum -a 256fallback, portable grep. - Homebrew: own tap
nuetzliches/homebrew-tap, a formula (not a cask) withon_arm/on_intelandservice do … ["devstack", "hub"](brew services), bumped by the release job. - README and landing page (OS tabs, asset map).
- Optional, recommended: Developer ID signing and notarization in CI (firewall and Local Network grants survive updates; covers the link app).
macOS as a pool node, another 3–5 days
- Honour
DEVSTACK_LANE_BINon every OS (todaylinux_binary()returnsNonebefore looking). - Supply a Linux binary for Docker's architecture (
docker info→ arm64 under Apple Silicon): a new release assetaarch64-unknown-linux-musl(also enables arm64 Linux nodes), downloaded and checked againstSHA256SUMSby the agent. - Egress rules under Docker Desktop: iptables in the VM via the
--net=hosthelper should apply; verify, including traffic to the Mac itself. - Lane container user (
own_user()reads/proc):getuid/getgid. - Running the agent: a LaunchAgent (Docker Desktop is per user), keeping the Mac awake while it holds leases.
Reacted by Marian
Metadata
Metadata
Assignees
Labels
No labels
Activity
offline-first commentedon Oct 22, 2026
I find this project really interesting, and macOS support could make it a good fit for my workflow.
My setup combines a Dart service in Docker, a Nuxt frontend, and Firebase emulators. I also work with coding agents in parallel Git worktrees, so the isolated lanes and MCP integration caught my attention.
I’d love to try an early macOS version and see how it works with that setup. Support for local development would already be an interesting starting point.
Thanks for documenting the remaining work so clearly. Just wanted to share a potential use case and encourage you to explore macOS support!
7schmiede commentedon Oct 22, 2026
Thanks a lot for describing your setup. A Dart service in Docker, a Nuxt dev server and the Firebase emulators, worked on by agents in parallel worktrees, is exactly the kind of stack devstack is meant for, and it's useful to know someone would try it on macOS.
We're going to start with a preview for local development only: CLI, daemon and dashboard on one Mac, no pool, no autostart, no
devstack://links yet. One honest caveat: none of the maintainers has a Mac. The preview will be covered by CI on macOS runners, but anything involving Docker Desktop and the desktop itself can only be checked by someone like you. So we'd ship it with a short checklist of things to try and would rely on your reports.A few questions that would help us plan:
firebase.jsonwith fixed ports, or with ports passed in? Lanes give each worktree its own ports, and emulator ports that live in a config file are a case we want to get right.We'll link the design record and the preview release here.
7schmiede commentedon Oct 23, 2026
The macOS preview is out with devstack 0.20.0:
brew install nuetzliches/tap/devstack # or: curl -fsSL https://github.com/nuetzliches/devstack/releases/latest/download/install.sh | shApple Silicon and Intel, macOS 11 or later, with Docker Desktop, OrbStack or Colima. It ended up a bit wider than announced: the hub also starts at login (a LaunchAgent), and the dashboard's folder picker and "Open in" (Finder, Terminal, your editor) work. Desktop notifications and the
devstack://link are not there yet, and neither is a Mac as a pool node. The design record is ADR-0054.Since none of us has a Mac, CI on macOS runners covers process handling, file watching and the daemon's integration test, but nothing with Docker or the desktop. docs/macos.md has a short checklist of what only a real Mac can show. Any of it you get to, working or not, helps a lot. Partial reports are welcome; a new issue per problem is easiest for us.
If you try it with your stack: we'd still like to hear how the Firebase emulators take their ports (from
firebase.jsonor passed in). That decides how a lane per worktree can give each its own.offline-first commentedon Oct 23, 2026
Wow, that was fast! Thanks for getting the macOS preview out so quickly 🙌
I tried devstack 0.20.0 on Apple Silicon with macOS 26.7.1 and Docker Desktop (Engine 29.2.1, Compose 5.0.2), starting with a single containerized HTTP service.
The local workflow worked well:
check --composeanddoctorpassed, and a fresh arm64 Docker build started successfully.down --infracleaned up the test containers and released their ports after shutdown.One thing I noticed: with this Compose-only stack,
devstack upreturned success while the image was still building. I checked container health and HTTP separately before treating it as ready.I haven't tested login integration or remote pools yet, but this is a very encouraging first result on a real Mac. Thanks again!
fix(cli): devstack up waits for the containers too (#66) (#344)
7schmiede commentedon Oct 28, 2026
Thanks again for the thorough test on 0.20.0. A short update, as of 0.27.1:
Invalid argument (os error 22)seen on macOS when the connection to a coordinator broke is retried now.devstack upwaited for devstack's services only, so a stack of Compose groups alone returned while its image was still building. It now waits until every container runs (healthy, where it has a health check), or fails naming the ones that did not get there (fix(cli): devstack up waits for the containers too (#66) #344). This is onmainand ships with the next release.Still not on macOS: the
devstack://link, the dashboard opening in an installed browser app, and a Mac as a pool node. The preview's status is in ADR-0054.I'm closing this as the preview is out; anything you run into, please open a new issue. Thanks!