Skip to content

Tools beside the thread

Apple Development Workbench

The provider-neutral Apple Development Workbench for Xcode, Simulator, build, run, test, and validation evidence.

  • 14 min read
  • 6 sections

Apple Development Workbench ​

The Apple Development Workbench is a provider-neutral workbench inside the Code workspace for local Apple development on Apple Silicon. It works with every configured provider, including a local OpenAI-compatible one, and does not depend on Codex, Claude, a particular plugin, or a provider-owned computer-use implementation. Core Apple capability is app-managed and works even when the Build iOS Apps extension is absent or disabled.

Scope ​

The intended first-release boundary is local iOS and iPadOS Simulator development and local macOS development (Xcode and Swift Package Manager). What you can do today is a slice of that shape:

  • Toolchain, project, and destination discovery (Xcode, xcode-select, SDKs, Simulator runtimes, workspaces, projects, schemes, configurations, targets, destinations) — non-mutating, with a setup checklist when discovery fails. The checklist has rows for Xcode, its licence, a Simulator runtime, and the project, and marks the step that failed. If the licence has not been accepted, run sudo xcodebuild -license accept in Terminal, then choose Check again; Octant never accepts it for you. The command palette lists only .xcodeproj and .xcworkspace at the checkout root. The octant_apple tool can name a Package.swift path, but Swift-package discovery is not available yet: the host passes that file to xcodebuild -packagePath, which expects the package directory, so discovery fails as incomplete. Test plans are not discovered yet.
  • Build against the workspace's first reported scheme.
  • Test against that same scheme. The workbench Test action names no Simulator. A non-macOS test without a matching destination is refused as an invalid destination, so Simulator tests are not available from the workbench yet. An octant_apple test can include a matching platform and simulatorId; a macOS test needs no Simulator.
  • Run on a selected Simulator — build, install, and launch (a launch also terminates any already-running copy of that app). The workbench sends the first discovered Simulator's platform with the selected destination's ID, so Run succeeds only when that destination is on the same platform; a different-platform selection is refused as an invalid destination. Separate install, terminate, and relaunch controls are not yet built.
  • Simulator Boot and Shut down as explicit actions from the workbench destination list — never as a side effect of Build or Test. Boot waits until the destination is ready. Erase is not yet a workbench action.
  • Capture screen of a booted Simulator, stored as a screenshot artifact.

macOS app staging, stopping only owned processes, launch and focus, and handoff to Xcode or an external editor are not yet workbench actions. An app's unified log and crash reports are not workbench actions either, but an agent can read them with octant_apple logs (see below). Tests that reach xcodebuild test run the scheme (Swift Testing and XCTest as the scheme defines them). xcodebuild is given a result-bundle path; that .xcresult is not retained as a host artifact, and the evidence reference does not currently resolve to stored bytes. Logs, and screenshots from captures, are retained. Focused target, suite, test, tag, and test-plan selection, accessibility audits, flake investigation, and a navigable parse of .xcresult into build errors, warnings, test hierarchies, attachments, and coverage are not yet built.

Workbench surface ​

The workbench appears as a Code workspace tab titled Apple workbench and shows the project path, the "Apple development" eyebrow, Xcode version, scheme, revision, SDK count, Simulator count, Actions, Simulator destinations, Current progress, and Validation evidence.

The iOS Simulator dock tool is a device pane bound to the owning Code thread and checkout. The device is the main thing in it: one toolbar above the screen, at most one line under the toolbar when something needs you, and the Simulator drawn on a quiet stage. It does not show scheme facts, Build, Test, or the validation-evidence dump — those stay on the Apple workbench command.

  • Toolbar. The Simulator's name opens a list of the others, so you choose which one the pane shows; the choice stays until an agent asks the pane to show a device. Beside it are the OS and the state in words (Running, Booting, Live view lost, and so on). On the right are Home and Screenshot, Lock when the pane is wide, and More: Type text…, Open URL…, Record screen (Stop recording while it records), Lock, Volume up, Volume down, Switch device…, Diagnostics (what is running, recent evidence, and where the live view comes from), Stop live view, and Shut down. Only actions the host supports today appear. The arrow keys move along the toolbar.
  • Open URL. Opens an http or https address on the Simulator, the way tapping a link would; a bare example.com is read as https://example.com/. Other kinds of address, including app links and file: or javascript: ones, are refused. On an approval-gated thread every address asks first, and the confirmation shows the whole address; Allow input does not cover it. Evidence records only the address's origin (https://example.com), never its path or query.
  • Rotate. More offers Rotate when the host supports it. It turns the Simulator away from the orientation it shows now, so each press alternates between portrait and landscape, and the pane shows the Simulator upright either way. It needs the Octant desktop app and its managed streaming tool (a development build does not include it and says so), asks first on an approval-gated thread, and Allow input does not cover it.
  • Record screen. Records the Simulator's screen for up to 60 seconds, or until Stop recording, a shut down, or the host closing. On an approval-gated thread starting asks first; stopping does not. The video is saved as evidence the way a screenshot is, and a recording that is empty or too large to keep is reported as not saved.
  • The line. An error is one sentence with one fix, such as Try again or Reconnect; the raw outcome is in Diagnostics. On an approval-gated thread the line asks Allow input on iPhone 17?. Allow opens Octant's usual confirmation, and that confirmation is what grants input. Not now leaves the screen view only, and a View only chip in the toolbar brings the question back. Each Simulator asks for itself: a grant for one does not hide the question on another.
  • Stage. When nothing is set up, a short checklist shows Xcode, a Simulator runtime, and the project, and each missing row says how to fix it. When nothing is running, Choose a Simulator boots the one you pick. When more than one Simulator is running and nobody has chosen, the pane asks which to show instead of guessing. A booting Simulator keeps its outline while it starts. The screen is the only place that sends input; when it has focus a caption says the keys go to the device, and Tab leaves it.

