Desktop companion and notch

Keep your agents on the Mac screen: the board, the notch, and agents on your windows.

View MD

The desktop companion keeps your agents on the screen while you work in other apps. It is part of the Scout app for macOS. It shows the board of live sessions and asks, hangs that board from a screen edge as the notch, and lets you put any agent on the desktop or on another app's window.

Try the interactive demo on Scout Companion, watch the 30-second intro, or watch the 60-second notch walkthrough.

Requirements

  • Scout.app on a Mac, with the local runtime running.
  • The full Scout web client. Run scout web login, paste your key, then run scout web install. scout web status tells you which client the web server serves.
  • The basic npm client leaves the companion out. If Scout serves the basic client, the companion says so and keeps Retry and Hide available. It does not show the basic client's fallback page as a live view.
  • No Screen Recording or Accessibility permission. The hot keys, the mouse monitors and the window reads all work without them.

Show and hide it

ActionHow
Show or hide the companion from any app⌃⌥⇧⌘S (Hyper+S)
Show or hide it while Scout is in front⇧⌘C, or Scout ▸ Show Desktop Companion
Show or hide the agents you attached to windows and the desktop⌃⌥Space
Bring back a hidden notchPush the pointer against the middle of its edge
From a scriptcompanion, companion-show, companion-hide and companion-toggle app commands (handleAppCommand in ScoutApp.swift)

When Scout is not running, the menu bar helper holds Hyper+S and offers to start Scout. Scout takes the chord back when it launches. The menu bar helper's own menu also has Show Desktop Companion.

The companion never shows itself. Delegated work does not raise it, and background updates never focus or activate Scout.

The board

The board is the companion's default view. It lists what your agents are doing, in two sections:

  • Arrivals: what came back to you. Asks for you, work waiting on you, and work that finished. A native session whose turn ended in the last 2 hours lands here.
  • Departures: what is still out with an agent. Working native sessions sit here.

Rows come from two sources. Scout asks are the work you or your agents routed through the runtime. Native sessions are the Claude Code, Codex and other harness sessions that Scout observes on this host. A board row shows the project mark, the harness, the agent and its latest line. Subagents fold into their parent row: the parent counts as working while a child works.

Sizes

  • S: a strip of up to five chips, one per live session. One more chip opens M.
  • M: a card that shows three live sessions at a time. The rest scroll into view.
  • L: the full board with every row.

The board keeps its size between launches. In the notch the board has two states only: the folded S strip and the open L board (see below).

Act from the board

  • Answer an ask: a click on the companion opens a short list of choices, most useful first. The first choice is the oldest open ask, with its own answers or Allow and Deny. The others are a reply to the agent that spoke last, a catch-up on rows that changed since you last looked, a jump to the most recent active session, and a new ask in your current project. Everything opens the full board.
  • Engage a row: a click on a row opens its panel beside the board. The panel shows the open request with its actions, the last few turns and a reply line. Details (⌘I) shows the full last message, steps, files and facts.
  • New: starts a conversation with any agent in a sheet beside the board. Drop files on New to attach them.
  • Scoutbot: the Scout mark on the board opens Scoutbot beside the board, with the requests that wait on it. Turn it off in Settings.
  • Meters: the board can show each provider's quota use under the rows. Settings ▸ Meters chooses Always, When high (a provider above 80% of a window) or Off. Off is the default.

Board keys

KeyAction
↑ / ↓Move between rows (Arrivals first, then Departures)
↩Open or fold the selected row's panel
⌘↩Allow the selected row's request
⌘OOpen the row's primary place
⌘IOpen Details
nNew conversation
EscClose one level

Typing in an open panel goes to its reply line. A draft or a focused field keeps the board open.

The notch

