Skip to content

v2.0.0

Choose a tag to compare

@janicduplessis janicduplessis released this 27 Nov 21:37
· 105 commits to main since this release
c1ded6d

Stim 2.0 is the one-engine release. One stim package and one resident stimd per Stim home run what 1.40 split across stim, stim-server, stim-ci and per-workspace supervisors, and stim gc now deletes instead of only reporting. Everything after Known issues is the complete reference.

Highlights

  • One stimd per Stim home runs Metro, tunnels, device logs and maintenance.
  • One package. stim serve, pair, pairings, service, setup and ci replace the stim-server and stim-ci binaries.
  • Cleanup that acts. stim gc deletes at the measured disk pressure level, and stim worktree list shows what cleanup will do with each worktree.
  • stim worktree add creates and warms a worktree in one command, cloning the source checkout on APFS, btrfs and XFS.
  • Builds. Stim computes its own build-cache fingerprint, and stim ios runs Exact apps.
  • Project tooling. stim services runs per-worktree databases and API servers, and stim test runs tests under a machine-wide slot.
  • A stable contract within 2.x. --json payloads and API results only gain fields and enum values.

Before you upgrade

Removed (breaking) has the details and the smaller breaks.

  • stim gc deletes, and its 1.40 flags are gone. Preview with stim gc --dry-run. The gc --json payload changed shape: level, actions, blocked, results.
  • collectGarbage() in the JavaScript API deletes. With no options it was a dry run in 1.40. Use previewGarbage() to preview.
  • A dormant linked worktree loses node_modules and Pods after one idle day (idle.dormantDays 3 to 1), other cleanup defaults changed, and ios.simslim is on. To keep a 1.40 value, run stim settings set <key> <value> --scope machine before the first 2.0 command that starts stimd.
  • A main checkout idle for 7 days also loses its node_modules and Pods (idle.sourceDormantDays, new; 0 turns it off).
  • stim-server, stim-ci and eleven @stim-cli/* packages are gone. Use the commands above, import from stim, and remove @stim-cli/metro and @stim-cli/expo-build-cache from the project.
  • Update everything that talks to stim: Stim Desktop, the phone app, each service, each offload worker, @stim-cli/cache-s3 and the stim-ci GitHub Action.
  • Removed settings and environment variables are mostly ignored; a few make commands refuse and print the fix. stim settings and stim doctor list them.
  • fingerprint.config.js: only extraSources still changes the build-cache key, and only while cache.fingerprintInputs is unset.
  • Save manual edits in an untracked, generated Expo ios/ or android/. The first 2.0 run prebuilds it once.

Upgrade

  1. With 1.40 still installed, run stim status, then stim stop in each running workspace, in each Stim home.
  2. Run npm install --global stim@2.0.0, or move the project's stim pin.
  3. Before any other command, run stim guide agent, stim settings and stim doctor, and settle what they report. Set any 1.40 default you want to keep (see Before you upgrade).
  4. Leave a running 1.40 daemon: the first 2.0 command that starts stimd stops it. Stop by hand only a process that stim status says stimd does not stop, with the command it prints.
  5. Update everything listed above. For each service, run stim service install with its existing options.
  6. Update project files and scripts. Migration notes has a git grep for them.
  7. Run stim doctor and stim guide agent until STATUS is clear. Expect one cold native build per fingerprint.

Or paste this into your coding agent:

Upgrade this machine and project from Stim 1.40 to 2.0 by following https://stim.appandflow.com/docs/migrate-to-2. First list the workspaces `stim status` shows under 1.40. Once I confirm, stop them, install stim 2.0 the way 1.40 was installed, run `stim guide agent` and work through that page's "For agents" section in order. Ask me before you stop a process, change an environment or a default, edit ~/.stim/config.json, reinstall a service or update another machine. Finish with `stim doctor` and tell me what you changed and what is left.

Known issues

  • A stimd that holds its claim but does not answer is reported, not replaced (#5774).
  • stimd does not restart by itself (#5579, not planned).
  • A worker restart cancels its offloaded builds (#5588, not planned).
  • stim worktree warm can carry a workspace package's stale build output, such as dist (#5853).
  • An EAS Simulator session can run to its duration cap when stim is killed hard while creating it (#6493). Stop it with eas simulator:stop --id <id>.
  • On Windows, a killed fingerprint evaluation leaves its native-run lock claim behind (#6454). stim stop prints the Remove-Item command to run once the pid it names is gone.

Removed (breaking)

The reference starts here. It covers the two published npm packages, stim and @stim-cli/cache-s3, against v1.40.0, the last stable release, through every 2.0.0 release candidate up to the release commit. A behavior that was added and removed again between candidates is not listed, and a fix to something new in 2.0 is part of that feature's entry. Stim Desktop and the phone app ship through their own workflows; their changes are listed where they belong to a feature. Stim 2.0 needs Node.js 22.12.0 or later, as 1.40 did, and hosted simulators and emulators still need agent-device 0.21.30 or later on both machines.

Each item says what changed and what to do. The upgrade guide has the full tables of old and new names.

  • stim gc deletes. --delete, --cache, --older-than and --worktrees are gone, and the gc --json payload is the level run (level, actions, blocked, results). Do: preview with stim gc --dry-run, apply with plain stim gc, and pick a level with --pressure normal|high|critical. 105fea04d3
  • Cleanup and simulator defaults changed. idle.dormantDays 3 to 1, maintenance.olderThanDays 7 to 3, disk.minFreeGb 20 to 40, disk.criticalFreeGb 6 to 20, and ios.simslim off to on, which also applies to Stim simulators created before the upgrade at their next boot. Do: before the first 2.0 command that starts stimd, keep a 1.40 value with stim settings set <key> <value> --scope machine, and set ios.simslim to off for a project that needs stock simulator services. 105fea04d3 b71322b54e 1d1bb1bf2c
  • Removed settings, flags and environment variables are unknown names. Most are ignored, and the CLI names no replacement for them; stim doctor still names the replacement for the keys in the legacy settings table. A few whose being ignored would silently change behavior still make start, ios, android, web, macos, revive and gc refuse: old config that sets maintenance.mode to off or report, or metro.idleStopMinutes or devices.idleShutdownMinutes to 0, prints the stim settings commands to run, and five old environment variables, such as STIM_MAINTENANCE, print the variable to unset and its replacement. Do: run stim settings and stim doctor to find them in every layer, and use the legacy settings table. Each printed stim settings unset <key> carries the --scope of the layer that holds the key; one you type yourself without --scope removes the key from every layer, a committed .stim.json included. fc6e3ec527 7a084560dc c3f10be9e8 cf92502786 a7415fc400 81621c8f8c
  • stimd stops a running 1.40 stim-daemon and takes its place. It does not exit when its workspaces stop, and Stim Desktop 0.3.0 starts it again on each Run while no stimd runs. The first 2.0 command that starts stimd checks that the process holding ~/.stim/daemon/claim is a 1.40 stim-daemon of this home, sends it SIGTERM and prints one line naming its pid; the dev servers it left running keep running, and stim start reuses them. A holder Stim cannot verify is not signalled: start, ios, android, web, macos, revive, an acting gc and stim serve refuse with STIM_DAEMON_UNAVAILABLE, its pid and the stop command, and a stimd that Stim Desktop starts prints the same text. Do: nothing for a 1.40 daemon; for a holder that stim status says stimd does not stop, check the pid, then run the command it prints (kill <pid>, or taskkill /PID <pid> /F on Windows). #6594
  • The stim-server and stim-ci binaries are gone, and eleven @stim-cli packages no longer publish. @stim-cli/core, cache, agent-driver, agent-driver-agent-device, ci, transport, transport-tailscale, transport-local and server are bundled into stim, and @stim-cli/metro and @stim-cli/expo-build-cache are removed (below); published versions stay installable but get no update. Do: use stim serve, stim pair, stim pairings (stim-server devices is stim pairings, stim-server log is stim pairings log), stim service, stim setup and stim ci, and import from stim, stim/ci, stim/ci/artifacts or stim/plugin. 26c6578878 dd200830e0 db8d60bf30
  • @stim-cli/metro is gone. Do: remove it and sharedCacheStores from metro.config.js and your dependencies; Stim sets Metro's shared transform store itself (optimizations.metroSharedCache). 26c6578878
  • @stim-cli/expo-build-cache no longer works as an Expo buildCacheProvider that Stim reads. Do: remove it from your dependencies and the Expo buildCacheProvider config, and build with stim ios and stim android. 26c6578878
  • @stim-cli/cache-s3 1.x does not load as a 2.0 cache provider. 2.0 reads a plugin's kind from stimPlugin.kinds in its package.json, which 1.40.0 lacks. Do: upgrade it to 2.x under the same name, then check that stim plugin list shows it. It now declares its stim peer as ^<version>. 26c6578878
  • A service that a 1.x Stim installed keeps running 1.x. A LaunchAgent or systemd unit written by 1.x runs its own stim-server script, which nothing rewrites. Do: run stim service install once with the service's existing options while no build runs; stim service status prints the exact command on its stale: line, and stim doctor reports it as server-service-stale. On Windows, run stim service install again after each engine update. b51353e4bd a72e437c0a 0f8cb13e3c
  • Offload workers and clients must both run 2.x. The worker wire protocol is peer 3 and build compatibility is 6. Do: update this machine first, then bring each worker to the version this machine runs. A 1.x worker cannot take stim remote update: on the worker, run npm install --global stim@<version> and stim service install with its existing options. A 2.x worker updates from this machine with stim remote update <machine> --to <version>. stim doctor prints the right command for each worker; then check stim remote list and the next offloaded build. 26c6578878 779be183d0 c23bdd16e3 3c1907196f b6e11782c2 5a38f7c111
  • Stim Desktop and the phone app must be updated with stim. stim-server's local.sock listener is gone, so Stim Desktop connects through stimd's socket. A phone app from before the 2.0 protocol is refused with a prompt to update Stim Mobile. Do: update Stim Desktop to the release that ships with 2.0, and the phone app from the App Store or TestFlight. 7a084560dc (results)
  • The stim-ci GitHub Action runs only 2.x. Do: move the uses: ref to a 2.x release and set version: to 2.0.0 or later in the same change; a 2.x version under the 1.40 action breaks the workflow. 7a084560dc
  • The server commands refuse an option they do not define. 1.40's stim-server accepted an unknown option after a subcommand; stim pair, stim pairings and the other commands that replace it print unknown option instead. Do: remove the option from the script. 7350db7843 7e163ef3f5 01376b0e3e ff522d1a9e
  • JavaScript API renames. StimOptions.buildCache is buildCacheDir (also in stim/ci), the run option wait is waitSeconds, diagnostics({ errors }) is diagnostics({ errorsOnly }), gc() is previewGarbage(). Until 2026-12-12 each of these old names refuses with STIM_BAD_ARG and names the new one. collectGarbage() always deletes and takes only { pressure, signal }: its 1.40 options delete, cache, olderThan and worktrees refuse with STIM_BAD_ARG, and for delete the remedy names previewGarbage(). A 1.40 call without delete: true only previewed; one with no options now deletes, and nothing can refuse it. Every operation reports a refusal as a rejected promise. holdCIStimd is no longer exported. Do: rename at each call site, and call previewGarbage() wherever a 1.40 collectGarbage() call only previewed (JavaScript and TypeScript). efb8679b5f db8d60bf30 b36f3fe4b1
  • Internal subpath exports moved or went away. stim/pull-requests is stim/internal/pull-requests with no compatibility, stim/build-artifact-cache is gone, and stim/cache-manifest exports only register(entry), unregister(dir) and CacheEntry. Do: use public operations. efb8679b5f 26c6578878
  • stim/plugin exports only what a plugin implements or tests with. The cache tier utilities, the host loaders, cacheProviderContractChecks and CacheProvider.metro are removed, and builds.resolve and builds.store are typed to return a Promise. Only the cache-provider kind is stable in 2.x. Do: see Plugins. efb8679b5f 47e9dd2805 cc560a119a
  • fingerprint.config.js options other than extraSources no longer change the build-cache key. extraSources itself is ignored when cache.fingerprintInputs is set. 1.40 passed the other options to @expo/fingerprint, so preset: 'strict' hashed native dependency contents; 2.0 does not warn at build time, and stim doctor lists each ignored option. Do: move needed inputs to extraSources or cache.fingerprintInputs, or commit a native dependency edit as a patch; for a temporary edit, build with --no-build-cache --remote-build local. 779be183d0
  • Offloaded builds remove Stim's own access and setup credentials from the worker's build environment. A build that reads a private Stim credential, or enumerates the project environment while one is present, is uncached. Do: remove the credential from the build environment. 779be183d0
  • stimd does not stop a dev server or device log collector that an older build started. It keeps its port until stim stop, and stim start either reuses it or reports Port <n> is held by something else. Do: stop workspaces with 1.40 before you upgrade. 21ead8914d d7716ba7e1
  • stim-server no longer probes its port for a stim-server from before 2.0, such as a 1.40 stim-server or a never-updated Stim Desktop 0.x bundle. A held port ends the net thread with port <n> is held by pid <pid>. Do: stop that process, or run stim serve --port <n>. 7a084560dc
  • A web share link no longer reads the device clipboard. A simulator or emulator may share its clipboard with the host Mac, so a link holder with --control could read what the host user copied. The share page drops its copy-from-device control and the device-to-browser sync, and stim-server answers a share page's clipboard read with clipboard-read-refused; its Send clipboard switch, and Paste to device on touch browsers, still send browser text to the device. Do: copy from the device in Stim Desktop or the phone app, which still read it. f399f7142d
  • No action needed: Stim no longer reads the pre-1.4 lock directory and marker, which a 1.40 home never wrote, and drops the build-compatibility fallback for workers older than 1.25.0. ca42eb55bd c23bdd16e3

Migration notes

The steps under Upgrade, with what each one needs. Do them in order on each machine. The upgrade guide explains each one, and its For agents section is the checklist an agent follows after the install.

  1. With 1.40 still installed, stop your workspaces. Run stim status, then stim stop in each running workspace, in each Stim home you use. Keep the same STIM_HOME.
  2. Install 2.0: npm install --global stim@2.0.0, or move the project's stim pin or npx stim@... to 2.0.0.
  3. Settle settings before any 2.0 command other than status, settings, doctor and guide, because most others start stimd. Run stim guide agent: its STATUS line names what an earlier Stim left behind. stim settings and stim doctor list the leftover keys, and the refusals print the stim settings commands to run, each scoped to the layer that holds the key. Decide now whether to keep any 1.40 default (see Removed (breaking)), because the first stimd runs cleanup under the values then in force.
  4. Leave the 1.40 daemon to stimd. The first 2.0 command that starts stimd stops it and takes its place. Only when stim status prints Daemon: pid <n> from an older stim holds the daemon claim with stimd does not stop it, check the pid, then run the stop command it prints.
  5. Update everything that talks to stim: Stim Desktop, the phone app, every service (stim service install with its existing options), and then every offload worker, as stim doctor prints it (see Removed (breaking)).
  6. Update project files and scripts. From the repository root, git grep -nE '@stim-cli/|stim-server|stim-ci|stim gc|gc\(|"stim": *"' finds most of what to change; also check the JavaScript API renames and subpath imports. Removed (breaking) says what each becomes.
  7. Check and build. Run stim doctor (only in a checkout whose project code you trust: its fingerprint checks evaluate project configuration) and stim guide agent until STATUS is clear. Expect one cold native build per fingerprint, since 2.0 uses new cache keys. A monorepo whose Node version is pinned only at the repository root (.nvmrc, .node-version, .tool-versions or volta.node) now fingerprints under that Node, the one Metro runs, and stim doctor reports the pin: expect one more cache miss there, and with a root pin older than Node 22.15 an app config that loads a script as a module gets no cache key, so the build runs uncached and stim doctor says to use Node 22.15 or later. Save manual edits in an untracked, generated Expo ios/ or android/ first: the first 2.0 run prebuilds it once. If a worktree warmed by 1.40 reports a lockfile newer than its npm install stamp, run npm install in the directory the warning names.

A Chrome started by a 1.x stim web keeps its old log writer, so stim logs shows each web line twice until that workspace is stopped and started again. Metro continues across the upgrade: the live 1.40 to 2.0 checks kept the original Metro process and verified the same bundle on macOS, Linux and Windows (results). stim guide agent's STATUS line, the leftover refusals and the matching stim doctor findings link to the For agents section, and the line clears once nothing is left. 6a1cac6324 642efe9705 b51353e4bd

New

  • One resident stimd per Stim home runs the long-lived work. stimd runs the dev server (Metro), the managed tunnel, device log streams, and the observers of owned Chrome and macOS apps, and runs the maintenance passes. The dev server supervisor and the per-workspace collectors are gone. A command that needs one of these services starts stimd whatever daemon.mode says; daemon.mode now governs only the automatic passes. Metro and the device log streams keep running across a stimd crash, update or restart, and the next stimd takes them over, with their output kept; a stimd of another build restarts on the new build once the work it serves ends, a command whose stimd goes away fails with STIM_DAEMON_UNAVAILABLE and the remedy to run it again, and every exit is recorded with its cause. A stimd that crashes repeatedly is held back, and stim status and stim doctor show that. stimd does not restart by itself (#5579, closed as not planned): stim doctor reports the abnormal exits of the last day, but on the plain CLI path nothing starts a new one until the next command that needs it. Each daemon_tick record times the work after the passes in tail, and a main-thread stall of 1 second or more writes a daemon_stall record naming the code that held the loop longest and, where Node reports it, the CPU the main thread used meanwhile. 21ead8914d ccb8c7a7b8 b787ca035a 7aa28e5a82 1d3ffc1a2d a30fceb8fd 21b559b85e 9a75e0ef60 69598bfbe8 4e7d5a72e6 44c57dd699 3e775ed4f8 25efcdb753 2756167b56 355c7a6bb8 f0e5288549 f527afa3ab bf3b34547c 20ef13072e 9337e8eb56 f48d7c7c17 18bb7adbea ec786b5626
  • stim status and stim doctor report a stimd problem and what to do. They name a stim-daemon from before 2.0 that holds the claim (with its pid and stop command), a stimd that holds the claim and does not answer a 3 second probe (daemon.unanswered in status --json, finding stimd-not-answering), a stimd that is only late with its ticks, a stimd that stays up for a child it could not verify, and a physical iPhone console that could not be recovered. Neither command stops or replaces a stimd that does not answer (#5774): they say did not answer within 3 s with the pid, and when it is also late with its ticks they print kill -9 <pid> (taskkill /PID <pid> /F on Windows) to run if it still does not answer after a few minutes. A stimd that is only slow under load can stall for 90 seconds, so do not stop one on a single probe. f144f7e636 12eba31e41 f4a936445c c0ce8978a4 e0aea91a17 bf3b34547c f885f8eb49
  • A sandboxed agent can reach stimd. When a detached stimd cannot take the home within 2 seconds, the command hosts one for its own lifetime; stim ci hosts one for the whole job. On Windows, once the launcher reports a started stimd, the command waits up to 30 seconds for it to take its claim before it hosts one. A sandbox that denies the stimd socket refuses with STIM_SANDBOX_BLOCKED, and stim doctor --fix writes the Claude Code sandbox allowance for the socket. New setting daemon.attachedExitWaitSeconds (default 120). 57992e3f39 779be183d0 d6b9bf3e33
  • A managed machine engine, stim engine status|use|install|update|rollback|uninstall. The engine store keeps verified builds under the Stim home, switches only after running builds drain, rolls back a build that crash-loops, and follows the latest or next channel. New machine setting engine.autoUpdate (default auto) decides whether stimd moves a managed engine by itself. An npm installation still runs directly; the engine is optional. The engine store trims its npm cache without leaving index records whose content it removed, and an install that meets a missing cache file clears the engine's .npm-cache and runs once more. stim remote update <machine> updates an approved worker to the newest compatible release on its channel, with --channel next for prereleases, or to exactly one published release with --to <version>. bef45350fd 21ead8914d ef4e2fa18f 9ffe05ca30 33ec7da39d 5a38f7c111
  • stim serve, stim pair, stim pairings, stim service, stim setup and stim ci are commands of the stim package. They replace the stim-server and stim-ci binaries. stim/ci exports the CI API. stim serve loads the Tailscale transport only when something needs the tailnet. stim ci --version and -V print the CI package version. 26c6578878 dbab729703 6f36df6b0e ad43aa02fa
  • Exact apps build and run with stim ios. An app with exact.mjs next to app.json builds through its own ./exact.mjs ios --no-install on the workspace's owned simulator, with no Metro and no Stim artifact cache. Stim offloads Exact iOS builds to paired build Macs (for an app that declares native modules the worker creates a simulator of its own for the build), runs apps without native modules on hosted simulators, builds apps without native modules in build-only runs, reports their bundle id and statistics, and counts and caps their Cargo target/. stim doctor checks Bun, the Rust target and the exact2 checkout here and on build Macs. stim revive relaunches an Exact app without Metro. stim logs --errors shows Rust panics from an app's stderr. 0604ccd858 4aacfa066d 6040d90831 f065c62e24 84277cac0c 6901c80ebd 329cd1c91a 93b408ba6f f2937eb65a 7239863eed 4431a47f55 bce3045513 f1ffe3830c 84b6915fab 7a10cbcf5c 0411eff09f 2bfaf75ed3
  • Stim computes the native build-cache fingerprint itself. It no longer calls @expo/fingerprint. A project with cache.fingerprintInputs can add app-relative files and directories to it. The fingerprint of an Expo CNG app takes about 325 ms on a full miss, against about 790 ms. A worktree that ran pod install shares the iOS fingerprint with its source checkout. See Migration notes for the cold build. 779be183d0 f9008b5b6e f4d089b5c0 aaecadc3ce cb4615559d b8a54dcdc0 a1a41a15ed 136c316e94 44569a881e 04b10dd713
  • stim gc runs automatic maintenance at a pressure level and deletes. --dry-run reports, and --pressure normal|high|critical picks the level. It also covers checkouts no stim command ran in: those in the folders named by the new machine setting maintenance.discoverRoots, and, only with the new machine setting maintenance.autoDiscover on (off by default), linked worktrees of known repositories, the folders that hold registered checkouts and what a daemon scan of the home folder finds. While it is off, stim doctor suggests turning it on, or adding the folders to maintenance.discoverRoots, once the checkouts it would reach hold at least 10 GiB of build output. A source (main) checkout's node_modules and Pods are deleted after idle.sourceDormantDays (default 7, 0 never), and maintenance.cargoTargetMaxGb (default 25) caps Cargo target/ folders. Before a local native compile, Stim estimates the bytes the build will write and runs the pressure ladder once if free disk is short. The pressure ladder itself deletes no node_modules, Pods or worktrees and only reports those it would remove, but the age sweep and the removal of finished worktrees run at every level, so preview with stim gc --dry-run. When a volume stays short at high or critical, plain stim gc names the largest disk users Stim does not manage. The git calls Stim makes through its git wrapper pass -c core.fsmonitor=false, and the read-only ones also -c core.hooksPath=/dev/null, so a discovered checkout's .git/config cannot make them run its fsmonitor command or hooks; hooks still run for the commands that change a checkout, such as the post-checkout hook of stim worktree add, and other repository config, such as a filter.<driver>.clean command, still applies. The gc reference and Checkouts Stim never ran in have the full rules. Xcode's own DerivedData/CompilationCache.noindex is reported, not emptied as a Stim cache: only at critical, and only while no Xcode build, Xcode app or Stim build runs, does Stim delete it as it deletes other tools' caches, and Stim Desktop's Storage page no longer offers to empty it. 105fea04d3 16a2751efc 718b197b4a b71322b54e d565bb2342 978f1bc82d 626efc0545 fa6f21cd00 6dedd71185 2511651a9a 452d8804e4 6f8e195b06 10829a17b7 4bdba83b46 7f880248fc 31dbd814e1 ecbc48e415 4d64fd2cad 0cdfa1ad03 11ec7550db 4676005c15 4ff38b07f8 e66780aadf e9decf898b e26e7aaf00 fca14f66fe f397fe84e4 d006bf1a1c 298048a948 cd50462639 439a13f124 67d617f26b
  • Cleanup runs on stimd's cleanup queue. An acting stim gc and the API's collectGarbage() send one request to this home's stimd, starting one whatever daemon.mode says, and join a pass already under way when its level covers the request; a stimd lost during the pass fails the request with the remedy to run it again. Stim Desktop's single-item deletion and the free-space check before a native build queue there too. Passes work from saved per-checkout observations, and on macOS a signed FSEvents helper that ships with stim tracks which checkouts changed since; stimd applies the events of one flush in one update and one checkpoint write. stim status --json and Stim Desktop's maintenance section show how much the saved observations cover, stim doctor reports cleanup trash left behind, and a final STIM_LOW_DISK refusal from start, ios or android is recorded in STIM_HOME/logs/low-disk.ndjson. 2040fdc286 cf8e534a45 b331b66295 41f6445b6d 043c05ad7e 0a67daff72 87c96f8116 8e30932a42 b724200556 1f40dbf2ed 466dc0aa8c
  • Maintenance reduces worktrees before the main checkout, and keeps work. Of registered worktrees it removes only those Stim has used, and it keeps worktrees pinned by maintenance.keep, never deletes a dependency folder with files edited after the install, keeps hand edits to ios/Podfile.lock and project.pbxproj, and logs why a sweep keeps a worktree. 61d7198615 fe223c299f 8360291c7d 05de4ada00 22c96fa5e0 136e15c587 1afe7bfbbf 104626ccab
  • stim worktree add [--refresh] [-b <branch>] <path> [<commit-ish>] creates a linked worktree and warms it in one command. It takes the path, -b and commit of git worktree add. On macOS APFS and Linux btrfs or XFS, with the new path on the source checkout's volume, it clones the source checkout, tracked and ignored files together, and git rewrites only the tracked files that differ from the commit. This saves disk, not time: on a checkout with 3.9 GB of node_modules, a worktree 50 commits behind took 9 MB of private disk instead of 113 MB. It takes about 1.4 seconds longer than git worktree add followed by stim worktree warm on react-native and about 2.5 seconds longer on expo, because git rehashes every tracked file after the clone. The tracked files match what git worktree add writes, in bytes, permission bits, names and extended attributes; a cloned file keeps the source's modification time. Uncommitted edits, staged changes and untracked files of the source do not come along, and submodule folders start empty. Elsewhere, on Windows, when the clone fails, or when the repository's git configuration could make a checkout write other bytes (such as a core.attributesFile that reaches into the new worktree, also through a link), git creates the worktree and the warm copies into it, and the command prints which way it took and why. An interrupt during the checkout or the clone prints that it is removing the new worktree, removes it and the branch that call created, and keeps a branch that existed before; cloned ignored folders such as node_modules go to the trash and are deleted in the background. A branch the command created, with -b or the one git names after the path, is Stim's: stim worktree remove and the sweep of finished worktrees delete it when it has no unique commits. --refresh first fast-forwards the source checkout and reinstalls dependencies as stim worktree warm --refresh does, refuses with the same errors before creating the worktree, and with no commit-ish starts the worktree at the refreshed source HEAD. The API gains addWorktree({ path, branch, commitish }). Windows cloning is tracked in #6554. #6542 #6551 #6596 d7f419a4ab 9b603eb0f5 212c29e91a 96bc11b344
  • Clones come from the bundled cow-clone binary, on more file systems. stim worktree warm and stim worktree add clone with the prebuilt binary of cow-clone 0.1.1, a new dependency of stim, instead of the helper 1.40 compiled with the Xcode Command Line Tools on first use. Besides APFS, the warm now clones on Linux btrfs and XFS and on Windows ReFS and Dev Drive; other file systems copy as before. #6548 d5cebb08a2
  • stim worktree list [--all] [--json] lists linked worktrees with their real size and cleanup's verdict. Each line shows the path, branch, idle days, real and apparent size, and the state in gc's words (kept: <reason> or removed by cleanup: <reason>), largest first, with a summary of what cleanup removes by itself and what kept worktrees hold. Real size is what deleting the worktree frees, so a worktree warmed from the main checkout, which shares most of its node_modules blocks with it, can be far smaller than its apparent size. The default lists the current repository with the worktree check of stim gc --dry-run; --all lists every repository from the verdicts automatic maintenance saved. It prints the sizes saved by earlier walks, with the age of an old one, and starts a background process that measures the missing and stale ones, one walk at a time under the machine-wide walk claim; a worktree with no saved size shows measuring, and --json marks each worktree being measured measuring: true. The command deletes nothing and starts no stimd. stim doctor in a git repository adds a linked-worktrees note with the same summary, read from saved verdicts only. f42c02e309 e5506ea31d ac861e1564 d0a8dd7400
  • Sizes come from the bundled real-size binary, and size walks repeat less. Stim measures what deleting a folder would free with the prebuilt binary of real-size 0.3.0, a new dependency of stim, instead of the helper 1.40 compiled with the Xcode Command Line Tools on first use. Blocks shared with a clone or a hard link do not count, on APFS and on Linux ext2/3/4, tmpfs, btrfs and XFS; 1.40 measured private bytes only on macOS. macOS numbers are unchanged and no longer need the Command Line Tools. A tree with an entry the walk cannot read, or with a volume inside it that cannot report private sizes, reports both sizes as a lower bound: stim worktree list and stim doctor print "at least" sizes and totals, and the JSON marks them with partial on a worktree and its kept groups and realPartial, removePartial and keptPartial on the summary. Windows has no private size. A node_modules or ios/Pods size whose install signature is unchanged is reused for 6 hours, then for up to a day while the same path in every checkout of the repository is unchanged. The daemon trims a cache, a workspace's outputs or a Cargo target/ over its cap only from sizes measured in the same pass (the hourly size pass, or the Cargo measure while host load defers it), never from a size an earlier pass saved, so a cache that grows past its cap can stay there until the next measuring pass. 67933f5f9e 066590e6e5 4b6a0fddde 86d9e1199f 6b0c77bb6c 845eea7a64 38853c0a71 dd86dffaa4 4036c4d5ec 1b5ce1d9c9 059d558041 742a50e6a9
  • Owned iOS simulators run slim by default. Slimming is built in, so no separate SimSlim install is needed (the new default is under Removed (breaking)). The device log says when an app asks a slim simulator for a service that slimming turned off. A parked or stopped simulator stays booted for pool.bootedGraceMinutes (default 15, 0 shuts it down at once) when memory permits and a device slot is free, and stim stop can leave it booted for that time. The app Stim installs on owned simulators allows Paste from Other Apps. 1d1bb1bf2c 53b2586333 1b76c6ae27 094aac1966 ec890db0a5 910bc6b2d5
  • Android ANR kills are reported as ANRs. When ActivityManager kills the launched app for not responding, stim android says so, with the ANR reason, the host load for an emulator (not on Windows) and a remedy, instead of reporting a crash, and stim logs --errors lists the kill as an anr_kill record. This covers devices on this machine only: a device hosted on another Mac or an EAS remote device gets no ANR report. c0cd62cf14 98d8083554 6e143af440
  • Stim's churn folders end in .noindex, so macOS Spotlight skips them. They are metro-cache.noindex, compilation-cache.noindex and ccache.noindex in the Stim home, and agent-device.noindex in each workspace, on every platform. An upgraded home keeps its old folders until stimd renames each one in place at the start of a maintenance pass with daemon.mode on, once nothing holds it. Nothing is copied, merged or deleted, and a link at compilation-cache (a junction on Windows) keeps builds outside Stim that share that cache warm. A path set with caches.metroCache, STIM_METRO_CACHE or server.workerRoot never moves. 9cc203f737
  • android.avdConfig and android.avdConfigFile accept fastboot.forceColdBoot (yes or no), for a project whose tests fail after a Quick Boot snapshot. It applies to AVDs Stim creates after the change, and AVDs with it form their own pool. The other fastboot.* keys stay refused. 5d80a88705
  • stim ports reverse <label|port> makes a server on this machine reachable from the workspace's devices, like adb reverse, and stim ports lists the reversed ports. Reverse ports also reach hosted simulators and emulators. edecc4d6cc 16e4513b48
  • stim plugin list and stim plugin test <plugin>, with a clone-safe contract kit for transport and agent-driver plugins, plugin-reference settings, and a public API gate. stim exports STIM_API_VERSION. The agent-device driver reaches claims and process identity through host members. stim doctor and stim settings set cache.provider report a cache provider that does not resolve or declares another integer. cc560a119a ad43aa02fa 47e9dd2805 01cd0099fc 18d8cdf7fe efb8679b5f db8d60bf30
  • Offloaded builds are easier to follow and cancel. A worker records offloaded build jobs and says when a build stops printing, a cancelled or timed-out build releases its slot, a worker creates the simulator it builds for when the runtime has none, and a Node version difference between client and worker no longer refuses a build. A worker builds Android release variants for a client. A client picks a worker with an exact artifact first, then one that already holds caches for the project, and records why in lastBuild.offloadReason. When a client removes a worktree, it asks each worker that built it to drop that checkout's build area, and a worker removes the areas of a client whose build access was revoked. Stim Desktop on the worker approves build and hosting requests. An app or APK a worker built is a build cache hit on the client only while that worker stays paired under the same key: after stim remote remove or a key change its entries miss and the next build replaces them, and entries stored by earlier versions carry no record and stay hits. An iOS app built under the fingerprint the worker computed after its own pod install (a client without CocoaPods) is stored under a key that also names the worker and the project, so no other project and no local build installs it. A worker restart still cancels its offloaded builds (#5588, closed as not planned): the client restarts the build from the start, up to twice, then reports offload-failed. An engine update waits for running builds to drain; a crash or a forced restart does not. Retry the build after the worker is back. 391a15745c 7431ae4e32 feb68bdd3f bd3060a0d7 05996834be c9934c2e78 f5414cbc9e 88e3a1c8d6 e7decf3fbc bc415c5c81 4fe0702ce6 4735a61833 3d1a20b050 fff59ed21a 192d5ae859 bd18559306 2e2d010338 8c0e04d0b6 884ced227f
  • A worker can approve a test capability, and test commands queue. stim setup --test records a separate approval for a machine that may run commands on the worker. New machine setting concurrency.maxTests (default derived from the CPU count) and a test wait queue. Running tests on a worker is not available yet. (stim, server) 0ee596e94d 78bf0c4e2b
  • stim test runs a project's tests on this machine under a test slot. Runs past concurrency.maxTests wait in arrival order. It sizes Jest's, Vitest's or node --test's worker count to the machine unless the new machine setting concurrency.testWorkers (STIM_TEST_WORKERS, default 0, derived) fixes it, and stim test -- <command> runs any command under the slot. This version runs the js kind; stim test --list shows what a project has. Tests do not run on a worker yet. (stim) 9df96bdd87 040170e7cb 7726205dfb 538252beea
  • Workspace services. A project declares its databases, API servers and workers once, in the services setting of its committed .stim.json, and each workspace runs its own copy on its own named ports. stim services start starts them, dependencies first, stim services lists them, stim services env prints their environment as shell exports, and stim services stop stops them. Stim stops running services once the workspace has been idle for idle.minutes, stim revive starts again what it stopped, and stim worktree remove tears them down first and keeps the worktree if a teardown fails. While a service runs, its ports are reversed to the workspace's devices, and stim test passes their environment to the test command. stim start does not start services. Run stim guide services for the fields and worked examples. 2e02bc41c0 aaf6342fbb 8642939e4d b75576105b 90190a16bd 9e32f9c758 a6e4e5e6dc 77f9171b6d
  • Hosted sessions and web shares survive a stim-server restart. A restarted stim-server resumes the hosted sessions it left running and starts the saved live web shares again, stim agent-device opens the app again when a host restart lost the session, a web share waits for its device and resumes, and stim share --reuse starts a stopped share again with its saved link and password. stim share --slug <name> chooses a readable link, and stim share stop --forget removes a saved share. 7c2bfd6847 a5547181fe ee0ca74980 28cbf63ef8 e69c113cff f82458a194 07e69c8545 333decdf2f 4eda04b625
  • Several clients can control one device, and the viewers gained input. Web share viewers and apps send every key and modifier chord, pinch and two-finger gestures, and clipboard text, and can switch the iOS simulator's on-screen keyboard; the apps also read the device clipboard, and a share link only writes it (see Removed (breaking)). The share viewer reconnects by itself, draws an optional two-frame queue, and shows readable page titles. 264a2b90e5 2250ca0c85 c2207a62b9 9e232cdd44 a50c0ca0e0 644f0a4ba5 af235bc4d0 d79548baf7 b03572a724 1093464101 5eb434a7cc a9e41da76a cc0371d9ac 5f58c68465 4a2526fd9e
  • Hosted simulators and emulators refuse known harmful commands instead of allowing a fixed list. Any agent-device command and flag passes on a hosted iOS simulator or Android emulator except a refused list (among them app install and uninstall, boot and shutdown, logs, host paths, launch inputs and device or OS selection), each refused with its reason, so a command or flag a newer agent-device adds works without a Stim update. Both machines need agent-device 0.21.30 or later. 89b871c626
  • Opt-in helper that restarts runaway Apple background services (macOS). stim service install --helper installs Stim Host's root helper, which stays off until you install it and approve it in System Settings > General > Login Items & Extensions; Stim Desktop's preferences have a toggle for it. It samples PerfPowerServices, mds_stores, mdworker_shared, photoanalysisd and mediaanalysisd every minute, and sends SIGTERM to one that stays over 150% CPU or 2 GB of resident memory for 10 minutes, at most once per hour per service, so launchd restarts it. stim service uninstall --helper removes it, and stim service status shows its state. Stim itself never signals these services. e6adfca77b 58c04a00e6 cd81882a6d 8be8fd2698
  • Doctor reports more. Findings cover the stim-server process, service and version, Tailscale routes, Funnel, share exposure and the service path, socket permission, macOS privacy and linger problems, unresolved device consoles, and Swift cache probe failures. 6187688d3d c22016a71b 0cad5dae47 c0ce8978a4 69e65e7746
  • The agent guides route agents to the app workflow. Successful owned simulator and emulator launches print a copyable stim agent-device open command. Refusals print the action their stim guide errors section gave, and the errors guide keeps only the longer procedures. Rendered guide and skill sizes have a byte budget. An on-demand eval runner measures agents against a scripted stim. 315103eeb0 602d072e4d 9f6d98e3ad ba6f7e64ec 97acb485e6 dd1ee0d37d e2c8b08df5 28c0dfca67 a8f1b93590
  • Re.Pack apps run through Rock or the React Native CLI. A Rock config naming @rock-js/plugin-repack, or Re.Pack commands in react-native.config.js, select a Re.Pack mode instead of expo start. A config naming Re.Pack without its packages refuses with STIM_REPACK_BIN. 82fb26d2dc d65dd13188
  • Within 2.x, --json payloads, logs --json records and API results only gain fields and enum values. stim guide api and the commands page name the parts of status --json and the file paths that carry no compatibility, and stim guide errors ci and stim guide errors server-actions list the codes of stim ci and of the stim-server actions for Desktop and the phone. efb8679b5f
  • Stim Desktop and the phone app. Desktop gets a Connections tab for pairing, remote machines and share links, shows paired machines' workspaces and builds in Active Workspaces, Overview and Builds, has a light and dark appearance toggle, and runs actions on a stim-server through the Stim home's local socket. The phone app gets full-screen mode in the device viewer, Control that resumes after a dropped connection, pinch and two-finger gestures, manual pairing that accepts a pasted stim pair line, a Rename This Phone button, and a second app, Stim Next, fed from main. (Stim Desktop, phone app) 394f032ba0 b70dd0b22c 4d349e6c4d c5efa9704a 738b830498 ab34a3d788 23efe2ea68 a2e53a3318 3a7b666214 1ee0614a47 b17b18acca 77bd1146f6 4564fce380 9fd84737ca f8a2771bd8 a4b6dcf942 9a8e3c8f95 f855940e14 d5ecda5c69 d844c89926 8a4f098f3d

Fixes

  • Native build caching. Two installed versions of one package no longer disable the cache, a warmed worktree of any package manager caches its builds, an aborted fingerprint check leaves no lock, a fingerprint evaluator that times out or is killed is reported and releases its claims, a prebuild record from an earlier Stim regenerates the native directory once, and an install mismatch shows how to restore caching. The fingerprint takes the Node pin from the repository root when the app directory has none, the Node Metro already used. Fingerprinting waits up to 10 seconds for the engine store lock instead of refusing at once, and a busy engine store refusal says to retry in a few seconds. A fingerprint of a workspace whose native-run lock another Stim command holds, such as stim ios or stim android, refuses at once with STIM_LOCK_REFUSED naming that command, instead of timing out: stim doctor turns it into a note, and --plan keeps STIM_NO_FINGERPRINT with that message. Doctor also notes a source checkout held by a run instead of suggesting a prebuild repair. On Linux and Windows, stim doctor no longer reports autolinking:rn drift for a clean clone; each machine rebuilds its local fingerprint index once after the upgrade. f129c49f02 9a8c270c4b 447c3dc9a8 b7618bb87c 573c2a4a90 2af6b85a89 fd13f33a0b 808ee88104 5932bdb102 4784c2fa8b 8e2c64939e 6c20d6d7c5 446d3e224d cf40bd2adc
  • iOS on a host without macOS. On Linux and Windows, this machine is never a candidate for an iOS build or simulator. auto and remote builds go to an enabled paired Mac. With none, the run refuses with STIM_BUILD_FAILED and names stim remote add <mac> and --remote-build <mac>; that refusal comes after the cache lookup, so a cache hit still installs. A simulator on this machine or --device refuses with STIM_NO_DEVICE, and --remote-build local with STIM_BUILD_FAILED, both before the dev server starts. A paired Mac that declines, or whose build fails, ends the run with STIM_OFFLOAD_REFUSED and the Mac's reason instead of a local compile. --plan reports the same decision in refusal. --eas-profile is exempt from the build refusal. 133d46c78a
  • Devices. Android ledger entries clear after verified creation failures, adb is found in the Android SDK on Windows servers, Gradle overlaps a fresh emulator boot, simctl boot exit 22 is checked and retried once, the letter a reaches Android emulators as its evdev code, a waiting boot re-reads the device caps each round, a waiting build re-reads concurrency.maxBuilds, installed Release and native Android apps revive, macOS startup crashes report at once, a simulator or emulator that the idle stage shut down and a tool outside Stim boots again is kept for one idle window (not under memory or disk pressure), and after a run on a phone the workspace's simulator or emulator launch record is cleared, so stim revive names the phone command. gc rechecks references under the device-name lock before it deletes an orphaned iOS simulator. A recorded EAS simulator session past its expiry (its ready time plus the session cap plus 5 minutes) is no longer listed by stim status, and stim gc and stim stop clear its record without eas-cli; a session recorded before 2.0 has no expiry and stays listed. A workspace driven through stim agent-device with agent-device 0.21.42 is released by the idle stage and the waiting-run reclaim: Stim reads that version's start times, and a device claim whose start time it cannot verify counts as live only while its session's last command is recent. 9389134280 3d2241a29b 2fe0deaa40 910bc6b2d5 43760f3eac 58d0cae6c5 4b9c0d01c5 df9bfb2000 34497cd796 e304aeacb2 8bbc78ca6d 3b55d576ae 83d88980eb f934e449b4 8dc5dc9554 ce7f108707
  • Hosted devices. Hosted agent control works with agent-device 0.21.42, which refuses a daemon state directory that is or holds a symbolic link: each hosted iOS and Android launch gets its own real state directory outside the Stim home, and the next launch retires the previous one, so a failed launch no longer blocks the device until stimd restarts. Retiring a launch, and reclaiming a workspace with stim worktree remove or stim gc, wait out agent-device's forced daemon stop (75 s after SIGTERM). stim gc and automatic maintenance remove a launch directory idle 24 hours whose daemon agent-device reports stopped, and never stop a daemon. A launch links its sessions folder even when the recordings folder cannot be created, and a device refused because the worker could not list its processes reports the exit code, signal, timeout or spawn error. A hosting Mac retries the stop of a hosted session left in an unknown state from its periodic sweep, up to 5 times; then it keeps the device, writes a notice and releases the session claim, and a later stim stop from the client settles it. A session whose worker process group outlived its cancel deadline proceeds once that group exits. 70884e5922 e2fff3d64d 8db20ca45a eb6d40148b c191ca825f 5cf5771af1 0fa65078ba 929499b641 b83d18f6de
  • Commands and output. stim start --json interrupted with SIGTERM prints its STIM_CANCELLED payload, and a cancelled start whose dev server already answers says it was left running and how to stop it. stim start waits for its project and workspace locks no longer than --wait allows and reports a lock still held as STIM_LOCK_TIMEOUT (it was STIM_METRO_TIMEOUT). A --json run that throws a coded error before printing anything prints one {code, message, remedy} payload, and a --json after the -- terminator no longer switches Stim to JSON output. A command run from a working directory that no longer exists says so instead of reporting a crash. An iOS or Android launch that ends unverified because the device logs were unavailable prints a next step. A failed expo prebuild prints a remedy (fix what the output reports, with stim logs --source build for the transcript), and a start refused because its managed tunnel died suggests another metro.tunnel provider or metro.publicUrl. stim stats omits the saved-time estimate when it rounds to zero. With debug.logs on, stim-server writes each request only to logs/debug/server.ndjson instead of also to the service log, which nothing rotates, and failed requests reach the service log at most once a minute per client, method, code and reason. stim service uninstall removes only the root Tailscale Serve handler of Stim's route. When stim stop interrupts the automatic revive of stim agent-device, it prints a STIM_CANCELLED refusal and exits 130. stim status --json always prints the documented payload, reading the state itself until stimd has a snapshot, and shows the report mode that a leftover maintenance.mode holds stimd at. stim engine use refuses a target that is not a published 2.x version or a built stim package, stim worktree list --json, stim ports --json and stim macos --json print a coded refusal outside a project, and a stimd of another build with the same version is named by its build id. 71cfdc690a 640908c8d0 45800dc19d 34a7925105 59dc49ca6e 85b5a9b0b9 50652b892b 04525a3b08 61e6234a90 1f98b4f495 09058282e6 7629b4f058 ccdc0dfeb1 3664ff7413 459b31f269 38a944587d f5c9bb0d5a c7940322f0 fc57c5e449 5acbcb4165
  • Worktrees. The stim worktree remove refusal leads with committing or pushing the work, lists restore commands only for files whose changes are all unstaged, prints the commit and a git branch command for a detached HEAD with unique commits, and, when it keeps Stim state without naming a cause, says to run it again and then stim doctor. Run right after stim stop, it waits up to 60 seconds for a background pass (a daemon stage, gc, fingerprint evaluation or doctor --fix) that holds the workspace's native-run lock, printing a lock wait line, and a refusal names the holder; a stim ios, android, stop or share run still makes it refuse at once. A successful removal names on stderr up to five git-ignored files that differ from the source checkout. Removing a deleted folder recorded under a path with a symbolic link or another spelling (such as /var and /private/var) reclaims its record instead of failing with No such worktree. A worktree's activity time comes from its last reflog entry, so a git operation that only rewrites logs/HEAD no longer makes it look active. stim worktree warm skips the CocoaPods step on Linux and Windows and no longer asks for an app directory when run from a macOS app. stim worktree warm --refresh and the unpushed-commit check read a branch by its full ref, so a tag with the same name no longer misleads them. Neither the STIM_MAIN_DIRTY remedy nor stim doctor suggests git stash. Every command stim worktree remove prints is quoted for the shell (POSIX single quotes, and quoting that cmd.exe and PowerShell read on Windows), its restore commands match file names literally and print non-ASCII names as they are on disk, and a list of more than five paths names the rest on a separate line. On Windows, stim worktree remove run from inside the worktree refuses up front and prints a PowerShell command that runs it from outside, and claim removal remedies print Remove-Item. A fingerprint evaluation that is killed on Windows, for example with the OpenSSH session that started it, still leaves its native-run lock claim behind (#6454): stim stop and stim worktree remove then refuse and print a Remove-Item command for the claim. Check that the pid it names is gone, then run that command. stim worktree warm carries only the ignored entries the new worktree's branch also ignores, and keeps pnpm links on Windows. It can still carry a workspace package's ignored build output, such as dist, that is older than the new branch's sources (#5853): rebuild the workspace packages in a new worktree when their sources differ from the source checkout. For a worktree Stim does not manage, stim worktree list and stim gc say that stim worktree warm makes it managed only when it finds an app there. 152aaeb4e2 ab6c696095 6f98cfd830 ec12f66d24 d006e4133d 637ce8cf62 a0e7a82afb 81cf792a08 f69bf8e5a7 89cf6ff1c8 11dbe9359f b8de540438 618b8e1abc 785118dd53 cf186f5455 95c77bfbda 98f3c27f47 0cc91cbe4d db71aa252d 50ec9959e1 73bc7e6c45
  • Offload and workers. A worker cleans up inside its owned paths, evicts repository areas of approved clients, keeps its hourly dependency check across restarts, leaves iOS signing files out of the sync, and finds a build again after its stim-server restarted. Windows workers resolve PowerShell and system tools without PATH. A build refusal from a named build machine says why (capacity, draining, access or an attached server), and its remedy matches: run the same command again, ask for access with stim remote add <machine>, or follow the worker's message. A machine that is not in remote.machines names stim remote add. An --plan refused because of a remote names whether --remote or the setting chose it and says to plan with --remote local. The API's iOS build offload honors ios.runtime. e7decf3fbc 88e3a1c8d6 715d8588ab 44569a881e bc415c5c81 f4e4f8691b a0f688db1f 127213f632 7f822024d7 828bc92544 72f7f785cf 7259aeacac 69f68ba865 0bc2735e65 4fd9110e12 4c9afa73d6 5d1579eeea 9ea00bb923 bdaffc3d28 6c5ef3bfcd a6a90b6727 1184684e66 641a45005f c51e45a02b 6b1f8b35d6 140e350c3a b8118f6e6d
  • Cleanup and the daemon. A dead stimd no longer blocks a start through its claim, a stimd whose run directory is removed exits, tests no longer leave stimd running, launchd jobs of deleted homes are removed, the daemon home scan no longer reads ~/Documents, cache eviction and stim gc no longer follow a symbolic link at an intermediate level of a cache, and a workspace archive that fails or is refused moves the logs, agent-device sessions and recording segments it staged back into the workspace instead of deleting them. stim gc --dry-run selects cache trim entries the way the acting run does, pressure lines name a volume by its mount point, and the Cargo cap is a whole number of bytes. The idle stage keeps the build outputs of a worktree locked with git worktree lock, or one git cannot say is unlocked; its dev server and devices still stop. f527afa3ab 9337e8eb56 10436868d2 6f8e195b06 8f1c51e372 18383530f3 e9d66aa7f9 5be12ced46 4b99fbb5cc 286452f9b8 7afd330b24 138178096a 3f3d6bad6f 822a9606e2 2aef5e84b4 6de44ca5e7 8295dd6ab4 675a0b1b82 3bc5593d4b ec327e16c9 4fc7231160 d6642d8ad7 6ed3dd6626 0098d9798a 912211d423
  • Commands outside a project. ios, android, start, web, macos and revive refuse outside a project before they start a daemon, and gc no longer creates an Expo app config. fd7b5731f2 a2f2cc12d8 c351fd5a92 1afe7bfbbf
  • EAS Simulator sessions (--remote eas). Each run names its session uniquely and prints the name. An interrupt, a SIGTERM or a timeout while the session is being created stops the session it started; an interrupted run reports STIM_CANCELLED, and a cleanup that fails prints the by-hand eas simulator:stop command. A logged-out eas-cli is refused before any work with STIM_REMOTE_EAS_UNAVAILABLE, the Metro probe of a fresh managed tunnel retries, and stim agent-device drives the recorded session; the iOS and Android results gain an agent field with the command to use. A session can still run until its duration cap when stim is killed hard (a second interrupt or SIGKILL) while it creates the session (#6493): stim gc lists it as unclaimed, and eas simulator:list --name <name> and eas simulator:stop --id <id> stop it, with the name from the progress line. 8a04b43acc 7d1bf743e3 a216844f2f 9b2f0f3beb ddfa428d2d fdb5617686
  • Web shares and sessions. A hosted macOS app's server ends with the app, stop closes the hosted agent-device session by its workspace name and accepts an already closed one, hosted recordings stay off the Stim home, touch down and up stay inside the input rate limit, and shares restore in full servers. cb058ee11e d7d37c6cde 7825ec4a50 78f2249a36 4eda04b625 c9b510521d 9234378846 f10dcb7f93 171142dbde cb5032a3dc ee003fe1c4 6b32fe9aad b27ba1d540 7fe909c890 3f60208e5f bb8cff6daa cd88a40378 3d05c02136 a4ea150718 61a395de9c
  • Windows. stim start sees and stim stop stops the bare Metro that stimd runs, and the Node running Windows Metro is reported. stimd, the Metro it runs, owned processes such as the web Chrome, and the Android emulator outlive the OpenSSH session that started them, and so do stim services processes; a command on a loaded machine waits up to 30 seconds for the stimd it started before it hosts one itself. The adb server still ends with the session, and the adb client starts it again on its next call. f48d7c7c17 7f822024d7 77816ee09c d6b9bf3e33
  • Logs. stim logs --errors ignores Swift source echoes in Xcode diagnostics, build steps that fail fast keep their last output, and hosted agent commands appear in workspace logs. 822c75db29 828bc92544 e17a470667
  • Web share viewer. Layout, selection, touch and clipboard fixes. 9171545995 a67a8348ea 5de987adc5 f4b0c5565e 9c0893aa0d 384122866d 3c9eedb1d4 5e4071fcff
  • Stim Desktop and the phone app. Desktop refuses to start a second stim-server onto a held port, says why it cannot run actions on a stim-server it did not start, offers Stop (not Start Dev Server) for apps without Metro, fixes sidebar and toolbar layout and View Options submenus, keeps its net thread listener while offloaded jobs, hosted sessions or workspace actions run and applies a changed option such as Allow connections once they end, turns a local simulator tile with the simulator for portrait-only apps, shows a viewed machine's pairing refusal and remedy on its Details page, shows the engine version in the sidebar footer, and corrects the cleanup, pairing and Builds copy. The phone app hides stale activity for missing workspaces, offers no Reload for apps without a dev server, shows a changed remote machine key as Different machine, and gives up on a connect attempt after 10 seconds, then names the unreachable machine with a Retry button. d89a2acc09 6ae11523c2 73ea31008a 3c299667a7 7045d13b50 a570b35ed2 c62c943450 349db0cb65 ab565080f5 0b2e745caf 600a2de89a d007caeabc 79e21f26e6 26ec12afb3 ac69fd8a7b 7f59679d7c 4d98850f7a 8be8fd2698 29b809e983 9972b38484
  • stim worktree remove and the automatic sweep no longer discard hand edits. A hand edit to a registered worktree's ios/Podfile.lock or project.pbxproj is kept: worktree remove refuses a changed project.pbxproj, and a tracked file marked assume-unchanged, or skip-worktree with the file on disk, naming the file and the git update-index command that shows the edit, unless you pass --force. A Podfile.lock change counts as pod install churn only when ios/Pods/Manifest.lock holds the same text or, when gc deleted Pods, the lock hash gc recorded matches. Commit intentional dependency changes, such as a pod update, before cleanup, because they leave the same evidence and are restored as churn. 05de4ada00
  • Performance. The daemon's maintenance and home passes run without synchronous child processes and off its event loop, status reads the shared device listing when it is fresh, the CLI hot path loads ws, Noise, the cache provider loader, offload and the hosted driver only when needed, web share frames draw once per display refresh, and the hourly dormant-dependency step shares git answers, resolves each process working directory once per process listing, lists running processes once per half of the step, not once per tree, for the checks before a deletion's claim, and skips the idle evidence of registered linked worktrees in its source-checkout half. b2360bedd6 27d708ea75 c2b2a9b4b5 00ed4fc976 41c6a9c641 735c5d0e98 318811ac16 0cb492aa25 8c83ab3cd2 304d1b04b0 4b91e673b9 35e9505a93 cedeb868ff f26455a563 7442915e07 a47f3853e7 3dd10a2a5c 7b63466928

Docs

  • The upgrade guide and the platform overview, with every decision document in llp/ linked. The decision documents and their reference checker are new. 1c9f3f7fe4 4a4b5631dd ea8c60d1b0 e0c65343ab b9479de0c6 7c1db40e34
  • The landing page is redesigned. The README and the website tagline describe Stim as orchestrating fast builds and devices for coding agents, and the CLI README, the npm description and the first line of stim --help as running React Native, Expo and native apps for coding agents. b9165d54f4
  • The agent guides open the launch workflows with stim worktree warm, tell agents to remove the worktrees they create, and route log queries and other topics to short sections measured by the agent evals. stim guide services has worked examples, including a curl health check as a ready command, and stim guide settings explains concurrency.testWorkers. 31f35a132e c87d4e365a 405242de71 c14cb0024f 5e4cb5dea8 a8c57a8471
  • The website is rewritten for people who hand the work to a coding agent. Each page leads with the outcome and the prompt to paste, and the commands page is a map of every command; agents get the detail from stim guide <topic> and --help. The agent-skills, build-optimizations, cache-packages and plugins pages are merged into other pages. 84cf3d57eb 28910e92f0 6e143af440
  • How cleanup works is one page with the idle, dormant and pressure phases, what each deletes, the settings that control them, and workspace discovery. The cleanup guides match the ladder code. 838abf0cd0 c50d23de2b
  • The Security model on the remote machines page says what a build worker, a shared worker and a viewer can do to the other side: a build worker can run code on this Mac through the iOS simulator or macOS app it returns, an Android release offload signs the APK the worker built, clients that share a build worker must trust each other, device-host runs hosted macOS apps unsandboxed as the host user, and a paired viewer with control can read the device clipboard, which a share link cannot. 1f33e31a0b f399f7142d
  • The skill names its source repository and the npm provenance of its releases. 999331d3ef