Its states are setup, nothing running, booting, live, live view lost, interrupted, and stale after a host restart. Under the Octant desktop app a live frame shows the Simulator's screen as it changes, so you see what a tap or an agent's action did without capturing in between. Frames are sent only when the screen changes, and they are never stored: nothing of the live view is written to disk, to the journal, or into a model's context. Capture screen (Screenshot in the device pane) is still how a screen becomes validation evidence. When the host has no live view, the frame shows the latest captured still instead. Remote, Linux, and headless clients say the native frame is not attachable instead of hanging or inventing a picture. Closing the tab unmounts the view only; it does not shut down, erase, or transfer the destination.

When the desktop's native device helper is stopping after a cancelled or timed-out action, another action reports that it is still stopping until its exit is confirmed. It cannot silently queue behind an old action or start a replacement alongside it. Quitting Octant waits briefly for its native helpers to exit, escalating when they do not respond. This does not shut down or erase the Simulator itself.

An agent's octant_apple boot, run, or open opens that pane beside the transcript. open boots a shut-down destination and otherwise only shows the pane. Do not launch Simulator.app, open -a Simulator, or serve-sim. The in-app pane is the live device. It attaches the managed serve-sim stream for a booted Simulator and falls back to the desktop device helper when that stream is missing. The pane opens once per request; a tab you closed stays closed until the agent asks again.

The managed stream runs in a native sandbox that grants its Simulator state, runtime and local services, without access to your Projects or provider sign-ins. A host that cannot start this sandbox keeps the native device helper. Device-tool versions and manual checks are available in Settings › Computer use, under Device tools and Device tool updates; automatic updates remain off until you enable them.

Orientation, accessibility hierarchy, and recording are not part of this surface yet. Typed input, tap, and hardware keys ride the same workbench control channel as Boot and Capture screen: the renderer posts structured requests, and the Octant desktop app delivers them to the Simulator through a small native helper it ships, or through the managed serve-sim stream when that stream is attached. Nothing comes to the foreground and no macOS Accessibility permission is needed. Keys and typing need the helper. Tap, swipe, Home, and Lock use the managed stream when it is attached and the helper otherwise. Octant does not launch or script Simulator.app to deliver them. A tap lands on the point you click on the captured screen. On an approval-gated thread, Allow input is the one confirmation that opens that Simulator; clicks, typing, Home, and Lock never raise a dialog. That grant covers input for fifteen minutes after each input. Type keys letters, digits, spaces, and new lines, because a Simulator maps key positions with its own keyboard language. Keyed typing works on a Simulator whose keyboard language uses a QWERTY layout — English, the Nordic languages, Dutch, Spanish, Portuguese — and is refused on others, such as French or German, with keyboard-layout-unsupported in the evidence. Text with punctuation or non-Latin characters is refused whole with unsupported-character, and nothing is typed, rather than reported as typed. Return, Escape, Home, and Lock are keys and buttons. Input needs Xcode 27 or later. When the host cannot deliver an input action, the evidence names the host's refusal rather than reading as interrupted. Remote, Linux, and headless clients stay read-only. Typed characters never land in durable evidence, and neither does the reason a type-text action failed, since it can quote what was typed. Destination actions remain on the workbench list: each Simulator offers only what its reported state can perform.

States also include loading the toolchain, waiting for Apple evidence, toolchain unavailable, action interrupted, and action failed, with Retry. Outcome labels are Succeeded, Failed, Cancelled, Timed out, Interrupted, Unavailable, Unauthorized, Invalid destination, and Process died.

Running actions ​