The notch is a place for the board. Choose it in the board's Settings ▸ Position: the grid shows the four corners, a notch at the middle of each edge, and Floating.

  • Edges: the notch hangs from the middle of the top, right, bottom or left edge. On the top edge Scout raises the panel above the menu bar, so the notch hangs from the edge of the display. On a Mac with a camera housing it centers on the housing.
  • Folded: at rest the notch is the S strip of live session chips against its edge. Hovering does not open it, so you can click a chip. A chip opens that agent's details beside the strip.
  • Open: the grow control opens the full board out of the edge. It is half the display's width on the top or bottom edge and 40% on a side, at least 440 pt and at most 880 pt.
  • Folding: the open board folds 160 ms after the pointer leaves it, or after 3 seconds with nothing touched. A sheet, Scoutbot, the details panel, the choices, a menu or a field with text keeps it open until you close that.
  • Hiding: Hyper+S slides the notch into its edge. Brought out again by the hot key, it puts itself away after 3 seconds if the pointer never reaches it.
  • Edge return: with Settings ▸ Notch on, a hidden notch comes back when the pointer stays 150 ms in a 240 pt stretch at the middle of its edge. The stretch is 4 pt deep, so the rest of the edge stays free. A pointer already there when the notch hides must leave and come back.
  • Detach: drag the board off its edge to let it stand free, or into a corner. Drop it within 32 pt of an edge, near that edge's middle, to hang it there as the notch.
  • Scout Desk: Scout Desk's own notch (dictation, a question, a receipt) grows from the same camera housing. While Desk's notch is out on that display, the folded notch tucks into its edge and comes back when Desk's goes. An open board stands 8 pt below Desk's shape, so neither covers the other. Desk announces its notch with the app.openscout.desk.notch distributed notification (ScoutDeskNotch.swift).

Attached agents

Drag a row off the board to put that agent on the desktop or on another app's window. A press that moves 6 pt starts the drag, and the host carries the agent under the pointer.

  • Two forms: a figure (the default), drawn as the agent's character or LED tile, or a strip, a one-line row. Choose the form per agent from its popover, and the default in Settings ▸ Land as.
  • Placement: the modifier you hold when you let go decides where the agent lands. The rules are the same as for placed figures (Figures you place): none stays where dropped, ⌥ sticks to a window top, side or bottom, and ⇧ falls onto the first window top below.
  • Riding along: an agent on a window moves with it, hides while the window is on another Space, and ghosts when another window covers it, so your click reaches that window.
  • Click-through: the companion is a non-activating overlay panel. It never takes focus from the app you work in, and the desktop under it works as usual.
  • Popover: click a figure to open its popover with the row, Allow and Deny when it asks, the details and its settings (form, size, motion, hold). Back to the board returns it.
  • Show and hide: ⌃⌥Space shows and hides every attached agent. An agent that asks always shows.

The sections below describe the pinned stack, the edge characters and placed figures in full.

The pinned stack

The stack is the classic companion layout: a small floating stack in a screen corner that shows work items you pinned.

  • Pin: open a work item in the Scout app and press Pin to companion in its top bar. Pinning shows the companion. The control appears only inside the Mac app; a plain browser has no companion to pin to, so it leaves the control out. If the app does not answer the first state read, the control reads Companion unavailable · Retry instead of staying disabled, and a failed pin shows its error beside the button.
  • Show or hide: see Show and hide it.
  • Move: drag the Scout mark in the header. A slow drop snaps to the nearest corner of the display under the stack. A quick flick (over 900 pt/s) throws it: Scout projects where the glide would stop, picks that display and corner, and settles there. A throw always lands on screen, including across displays.
  • Minimize: the minus button collapses the stack to a 28 pt Scout hex with no label. A small accent dot means something asks for you. Click the hex to expand it. Drag or throw it like the stack, no modifier key needed. A press that moves more than 4 pt is a drag and never expands it.
  • Transparency: the tune button opens settings. Resting opacity (25–100%, default 55%) sets how much the stack shows while you work elsewhere. It comes up fully when the pointer is over it, when it has keyboard focus, or while a menu is open. It fades back 0.7 s after you leave. With Reduce Motion on, the change is instant.
  • Keep the mark on screen: off by default. When it is on, the companion comes back at launch even with nothing pinned.
  • Many items: three cards show. The rest sit behind +N more pinned, a bounded scrolling list grouped by state (Asks you, Blocked, Working…). Choosing an item brings it into the stack. Up to 200 pins are kept, and pinning past that is refused with an error rather than dropping an old pin.
  • Surfacing (opt-in, default off): on a work page, Surface on companion lets this work, its owning agent, or its project appear in the companion's Surfaced list. Granted items show their progress there with an "asks you" mark for questions, reviews and blockers, plus where they came from ("via Hudson") and links to the work and thread. A grant never shows the panel, takes focus, or approves anything. Remove grants in the companion's settings.
  • Detail: Open work opens the full work page in a Work window. There, Open in Scout replaces the back link in every state (loading, not found, loaded). Answer in thread or Open thread opens the conversation in the main window.

