ConjureIt
macOS Swift + Ghostty not released yet

A terminal conjured by agents.
They did it live.

Built on macOS from inside its own panes while dozens of agent sessions kept working. conj is on in every session, and the window itself is part of the API.

ConjureIt
agent

              
s1 · v1
A live pane beside you instead of a hidden subshell — driven over conj.

Built alive

What it took to survive, building alive.

We didn't build ConjureIt in a safe side window and wait until it was ready. As soon as it could draw panes, we moved straight in — other projects and all — and never went back. Every rough edge had to be fixed while we were standing on it.

01 / 04

Reloaded live while work ran elsewhere

Once agents moved into ConjureIt to build ConjureIt, every rebuild threatened to kill the shells doing the work — and every other project open in the panes beside them.

So a daemon owns every PTY and headless Ghostty surface; the UI holds no sessions at all. Because Ghostty's terminal pages use offset-only pointers, rebuilding the UI ships a binary page snapshot straight from the daemon — 135 KB for a 50,000-line session (41× smaller than log replay, unpacked in 0.12 ms, zero cells lost, older scrollback fetched lazily).

Even the daemon upgrades in place: pausing each PTY at a byte-exact cut, spawning the new binary first to prove it can unpack every checkpoint, and keeping the listening socket and every PTY open across exec with the same PID (rolling back cleanly if anything fails). Pretty quickly you fall into a rhythm of trusting your sessions to come straight back — the downtime is barely a blink.

02 / 04

Off-screen UI and virtual time

The reload blink wasn't even the distracting part — test windows flying everywhere and stealing your focus while you were working in other projects were. Every time agents ran UI tests for splits, drag previews, or redraws, windows popped across the screen and grabbed the mouse and keyboard.

So private test runs launch the real Metal UI off-screen as an accessory app whose windows are never ordered onto a display, with logical focus, synthetic input, and a clipboard of its own.

A microsecond virtual clock (ui.clock / ui.advance) steps animations, cursor blink, and watchdogs on demand — deterministic and faster than real time.

03 / 04

Overnight runs vs. the macOS lock screen

Once tests stayed out of the way, overnight runs hit a wall: the moment the displays slept, macOS silenced every CADisplayLink. Panes kept their text in memory and drew zero frames; dozens of UI tests failed before morning.

Rather than leaving the screen awake, off-screen windows moved onto a timer-backed frame clock of their own — holding off App Nap while idle sleep stays allowed — and on-screen panes gained automatic recovery from silent display links.

The suite then ran on its own with the display asleep: 441 passed, 4 display-only checks skipped, 0 failed (and has since grown past 640 tests).

04 / 04

How agents kept it honest

Living inside the build surfaced real systems scars — execv from a libdispatch callback inheriting 20 blocked signals so new shells ignored Ctrl-C, and dirty pool refcounts crashing the UI while the daemon kept all 35 live sessions untouched.

So core logic runs headlessly through ConjureIt check, fed by a differential fuzzer (pair-check) that auto-shrinks failures with ddmin. It shrank a non-commuting resize bug from 120 steps to 4, and caught that merely clicking a pane pinned a row and silently diverged it from the daemon — leading to a 1,213,056-case census driving wrong copies on resize to zero.

Two agent seats even built independent formal state-machine models of Daemon.upgrade to hammer cross-build rollbacks and fault injections before touching live shells.

Sequence-aligned reflow

No country for old glitches.

“You know, another interesting thing is text-content-aware transitions — so the text that was on the old screen is mapped to the new screen somehow… maybe with some kind of sequence alignment.”
— build transcript, 14 Nov 2026

Why the hell in 2026 are we still putting up with terminals tearing, blanking, and jumping around every time you drag a corner or split a pane? When a pane changes size, its program gets SIGWINCH and repaints from scratch — and in between, the pane is the wrong size and the program hasn't answered yet.

While you drag, ConjureIt doesn't stretch a blurry bitmap — it re-rasterizes the frozen screen's vector fonts off the main thread at the pane's live scale so every glyph stays sharp. When you settle, it sends one SIGWINCH and waits from the daemon's resize fence for a synchronized redraw (2026) or 60 ms of quiet — a quarter of a second at most.

Then it aligns the old screen against the new one: anchor lines first, then words in the gaps, then characters between matched words — even into scrollback. Surviving text glides cell-to-cell into its new place; rewrapped runs pulse on arrival; dropped text fades out.

  • Per-program clear-hold rules tame chaotic TUIs — like an agent CLI dumping 45.7 MB inside a single 1.55 s synchronized frame on resize.
  • Changes arriving faster than they can animate snap until quiet; moving a pane into a slot of its own size never sends SIGWINCH at all.
ui.record · 60 fps normalized
Real capture: Claude explaining Flow.swift while the corner drags in and back. Try ⅛× or click the video to inspect full-size.

Self-recording

A recorder that became a debugger.

Self-recording started out of frustration with OBS: capturing a resizing window resampled every frame and glitched right through the reflow animations. So ConjureIt learned to record itself straight from its own compositor — 1:1 pixels, hardware H.264, no Screen Recording permission.

