A macOS-native terminal canvas. Terminal instances live in a left sidebar; drag one and the window becomes an endless canvas where terminals are live, draggable, resizable tiles. Swift + SwiftUI, with real Ghostty terminals.
Real sessions, not mockups: the tiles above are live zsh surfaces — one ran this repo's test suite, one its git log.
The flagship, uncut: a running job, the app killed outright, and the same process — same pid, unbroken step count — still going when the app returns.
- Real terminals — GhosttyKit surfaces running your actual shell (zsh,
bash, fish — whatever
/etc/shellsoffers). - Sessions survive the app — quit Skylight (or crash it) and relaunch:
every terminal is still running, same processes, scrollback intact. A
tiny bundled daemon (
skylightd) owns the ptys over a user-only unix socket; the app is just a renderer that reattaches. Quitting doesn't even ask — there is nothing to lose anymore. - Endless canvases — as many boards as you like; pan forever; every tile is a live session. Layout, pan, and zoom persist and restore instantly.
- Drag-reveals-canvas — start dragging a sidebar row and the canvas appears with a live ghost of where the tile will land. Drop it there; drag it back out and it's a full-window terminal again. A session survives every move.
- Zoom with an honest contract — at exactly 100% every tile is a real, typable terminal; at any other zoom the board is an overview, and clicking a tile flies back to it at 100%. Pinch, or ⌘+/−/9 (⌘0 = 100%). (Scaling a live terminal can't be crisply interactive — so Skylight never pretends it is.)
- Tiles that behave like windows — drag by the header (or ⌘-drag anywhere), resize from any edge or corner, Rectangle-style magnet snapping against neighbors, 16pt grid otherwise. ⇧⌘A packs the whole board tidy. Shrink the window and the arrangement reflows to stay visible.
- Focus mode — expand any tile to the full window; ⌘. puts it back with the canvas exactly as it was. (Escape belongs to the terminal — vim and TUIs need it — so the exit is a real menu command.)
- Workspace search — ⌘P finds terminals, agent sessions, canvases, and launch presets by name, CLI, or directory. Arrow keys and Return open a result; Escape returns to the terminal. Opening a canvas session in focus mode preserves its layout and zoom. Search appears only when invoked.
- Agent terminals — a terminal can launch an agent CLI (Claude Code, Codex, Gemini CLI, Copilot CLI, Cursor CLI, Qwen Code, Amp, OpenCode, Droid, Goose, Crush) on your existing subscription, each row wearing its vendor's own mark where one exists. Skylight detects what's installed and never fakes what isn't — and an agent terminal names itself after the first thing you ask it.
- A New sheet that learns — shell → mode → harness in one tiered sheet; your most-used combo becomes a one-click row; save any combo as a named preset for one-button launches. Double-click an empty canvas for an instant shell there; right-click to choose what runs.
- Honest session state — a background terminal that rings its bell gets a pulsing sidebar dot (and a Dock badge) until you look; a session whose process ended says "Session ended" instead of posing as live, with a one-click restart. And if the session keeper ever isn't there to catch them, quitting warns before ending live sessions.
- The look is yours — one small Settings pane (⌘,): light/dark/system, window glass or a solid flat background, a terminal translucency slider from clear to solid, and terminal text size. Every control applies instantly to every open terminal — live, not just future ones — and Reduce Transparency in System Settings outranks all of it.
For session recovery and keyboard launch details, see the recovery guide.
Launch presets can carry separate macOS, Windows, and Linux shell or AI CLI settings behind the same launch button. See platform presets, verified app checks, and the development direction. The customization and navigation guide covers shared theme browsing, live appearance controls, canvas behavior, and verified gaps.
- No chat UI, no web views, no API keys, no network calls, no telemetry. The launch statistics behind recommendations are one local JSON file.
- No background cost worth naming — measured, not hoped: with live
terminals on screen the app idles around 0.2% CPU; the session daemon
holds steady at 0.0% CPU and ~5 MB. Hidden surfaces render nothing.
The keeper adds ~25µs to a keystroke's round trip (a 120Hz frame is
8,333µs), moves output at ~150 MB/s per core in ~11 MB of memory, and
runs flow control end to end: a slow consumer blocks the child on its
tty like any real terminal, and a detached flood is sampled in pulses
for under 1% CPU instead of pegging a core. Reattaching after a
relaunch replays a full 1 MiB scrollback ring in ~2 ms. Reproduce
every number yourself:
./scripts/bench.py. - One terminal engine: Ghostty, embedded via GhosttyKit. kitty and iTerm are apps, not libraries — Skylight won't pretend to embed them.
- No tabs. Sessions survive app relaunch, not reboot (launchd persistence is the next milestone).
- No interactive tiles at non-100% zoom: a scaled live terminal blurs glyphs and breaks hit-testing, so overview zoom is navigation, never a lie.
- ⌘T — New Terminal… (the tiered sheet)
- ⇧⌘T — new shell terminal, launched instantly
- ⇧⌘N — new canvas
- ⌘P — switch to a terminal or canvas, or launch a saved preset
- ⌘. — back to canvas (leave focus mode)
- ⌘0 / ⌘+ / ⌘− / ⌘9 — 100% / zoom in / out / to fit (⌘= works too)
- ⇧⌘A — arrange the canvas
A sibling implementation is being developed in desktop/.
It provides real PTY sessions, named launch presets, workspace search, and
canvas navigation. The native macOS app remains SwiftUI/Ghostty.
The portable workspace follows the native macOS visual contract: a quiet sidebar, a bare terminal panel, sparse canvas chrome, and presets inside New. Windows and Linux bundle the same fonts and run real native UI checks. See the actual screenshots and verification record.
Launch presets can move between versions through File → Import/Export Launch Presets… on macOS and Workspace menu (⋯) → Import/Export workspace in the portable preview. Review local folders and executable paths before launching on another OS.
The portable app is a development preview: Windows/Linux build jobs are provided, but installer validation, session survival, and full feature/performance parity remain release gates. See its README for the exact supported scope.
./scripts/make-app.sh && open build/Skylight.app
macOS 14+, Swift 6 toolchain. Debug appearance override:
SKYLIGHT_APPEARANCE=dark ./build/Skylight.app/Contents/MacOS/Skylight
The packaging script checks the app's signature and verifies that terminal resources resolve inside the app. CI runs this check too. For an isolated build directory and an explicit ad-hoc signature:
SKYLIGHT_BUILD_DIR=build/clean-verification SKYLIGHT_SIGN_IDENTITY=- ./scripts/make-app.sh release
GhosttyKit's Swift wrapper is preserved in Vendor/GhosttyKit; see its
PROVENANCE.md for origin and update constraints. Its compiled XCFramework is
still a remote, checksum-pinned dependency. An ad-hoc local build is not a
Developer ID signed or notarized public release.
For development fixtures, SKYLIGHT_SUPPORT_DIR=/absolute/path isolates workspace
files, imported themes, and the session keeper from the normal app workspace.
macOS ties permission grants to an app's code identity. An ad-hoc signature — what a plain build produces — is a new identity every time, so every rebuild looks like a brand-new app and every grant is forgotten. Two one-time steps fix that for good:
./scripts/setup-signing.sh # once, by hand — approve the one dialog
That creates a local "Skylight Dev" signing identity. make-app.sh detects it
automatically from then on (and tells you when it can't, so you are never
silently back to ad-hoc).
Then, once, grant Skylight Full Disk Access — the app's Open Full Disk Access Settings… menu command opens the right pane. Every terminal and every agent CLI running inside Skylight inherits that grant, and rebuilds keep it.
The grant follows the signing identity: anything signed with it, including a tampered rebuild, inherits the access. That is the trade that makes grants survive rebuilds; it is the same posture as any developer certificate.
Agent CLIs also ask for their own permission, separately from macOS. If you want a given agent to stop asking, the New sheet's Full autonomy toggle (shown for the agents that support it) names the exact flag it will launch with. It is off until you turn it on, per agent.
Skylight.app ── unix socket ──▶ skylightd ── pty ──▶ zsh · agents
(a renderer) (owns the sessions)
The app and its session keeper share two core libraries:
- SkylightCore — models, layout math, shell/harness detection,
recommendations, persistence + migration. No UI imports; unit-tested
(
swift test). - SkylightDaemonCore + skylightd — the session keeper: framed wire
protocol, per-session output ring, pty ownership (
posix_spawnwith a real controlling tty). The daemon exits when its last session ends; end-to-end tested against the real binary. - Skylight — the SwiftUI app:
AppState+LiveSessionStore(sessions outlive view churn),DaemonClient(sessions outlive the app), sidebar / canvas / sheet views.
swift test covers core behavior, daemon integration, and native session
preparation and focus handoff. Preparation runs away from the main actor; views
show a small opening state until the daemon or fallback is ready.
The invariant everything obeys: a running session survives every
transition — full-window ↔ canvas ↔ other canvas ↔ focus.
LiveSessionStore owns each terminal NSView; SwiftUI only reparents it.
Skylight once had an AI-chat layer. Its data is still on disk at
~/Library/Application Support/Skylight/ (chats/, webhistory/) — the app
ignores it and will never delete it. Remove those folders manually if you
want the space back.
PolyForm Noncommercial 1.0.0 — free for any personal or noncommercial use; commercial use requires a separate license from the author.