Nothing is pinned on its own. Delegated work is never pinned automatically.

Edge mode

The host has two panel modes: the stack, a window the size of its content, and edge, a panel over the whole display. The board, the notch and attached agents need the whole display, so the board asks the host for edge mode on its own. The classic pinned view also has an edge layout, edge characters. Choose it in the settings sheet (Layout ▸ Edge characters) or with Scout ▸ Show Companion as Edge Characters. Scout ▸ Show Companion as Stack always brings it back, and an unknown stored mode loads as the stack. The mode is saved in scout.companion.mode.

  • Figures: every pinned item, plus surfaced work you granted, stands on the bottom edge of the screen as its agent's character, 24 pt tall. The character comes from the same resolution the avatar coin uses (castSlugForAgent: explicit slug, then the Settings ▸ Agents assignment, then a name match). An agent with none of those stands as its own generative sprite. There is no underline under the figures.
  • Five visible states: working, resting, needs you, done, disconnected. The plate on the figure carries the state; poses never do. A resting figure sinks so only its head peeks over the edge. The exact state (Quiet, Waiting, Ended, Cancelled, Asks you, Blocked) stays in the detail popover and the figure's accessible label.
  • Motion is tied to real activity:
    • A working figure takes one step (at most 96 pt from its home spot) each time its last activity moves forward.
    • A figure that starts needing you hops once.
    • New pinned or surfaced work that appears after the first read drops in on a parachute. Work running on another machine walks in from the screen edge instead. That needs real provenance: the pin's machineId, or the agent's authority/home node, differs from the local node id read once from /api/mesh.
    • Offline, hidden or Reduce Motion: nothing moves, and anything in flight lands at once.
  • Detail: hovering a figure opens its popover; clicking keeps it open. Pinned work shows the stack's own card (detail, session tail, reported and observed lanes, Open work/thread, Unpin). Surfaced work shows Open thread, Open work and Pin. Both show the origin conversation link and, for visitors, the machine. Esc or a click anywhere else closes it. Left and right arrows move between figures once the panel has focus.
  • Origin pins (on by default): a small tab above two or more figures launched from the same conversation, and above the figure you are looking at. It opens that conversation. Turn it off in settings.
  • Crowding: figures never overlap. When the edge is full, a +N slot at the home end lists the rest. Resting and done figures give up their spots first; needs-you and new arrivals always keep one.
  • Settings: the home mark at the anchor end opens layout, the anchor (left or right end), origin pins, keep-on-screen, surfacing grants and Hide, then the Figures section (below). Resting opacity is a stack-only setting; edge mode is always fully opaque.

Figures you place