For clean captures like the one above, ui.record runs on normalized time: each frame advances the recording clock by 1/fps (60 frames per recorded second), stepping Core Animation and reflow tweens in lockstep with zero dropped frames however long encoding takes.

Once the app could already record itself, the next thought was obvious — why not use it to debug features with agents? Press ⌘⇧R and it writes video.mp4 (event-driven frames plus a 2 fps heartbeat to stay tiny) beside timeline.jsonl: every mouse press, drag preview, drop, layout change, and daemon event stamped to the exact video second and frame.

Turn on the mic and it saves audio.wav too. When timeline.py reads the recording back, Dispatch's own Swift port of Whisper transcribes what you said locally and slots your narration onto the timeline right where you spoke.

timeline.py · real ⌘⇧R (anonymized)
● REC · mic

Workspace

Splits you see before you drop.

⌘D splits right and ⌘⇧D down — equal shares along the same axis, or halving just the focused pane across it.

Drag any pane by its header onto another: the middle swaps them, near an edge puts it beside. Before you let go, every pane that would move or resize shows where it lands (with vector badges hot-reloaded from marks.js via JavaScriptCore — no Swift rebuild).

  • Hold ⌥ on drop to even out a row or column, or ⌥-click any divider.
  • Pause a dragged header over its own pane's center and a four-way split dock opens.
  • Read-only mirrors fit a live session into a tile without resizing it; aspect-aware mirror walls pack ~70% more readable text across mixed panes than an even grid.
  • Dropped text and links are pasted into the pane under the pointer; dropped files are pasted or typed by MIME type or extension (e.g. typing a video's path instead of attaching it).
Live drop previews: swap and split targets with animated scale-map badges.

No chrome

A palette and two files.

If your agents do most of the configuration while you work, what's a settings panel even for? There isn't one — and the menu bar has two items: Quit, which leaves every shell running, and Quit and End All Sessions.

Everything else lives in the palette (⌘⇧P): commands, panes, and background sessions searched at once. ⌘P opens on recent panes — ⌘P then Return bounces back, or a digit jumps straight there.

Settings, themes, and keybindings are two commented JSON files, reloaded on save. settings.json maintains and versions itself (/// settings-layout: 2, so an older binary refuses to mangle a newer file) — every option explained right above its line, unset ones commented out at their defaults.

~/.config/conjureit/
  settings.json     // re-read on save
  keybindings.json

/// settings-layout: 2
"strips": {
  /// Each view's top strip, a template: {title} …
  "header": "{title}  {pwd}",
},

One API

From any shell inside it.

Every session starts with conj on its PATH, a clean 16-var environment (never leaking parent agent vars like CLAUDECODE), and a per-daemon token talking over a 0600 Unix socket in a 0700 per-user runtime directory — no TCP listener, standard Unix user-boundary security.

Commands default to the caller's own pane and finish in 11–12 ms one-shot (0.03–0.07 ms on a held socket). Inside a session, the shared token reaches the whole API — splits, strips, screen reads, synchronized frame waits, native palette prompts (ui.ask), and per-pane memory accounting. Outside every session, processes only see a 0600 reveal token (listing sessions, checking focus, bringing a pane forward — no screen reads, input, or layout edits).

Sessions survive UI crashes, rebuilds, and live daemon upgrades (not reboots); the test suite uses the exact same socket to drive the real app.

# conjure a live pane beside you and label it
conj view.split axis=row command='npm run dev'
conj view.data session=s2 title='dev server' status=':5173'

# send input, wait for a committed frame or text, read the tail
conj send session=s3 text=$'make test\r'
conj wait session=s3 text=passed timeout=60
conj screen session=s3 tail=20 -r text

# pop a native choice prompt in the human's palette
conj ui.ask prompt="Deploy branch?" items='["main","dev"]' -r answer

# the whole UI as data (or as a PNG)
conj ui.state
conj ui.snapshot -r path

Origin & status

From an iTerm2 fork to a sister app.

Before Dispatch, we were extending iTerm2 itself — a local fork with 28 commits between August and November 2026: launch plans, anchored grid splits for agent seats, streamed focus events, and per-pane status bars.

Then we tried Paul Miller's Dispatch, a Swift port of Ghostty. Dispatch wasn't what we wanted, and Paul doesn't want an agent API or ConjureIt-style features in it.

So on 14 November 2026, ConjureIt started as a parallel sister app in the same fork — sharing the Swift Ghostty engine with only a single line touched in Dispatch itself (which still builds and passes all 58 of its own tests), while engine changes stay tracked against upstream. It runs every day on one Mac with a couple of dozen agent sessions at a time; it is not released and promises nothing yet.

lineage · aug → nov 2026

iTerm2-dev 28 fork commits · launch plans, grid splits, focus stream, status bars
Dispatch Swift port of Ghostty · 1 line touched, all 58 upstream tests pass
ConjureIt Sister app · 14 Nov 2026 · shared engine + local API + env auth token

“Damn, I can't believe how much faster this thing is than iTerm2, everything feels so much snappier”

0.0s / 0.0s Space play · ←/→ step frame · Esc close