Build and Test run against the workspace scheme and name no Simulator. Each Simulator destination offers only what its reported state can do: a shut-down Simulator offers Boot; a booted one offers Run, Capture screen, and Shut down. A live attachable frame is driven directly: click to tap, drag to swipe — the swipe is sent when you let go and replays your drag as a straight line over the drag's duration, never shorter than 80 ms or longer than 2 seconds; on the managed stream a drag up from the bottom edge goes Home or unlocks — and, once you have clicked the screen, type on your keyboard. Letters, digits, spaces, and new lines go to the device as keys on a supported QWERTY layout, and typing is sent when you pause. Other text, such as punctuation or non-Latin letters, is refused, as described above. Return, Delete, Escape and the arrow keys go to the device, and Command and Control shortcuts stay with Octant. Home, Lock, and Type text… are in the device pane's toolbar and wait in the same queue as taps and typing, so what you do while an action is still running is kept and sent in order. Holding the mouse button down without moving is a tap; long press and pinch are not available. Run is limited to destinations whose platform matches the first discovered Simulator. Anything already running can be Cancelled from Current progress.

An approval-gated Code thread asks for confirmation before each of these, the same confirmation the rest of Code uses. Input to the device is the exception to "each": Allow input asks once, and that approval keeps the Simulator open to input from that window, on that thread, for fifteen minutes after each input, so driving the live frame is not a dialog per touch. Clicks never open that confirmation. Another window or browser tab on the same thread asks for its own confirmation. Shutting the Simulator down, closing the window, or restarting Octant ends it. So does a refresh that finds the Simulator no longer booted, even if it was shut down from Xcode. Capture screen asks for nothing: reading a booted Simulator's screen changes nothing, so it works under Plan mode too. A capture is recorded as a screenshot artifact in Validation evidence — a durable reference to a local file, never image bytes copied into the conversation.

Open the workbench from the command palette: Open Apple workbench for <project> appears for each .xcodeproj or .xcworkspace the host finds at the root of the Code thread's checkout. A checkout with none offers no such command. Package.swift is not listed.

A Code thread's agent also reaches these actions through the app-managed octant_apple tool, so it can discover the toolchain, read Simulator state, build, test, run, boot, open the in-app pane, shut down, capture the screen, and inject tap, swipe, typed text, and hardware keys. It can also open an http or https address, rotate the Simulator, and start and stop a screen recording. These run without asking at Full access, ask in the thread first below it, and are refused in Plan; stopping a recording never asks. Each address it opens asks on its own, and Allow input never covers one.

When the Simulator refuses input because it stopped answering, the agent can send Repair input itself, the same repair the device pane offers after that refusal. It restarts the Simulator's home screen, so running apps close. Repair input counts as input: at Full access it is sent without asking, below Full access a live Allow input grant covers it and otherwise the thread asks you first, and Plan refuses it. Octant never does any of these by itself. logs reads an app's recent unified-log lines, by its executable and its subsystem, and returns them in the tool result: the newest 500 lines or 32 KiB, over the last five minutes or up to ten minutes the agent names. With crashes asked for it adds the start of the app's three newest crash reports, which Octant reads itself from ~/Library/Logs/DiagnosticReports. Reading logs changes nothing, so it works under Plan mode too. Describing the screen as a list of elements and tapping an element by name are Android-only for now; on a Simulator the agent reads a screenshot and taps a point. boot, run, and open show the Simulator in Octant's iOS Simulator pane — never by launching Simulator.app. Pane-driven input journals as local-user; tool-driven input journals as agent. The host binds both to the same thread and checkout and refuses them with the same policy. Discover, status, screenshot, logs, and open of a device that is already running (it only shows the pane) work under every posture, Plan included. On an approval-gated thread every other operation asks in the thread first and runs only once you allow it; input the window's Allow input already covers goes through without asking again. Plan mode refuses them, and Full access runs them without asking. The workbench never treats Boot as a side effect of Run: a shut-down Simulator only offers Boot. The tool's run operation currently boots a named Simulator that is shut down, then installs and launches; that is today's toolchain behavior, not a workbench control.

Honest verification ​

A coding agent may claim verification only when the surface was actually exercised:

  • Compilation is not launch proof.
  • Launch is not UI-workflow proof.
  • Simulator is not physical-device proof.
  • A passing unit suite is not a passing UI or accessibility workflow.

Evidence is stored as local artifact files with durable references, not copied wholesale into model context. An automated Review changes pass that inspects the diff and Apple evidence and produces durable inline findings is not yet built; Code's local findings pane is a separate surface and does not consume Simulator captures.

Boundaries ​

Not in scope: physical devices and App Store distribution, provisioning, TestFlight testers, notarization, and release automation. An agent that needs a device or the store uses its own provider tools. Octant never silently installs or updates Xcode, SDKs, or Simulator runtimes. The Build iOS Apps extension is optional and contributes nothing to the core Apple path.

Next steps ​

Octant documentation · local-first by design