Every pinned figure can leave the home row and stand anywhere on the companion's display. Surfaced work has no figure settings and always stands in the row.

  • Drag: press a pinned figure and drag it. A press that moves 4 pt or less is a click and opens its popover. The host tracks the drag (figureDrag), so the figure follows the pointer anywhere on the display, feet at the pointer.
  • The modifier held at release decides where it lands (read from NSEvent.modifierFlags at mouse-up, so it can change mid-drag; no permission needed):
    • none: it stays where it was dropped, stored as a fraction of the visible frame.
    • ⌥: it sticks to the nearest screen edge or window side, feet first (standing on a window top, hanging under its bottom, clinging to a side). A side whose spot is covered by a window in front is skipped.
    • ⇧: it falls straight down onto the first uncovered window top below, else the bottom edge, with a 0.52 s ease-in (instant under Reduce Motion).
    • While dragging, an emerald line and spot show the ⌥ target; a dashed emerald line shows the ⇧ fall. Modifier changes redraw the guide without moving the mouse (the host polls NSEvent.modifierFlags at 30 Hz during a drag, because flagsChanged only reaches the key app).
  • Riding on windows: a figure on a window moves with it. Scout reads the window's bounds about 15 times a second (CGWindowListCreateDescriptionFromArray for just those window numbers), only while at least one figure is perched. If the window closes, minimizes or its app quits, the figure falls as with ⇧. If the window goes to another Space (or its app is hidden) the figure hides until the window comes back. If a window in front covers its spot, it ghosts to 22% and stops taking clicks, so the click reaches that window. Cover is re-checked about 4 times a second, and whenever the window moves.
  • Per-figure settings, in the figure's popover: Size (Default or 16, 24, 32, 48, 64 pt; any 16–96 is accepted), Motion (Default, Full, Calm, Still), Send home, Hide, and where it is ("Standing on the Safari window"). Full walks and parachutes in; Calm only hops when work needs you; Still never moves. Reduce Motion forces Still. A placed figure never walks.
  • Settings ▸ Figures: the default size (24) and motion (Full), every pinned figure with a show checkbox, size and motion, and Send all home.
  • Hidden figures: the mark reads N hidden and keeps its accent dot if a hidden figure needs you. Show it again from Settings ▸ Figures.
  • Keyboard: arrow keys nudge the focused placed figure, or the one whose popover is kept open, 1 pt (⇧: 10 pt) along its surface. Esc closes.

How placement is read

  • Panel and band: in edge mode the panel covers the companion's whole display (screen.frame), so a placed figure can stand anywhere on it. The home row lives in a band along the bottom of the screen's visibleFrame, min(470, visible height) tall, so the characters stand on top of the Dock or the screen bottom. The page gets the band, visible frame and screen size as page rectangles in edge.
  • Other apps' windows (figures you place only): bounds, stacking order, owner pid and bundle id from the window list via LatticesKit's EmbeddedLatticesWindows and CGWindowListCreateDescriptionFromArray / .optionOnScreenAboveWindow (ScoutCompanionWindowReader.swift). Layer 0 only; every app.openscout* process is excluded. Window titles are never read or stored. The list is read once per drag press, drop, fall and launch restore, and on a timer only while a figure is perched. None of this needs Screen Recording or Accessibility.
  • Dock: read only as the difference between the screen's frame and visibleFrame (ScoutCompanionEdgeGeometry.dockEdge). Insets of 8 pt or less count as an auto-hidden Dock.
  • Obstacles: only Scout's own windows (NSApp.windows) whose bottom is within 40 pt of the band floor. Scout steps around them. Moving, resizing, minimizing or closing a Scout window re-reads them (200 ms debounce). A display or Dock change re-reads the geometry before re-placing the band.
  • Anchor: which end the characters gather toward is an explicit operator setting, not a guess.

Click-through

  • The panel ignores the mouse by default (ignoresMouseEvents = true), so the desktop under it works as normal. During a figure drag it holds the mouse until release, wherever the pointer goes.
  • The page reports the rectangles that take the pointer (regions, at most 512, popover and home kept first when over budget). A global and a local mouse monitor flip ignoresMouseEvents off only while the pointer is inside one, and tell the page which (scout:companion-pointer), because WebKit runs no hover in a non-key panel. A click that reaches another app closes a kept popover.
  • Mouse monitors need no Accessibility permission. They are installed only while edge mode is on screen and removed on hide, release or switching back to the stack.
  • If the page fails to load, the panel falls back to stack placement with the native fallback card and stops passing clicks through.

Edge-mode limitations

  • The home row does not avoid other apps' windows. Only placed figures read them. Characters in the row can stand in front of another app's window that reaches the bottom of the screen; the anchor setting keeps one end clear, or drag a figure elsewhere.
  • The Dock's length is not read, only its edge and thickness. Characters stand above the whole reserved strip.
  • No origin window: Scout does not know which window launched a piece of work. Codex or terminal windows are not tracked. The parachute drops from straight above the figure's own spot, and origin pins sit above the figures, not on a window. The pin's link opens the originating conversation the runtime recorded.
  • Keyboard: arrow keys and Esc work only once the panel is key (after a click in it). ⇧⌘C shows or hides the companion while Scout is active, and Hyper+S does it from any app. Neither makes the panel key.
  • One display: the panel covers the companion's stored display (or the main one). There is one webview, so there are no per-display layers: free and edge placements are fractions of the visible frame and land on whichever display the companion is on, and a figure whose window moves to another display hides until the window comes back. A placement made on a display that is no longer connected goes home at launch.
  • Minimized vs another Space: macOS reports both as "off screen". A window that leaves the screen within 1 s of a Space change counts as away; otherwise, after 0.6 s off screen, it counts as minimized and the figure falls. On launch restore (or a re-read after the perch was lost), an off-screen window counts as away only with evidence: all its Spaces differ from the Spaces of on-screen windows, or its app is hidden. Off screen alone takes the same 0.6 s grace, so a figure on a minimized window falls instead of hiding for good.
  • Placed figures ride on window bounds, not window events: a 66 ms read, so a fast window drag can lead the figure by a frame or two.

Implementation reference

The sections below document the macOS host bridge, data boundaries, and source files behind the desktop companion.

Pieces

PieceFile
Board, notch placement, sizes and keyspackages/web/client/screens/companion/arrivals/ArrivalsBoard.tsx, arrivals.css
Board sizes S, M and L, chips, quota gaugespackages/web/client/screens/companion/arrivals/CompanionWidget.tsx
Notch rules: edges, camera housing, fold, snap, Desk room (pure)packages/web/client/screens/companion/arrivals/notch-model.ts
Choices on a click (pure, then drawn)packages/web/client/screens/companion/arrivals/companion-choices.ts, CompanionChoices.tsx
Board settings, Position gridpackages/web/client/screens/companion/arrivals/BoardSettings.tsx
Native sessions on the boardpackages/web/client/screens/companion/arrivals/board-sessions.ts, board-sessions-model.ts
Attached agents on windows and the desktoppackages/web/client/screens/companion/arrivals/DeskPlates.tsx
Edge return for a hidden notchapps/macos/Sources/Scout/ScoutCompanionEdgeZone.swift
Scout Desk's notchapps/macos/Sources/Scout/ScoutDeskNotch.swift
Classic pinned page /embed/companionpackages/web/client/screens/companion/CompanionScreen.tsx, companion.css
Edge mode viewpackages/web/client/screens/companion/CompanionEdge.tsx, edge.css
Edge placement, arrivals, origin pins (pure)packages/web/client/screens/companion/edge-model.ts
Edge band geometry, hit testing, click-throughapps/macos/Sources/Scout/ScoutCompanionEdge.swift
Figures you place: model, perch/fall/cover/nudge/restore geometry (pure)apps/macos/Sources/Scout/ScoutCompanionFigures.swift
Other apps' windows for perchingapps/macos/Sources/Scout/ScoutCompanionWindowReader.swift
Figure size, motion, layer, popover spot (pure)packages/web/client/screens/companion/figure-model.ts
Card mapping (pure)packages/web/client/screens/companion/companion-model.ts
Companion reads: summaries, pin detail, surfacing merge, expanded cardspackages/web/client/screens/companion/companion-data.ts
Host state hook (state, error, retry) for the page and work-page controlspackages/web/client/screens/companion/useCompanionHostState.ts
/api/work list query parsingpackages/web/server/routes/work-list-query.ts
Work-page pin togglepackages/web/client/screens/companion/CompanionPinButton.tsx, used in WorkDetailScreen.tsx
Work-page surfacing grantpackages/web/client/screens/companion/CompanionSurfaceButton.tsx, companion-surface.css
Throw and click math (pure, after Lattices Blink PanelPhysics.swift)apps/macos/Sources/Scout/ScoutCompanionThrow.swift
Bridge clientpackages/web/client/lib/companion-host.ts
Panel, webview, drag and snap, Work windowapps/macos/Sources/Scout/ScoutCompanionController.swift
Pin and placement state, request validationapps/macos/Sources/Scout/ScoutCompanionStore.swift
Companion panel (key-capable, click-through hosting view)apps/macos/Sources/Scout/ScoutCompanionPanel.swift

Data

  • Pins are operator chrome, not coordination records.

    • The Mac app stores them in UserDefaults under scout.companion.*: pins in operator order (up to 200, never evicted), corner, display, visible, minimized, restingOpacity, alwaysOn and surfacing scopes (up to 32 grants of kind work, agent or project).
    • A pin stores only workId and the optional machineId scope.
    • Figures you place: scout.companion.figures (JSON, one entry per pinned figure that differs from the defaults: workId, size or null, motion or null, hidden, placement) and scout.companion.figureDefaults ({size, motion}, default 24 and full). Placements are home, free {displayID, x, y}, edge {displayID, edge, t} or window {ownerBundleID, windowNumber, side, t, x}; x is the last fraction across the display, so a window that is gone at launch drops to the bottom edge at the same x. A missing display sends the figure home. Unpinning forgets the entry. Window numbers do not survive the owning app relaunching, so after one the figure drops too.
    • Card content always comes from the runtime through the web API. Nothing new is persisted.
  • Bounded reads: only the three visible cards get full detail (in edge mode: the first three pins plus the figure being looked at; looking at another figure reads only that figure's detail). Hidden pins and work grants are classified from GET /api/work?ids=a,b,… list rows, at most 100 ids per request. ids includes finished work unless active is given, the server keeps at most 250, and a request whose ids are all invalid answers []. Agent and project grants read at most 16 agents × 12 rows of active work (/api/work?agentId=). The Surfaced list shows at most 24 items: anything asking for you in the last 7 days, then work that moved in the last 2 hours. Finished work surfaces only through a work grant; agent and project grants show active work. Pinned items are left out of it.

  • Reads never race: pinned detail, list rows and surfacing reads each carry a counter, so a slow answer never overwrites a newer one. Bookkeeping for work that is no longer pinned (expanded cards, follow lookups, motion history) is dropped.

  • Each visible card reads:

    • GET /api/work/:id, filtered by the pin's machine scope.
    • /api/follow, to resolve the work's harness session.
    • The shared /api/tail/recent buffer plus live tail events, matched on that session id.
    • /api/session-ref/:id seeds the last seven timestamped tool/message/note entries from the resolved execution session, including work older than the recent-event buffer. Synthetic offsets are not presented as wall-clock times.
    • Collapsed cards show the latest three session entries with their original times, including review and completed work. Expanded cards retain the reported and observed lanes. Historical activity does not imply that the agent is still running.
  • Reported vs observed:

    • Reported is the agent's own collaboration events (work_update): the headline and the Reported lane.
    • Observed is what Scout saw: flight starts and finishes, plus session-tail lines. The operator's own lines are excluded.
    • The two lanes are kept separate and never merged.
  • States, in order of precedence (buildCompanionCard):

    1. done (with the reported output);
    2. cancelled;
    3. blocked (attention: interrupt, which only a failed flight sets: the callout reads "Flight failed · observed" and never quotes a report);
    4. question or review (the next move is the operator's);
    5. waiting on someone else;
    6. session ended without a completion report;
    7. quiet (no activity for 8 minutes);
    8. working.

    There are no percentages.

  • Disconnected:

    • If a read of pinned work fails, or a runtime stream that was live drops, the header turns red: offline · synced HH:MM.
    • Cards dim, and ages count from the last sync.
    • A failed surfacing read does not dim the cards. Each agent keeps its last rows and the Surfaced tab says not refreshed.
    • A failed bridge call shows its error in the panel until the next call or state from the app succeeds.
    • If the web service is unreachable at load, the native panel shows a fallback card with Retry and Hide. While the companion is visible it also retries on its own (2, 4, 8, 16 s, then every 30 s), reloading behind the card. An HTTP error keeps its own message instead of reading as offline.
    • A page that loads but never reports its layout within 10 s counts as failed, so the panel never sits blank.

Bridge

The scoutCompanion message handler uses the same envelope as the Settings bridge. companion-host.ts documents the wire format and methods.

  • The host accepts messages only from the main frame of the Scout web origin (ScoutWeb.baseURL()).
  • ScoutCompanionRequest.parse validates every field. Ids must match ^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$, layout sizes must be finite and bounded, a reorder must be an exact permutation, and unknown methods or targets are refused.
  • The work page may only read state, pin, unpin, allow and disallow. Layout, regions, drag, preferences, engage, reorder, minimize, open and hide belong to the companion page.
  • preferences also carries mode (stack|edge), originPins and edgeAnchor (left|right). State pushes include them plus edge (panel size, band, visible frame and screen as page rectangles, anchor, Dock edge, obstacle spans) while edge mode is on.
  • Figures: figureDrag {workId}, figure {workId, size?, motion?, hidden?, home?} (size 16–96 or "default", motion full|calm|still or "default", home only true, at least one field), figureNudge {workId, dx, dy} (finite, at most 100 pt each), figureDefaults {size?, motion?} (at least one) and figuresHome. All belong to the companion page, and a figure change for work that is not pinned is refused. State pushes carry figures (one per pin, in pin order, with the host-resolved anchor {x, y, down, covered, away} and placement label) and figureDefaults. Between pushes the host sends scout:companion-anchors (riding, ghosting, falling) and scout:companion-figure-drag (drag position, modifier and guide). Window numbers, bundle ids and display ids stay with the host; the page gets each placement's kind, side and fractions only.
  • Drags start with drag {source: grip|mark}. The native side tracks the mouse, measures release velocity over a 100 ms window, and decides click vs drag, so WebKit's click never races the gesture.
  • The companion webview loads only /embed/companion. Other links open in the default browser; window.open never creates a webview.
  • The Work window keeps same-origin pages and sends everything else to the browser.
  • Main-window web views register the handler with the work-page role, so Pin and Surface appear on work pages there too. The main window can also show other origins (hosted Spaces), so state pushes and replies are sent only while the page is on the Scout origin.

Lifecycle

  • There is one webview, inside a non-activating OverlayPanel. It joins all Spaces and sits beside full-screen apps.
  • Show calls orderFrontRegardless without making the panel key. Clicking inside the panel can make it key; Scout is never activated.
  • On hide, the page is told visible: false. It unmounts its runtime and tail subscriptions and stops its clock.
  • After 60 seconds hidden, the panel and webview are released, so the app-level runtime stream goes too.
  • The panel restores on launch only if it was visible and has pins or Keep the mark on screen is on. Otherwise it is recorded as hidden, so the menu reads Show.
  • Hover is tracked natively (a tracking area on the panel content), because a non-key panel gets no WebKit hover. Fades wait while a menu or settings sheet is open (engage).
  • Theme follows Scout's appearance and the system light/dark setting; the page is reloaded with new themeVars.
  • Reduce Transparency keeps the panel fully opaque instead of using the resting opacity. The panel is labelled "Scout companion" for VoiceOver.
  • prefers-reduced-motion turns off the card, hairline and roll animations. The drag snap follows the accessibility reduce-motion setting.
  • Project marks use initials. Scout has no project icon system, so none are invented.

Limits

  • macOS only. The companion is part of Scout.app. /embed/companion opened in a plain browser tab has no host, so it cannot place figures, raise the notch over the menu bar or keep attached agents.

  • Above the menu bar on the top edge only. On the other edges, and with a host that cannot raise the panel, the notch stands inside the visible frame, beside the menu bar and the Dock.

  • One display at a time. The notch and the board live on the companion's display. A hidden notch comes back only from the edge of that display.

  • Placing an agent needs a hand. The page cannot set a placement, so an agent lands somewhere only through a drag.

  • One look for every figure. The figure look (LED initials, LED name or Character) is one setting for all figures.

  • Surfacing grants are given by the operator from the work page. A delegating agent cannot request one: there is no scout ask flag and no runtime record for it. Grants live in the Mac app's UserDefaults.

  • Surfaced items cannot answer permission requests from the companion. They link to the existing work and thread.

  • The 200-pin cap refuses new pins instead of evicting. Unpin a card, or unpin from its work page, to make room.

  • A plain browser tab has no host palette, so accent marks render without colour there.

  • Embedded "work" routes that carry a workId open the Work window instead of switching to Dispatch, wherever they come from.

  • ⇧⌘C (Scout › Show/Hide Desktop Companion) shows or hides the panel but does not focus it. Arrow keys move between cards once the panel has focus, and Esc closes settings and the pinned or surfaced lists.

  • The drag grip has an accessible name but no keyboard move; corners change only by dragging.

  • When content is taller than the screen, the stack scrolls instead of collapsing.