Repository navigation
v2.0.0
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
stimdper Stim home runs Metro, tunnels, device logs and maintenance. - One package.
stim serve,pair,pairings,service,setupandcireplace thestim-serverandstim-cibinaries. - Cleanup that acts.
stim gcdeletes at the measured disk pressure level, andstim worktree listshows what cleanup will do with each worktree. stim worktree addcreates 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 iosruns Exact apps. - Project tooling.
stim servicesruns per-worktree databases and API servers, andstim testruns tests under a machine-wide slot. - A stable contract within 2.x.
--jsonpayloads and API results only gain fields and enum values.
Before you upgrade
Removed (breaking) has the details and the smaller breaks.
stim gcdeletes, and its 1.40 flags are gone. Preview withstim gc --dry-run. Thegc --jsonpayload changed shape:level,actions,blocked,results.collectGarbage()in the JavaScript API deletes. With no options it was a dry run in 1.40. UsepreviewGarbage()to preview.- A dormant linked worktree loses
node_modulesand Pods after one idle day (idle.dormantDays3 to 1), other cleanup defaults changed, andios.simslimis on. To keep a 1.40 value, runstim settings set <key> <value> --scope machinebefore the first 2.0 command that startsstimd. - A main checkout idle for 7 days also loses its
node_modulesand Pods (idle.sourceDormantDays, new;0turns it off). stim-server,stim-ciand eleven@stim-cli/*packages are gone. Use the commands above, import fromstim, and remove@stim-cli/metroand@stim-cli/expo-build-cachefrom the project.- Update everything that talks to
stim: Stim Desktop, the phone app, each service, each offload worker,@stim-cli/cache-s3and thestim-ciGitHub Action. - Removed settings and environment variables are mostly ignored; a few make commands refuse and print the fix.
stim settingsandstim doctorlist them. fingerprint.config.js: onlyextraSourcesstill changes the build-cache key, and only whilecache.fingerprintInputsis unset.- Save manual edits in an untracked, generated Expo
ios/orandroid/. The first 2.0 run prebuilds it once.
Upgrade
- With 1.40 still installed, run
stim status, thenstim stopin each running workspace, in each Stim home. - Run
npm install --global stim@2.0.0, or move the project'sstimpin. - Before any other command, run
stim guide agent,stim settingsandstim doctor, and settle what they report. Set any 1.40 default you want to keep (see Before you upgrade). - Leave a running 1.40 daemon: the first 2.0 command that starts
stimdstops it. Stop by hand only a process thatstim statussaysstimd does not stop, with the command it prints. - Update everything listed above. For each service, run
stim service installwith its existing options. - Update project files and scripts. Migration notes has a
git grepfor them. - Run
stim doctorandstim guide agentuntil 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).
stimddoes not restart by itself (#5579, not planned).- A worker restart cancels its offloaded builds (#5588, not planned).
stim worktree warmcan carry a workspace package's stale build output, such asdist(#5853).- An EAS Simulator session can run to its duration cap when
stimis killed hard while creating it (#6493). Stop it witheas simulator:stop --id <id>. - On Windows, a killed fingerprint evaluation leaves its native-run lock claim behind (#6454).
stim stopprints theRemove-Itemcommand 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 gcdeletes.--delete,--cache,--older-thanand--worktreesare gone, and thegc --jsonpayload is the level run (level,actions,blocked,results). Do: preview withstim gc --dry-run, apply with plainstim gc, and pick a level with--pressure normal|high|critical. 105fea04d3- Cleanup and simulator defaults changed.
idle.dormantDays3 to 1,maintenance.olderThanDays7 to 3,disk.minFreeGb20 to 40,disk.criticalFreeGb6 to 20, andios.simslimofftoon, which also applies to Stim simulators created before the upgrade at their next boot. Do: before the first 2.0 command that startsstimd, keep a 1.40 value withstim settings set <key> <value> --scope machine, and setios.simslimtoofffor 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 doctorstill names the replacement for the keys in the legacy settings table. A few whose being ignored would silently change behavior still makestart,ios,android,web,macos,reviveandgcrefuse: old config that setsmaintenance.modetoofforreport, ormetro.idleStopMinutesordevices.idleShutdownMinutesto0, prints thestim settingscommands to run, and five old environment variables, such asSTIM_MAINTENANCE, print the variable to unset and its replacement. Do: runstim settingsandstim doctorto find them in every layer, and use the legacy settings table. Each printedstim settings unset <key>carries the--scopeof the layer that holds the key; one you type yourself without--scoperemoves the key from every layer, a committed.stim.jsonincluded. fc6e3ec527 7a084560dc c3f10be9e8 cf92502786 a7415fc400 81621c8f8c stimdstops 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 nostimdruns. The first 2.0 command that startsstimdchecks that the process holding~/.stim/daemon/claimis 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, andstim startreuses them. A holder Stim cannot verify is not signalled:start,ios,android,web,macos,revive, an actinggcandstim serverefuse withSTIM_DAEMON_UNAVAILABLE, its pid and the stop command, and astimdthat Stim Desktop starts prints the same text. Do: nothing for a 1.40 daemon; for a holder thatstim statussaysstimd does not stop, check the pid, then run the command it prints (kill <pid>, ortaskkill /PID <pid> /Fon Windows). #6594- The
stim-serverandstim-cibinaries are gone, and eleven@stim-clipackages no longer publish.@stim-cli/core,cache,agent-driver,agent-driver-agent-device,ci,transport,transport-tailscale,transport-localandserverare bundled intostim, and@stim-cli/metroand@stim-cli/expo-build-cacheare removed (below); published versions stay installable but get no update. Do: usestim serve,stim pair,stim pairings(stim-server devicesisstim pairings,stim-server logisstim pairings log),stim service,stim setupandstim ci, and import fromstim,stim/ci,stim/ci/artifactsorstim/plugin. 26c6578878 dd200830e0 db8d60bf30 @stim-cli/metrois gone. Do: remove it andsharedCacheStoresfrommetro.config.jsand your dependencies; Stim sets Metro's shared transform store itself (optimizations.metroSharedCache). 26c6578878@stim-cli/expo-build-cacheno longer works as an ExpobuildCacheProviderthat Stim reads. Do: remove it from your dependencies and the ExpobuildCacheProviderconfig, and build withstim iosandstim android. 26c6578878@stim-cli/cache-s31.x does not load as a 2.0 cache provider. 2.0 reads a plugin's kind fromstimPlugin.kindsin itspackage.json, which 1.40.0 lacks. Do: upgrade it to 2.x under the same name, then check thatstim plugin listshows it. It now declares itsstimpeer 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-serverscript, which nothing rewrites. Do: runstim service installonce with the service's existing options while no build runs;stim service statusprints the exact command on itsstale:line, andstim doctorreports it asserver-service-stale. On Windows, runstim service installagain 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, runnpm install --global stim@<version>andstim service installwith its existing options. A 2.x worker updates from this machine withstim remote update <machine> --to <version>.stim doctorprints the right command for each worker; then checkstim remote listand the next offloaded build. 26c6578878 779be183d0 c23bdd16e3 3c1907196f b6e11782c2 5a38f7c111 - Stim Desktop and the phone app must be updated with
stim. stim-server'slocal.socklistener 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-ciGitHub Action runs only 2.x. Do: move theuses:ref to a 2.x release and setversion:to 2.0.0 or later in the same change; a 2.xversionunder the 1.40 action breaks the workflow. 7a084560dc - The server commands refuse an option they do not define. 1.40's
stim-serveraccepted an unknown option after a subcommand;stim pair,stim pairingsand the other commands that replace it printunknown optioninstead. Do: remove the option from the script. 7350db7843 7e163ef3f5 01376b0e3e ff522d1a9e - JavaScript API renames.
StimOptions.buildCacheisbuildCacheDir(also instim/ci), the run optionwaitiswaitSeconds,diagnostics({ errors })isdiagnostics({ errorsOnly }),gc()ispreviewGarbage(). Until 2026-12-12 each of these old names refuses withSTIM_BAD_ARGand names the new one.collectGarbage()always deletes and takes only{ pressure, signal }: its 1.40 optionsdelete,cache,olderThanandworktreesrefuse withSTIM_BAD_ARG, and fordeletethe remedy namespreviewGarbage(). A 1.40 call withoutdelete: trueonly previewed; one with no options now deletes, and nothing can refuse it. Every operation reports a refusal as a rejected promise.holdCIStimdis no longer exported. Do: rename at each call site, and callpreviewGarbage()wherever a 1.40collectGarbage()call only previewed (JavaScript and TypeScript). efb8679b5f db8d60bf30 b36f3fe4b1 - Internal subpath exports moved or went away.
stim/pull-requestsisstim/internal/pull-requestswith no compatibility,stim/build-artifact-cacheis gone, andstim/cache-manifestexports onlyregister(entry),unregister(dir)andCacheEntry. Do: use public operations. efb8679b5f 26c6578878 stim/pluginexports only what a plugin implements or tests with. The cache tier utilities, the host loaders,cacheProviderContractChecksandCacheProvider.metroare removed, andbuilds.resolveandbuilds.storeare typed to return a Promise. Only thecache-providerkind is stable in 2.x. Do: see Plugins. efb8679b5f 47e9dd2805 cc560a119afingerprint.config.jsoptions other thanextraSourcesno longer change the build-cache key.extraSourcesitself is ignored whencache.fingerprintInputsis set. 1.40 passed the other options to@expo/fingerprint, sopreset: 'strict'hashed native dependency contents; 2.0 does not warn at build time, andstim doctorlists each ignored option. Do: move needed inputs toextraSourcesorcache.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, andstim starteither reuses it or reportsPort <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-serveror a never-updated Stim Desktop 0.x bundle. A held port ends the net thread withport <n> is held by pid <pid>. Do: stop that process, or runstim 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
--controlcould 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 withclipboard-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.
- With 1.40 still installed, stop your workspaces. Run
stim status, thenstim stopin each running workspace, in each Stim home you use. Keep the sameSTIM_HOME. - Install 2.0:
npm install --global stim@2.0.0, or move the project'sstimpin ornpx stim@...to 2.0.0. - Settle settings before any 2.0 command other than
status,settings,doctorandguide, because most others startstimd. Runstim guide agent: its STATUS line names what an earlier Stim left behind.stim settingsandstim doctorlist the leftover keys, and the refusals print thestim settingscommands 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 firststimdruns cleanup under the values then in force. - Leave the 1.40 daemon to
stimd. The first 2.0 command that startsstimdstops it and takes its place. Only whenstim statusprintsDaemon: pid <n> from an older stim holds the daemon claimwithstimd does not stop it, check the pid, then run the stop command it prints. - Update everything that talks to
stim: Stim Desktop, the phone app, every service (stim service installwith its existing options), and then every offload worker, asstim doctorprints it (see Removed (breaking)). - 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. - Check and build. Run
stim doctor(only in a checkout whose project code you trust: its fingerprint checks evaluate project configuration) andstim guide agentuntil 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-versionsorvolta.node) now fingerprints under that Node, the one Metro runs, andstim doctorreports 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 andstim doctorsays to use Node 22.15 or later. Save manual edits in an untracked, generated Expoios/orandroid/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, runnpm installin 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
stimdper Stim home runs the long-lived work.stimdruns 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 startsstimdwhateverdaemon.modesays;daemon.modenow governs only the automatic passes. Metro and the device log streams keep running across astimdcrash, update or restart, and the nextstimdtakes them over, with their output kept; astimdof another build restarts on the new build once the work it serves ends, a command whosestimdgoes away fails withSTIM_DAEMON_UNAVAILABLEand the remedy to run it again, and every exit is recorded with its cause. Astimdthat crashes repeatedly is held back, andstim statusandstim doctorshow that.stimddoes not restart by itself (#5579, closed as not planned):stim doctorreports 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. Eachdaemon_tickrecord times the work after the passes intail, and a main-thread stall of 1 second or more writes adaemon_stallrecord 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 statusandstim doctorreport 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.unansweredinstatus --json, findingstimd-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 saydid not answer within 3 swith the pid, and when it is also late with its ticks they printkill -9 <pid>(taskkill /PID <pid> /Fon 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 detachedstimdcannot take the home within 2 seconds, the command hosts one for its own lifetime;stim cihosts one for the whole job. On Windows, once the launcher reports a startedstimd, the command waits up to 30 seconds for it to take its claim before it hosts one. A sandbox that denies thestimdsocket refuses withSTIM_SANDBOX_BLOCKED, andstim doctor --fixwrites the Claude Code sandbox allowance for the socket. New settingdaemon.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 thelatestornextchannel. New machine settingengine.autoUpdate(defaultauto) decides whetherstimdmoves 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-cacheand runs once more.stim remote update <machine>updates an approved worker to the newest compatible release on its channel, with--channel nextfor 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 setupandstim ciare commands of thestimpackage. They replace thestim-serverandstim-cibinaries.stim/ciexports the CI API.stim serveloads the Tailscale transport only when something needs the tailnet.stim ci --versionand-Vprint the CI package version. 26c6578878 dbab729703 6f36df6b0e ad43aa02fa- Exact apps build and run with
stim ios. An app withexact.mjsnext toapp.jsonbuilds through its own./exact.mjs ios --no-installon 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 Cargotarget/.stim doctorchecks Bun, the Rust target and the exact2 checkout here and on build Macs.stim reviverelaunches an Exact app without Metro.stim logs --errorsshows 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 withcache.fingerprintInputscan 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 ranpod installshares 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 gcruns automatic maintenance at a pressure level and deletes.--dry-runreports, and--pressure normal|high|criticalpicks the level. It also covers checkouts nostimcommand ran in: those in the folders named by the new machine settingmaintenance.discoverRoots, and, only with the new machine settingmaintenance.autoDiscoveron (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 doctorsuggests turning it on, or adding the folders tomaintenance.discoverRoots, once the checkouts it would reach hold at least 10 GiB of build output. A source (main) checkout'snode_modulesand Pods are deleted afteridle.sourceDormantDays(default 7,0never), andmaintenance.cargoTargetMaxGb(default 25) caps Cargotarget/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 nonode_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 withstim gc --dry-run. When a volume stays short at high or critical, plainstim gcnames 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/configcannot make them run its fsmonitor command or hooks; hooks still run for the commands that change a checkout, such as thepost-checkouthook ofstim worktree add, and other repository config, such as afilter.<driver>.cleancommand, still applies. The gc reference and Checkouts Stim never ran in have the full rules. Xcode's ownDerivedData/CompilationCache.noindexis 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 actingstim gcand the API'scollectGarbage()send one request to this home'sstimd, starting one whateverdaemon.modesays, and join a pass already under way when its level covers the request; astimdlost 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 withstimtracks which checkouts changed since;stimdapplies the events of one flush in one update and one checkpoint write.stim status --jsonand Stim Desktop's maintenance section show how much the saved observations cover,stim doctorreports cleanup trash left behind, and a finalSTIM_LOW_DISKrefusal fromstart,iosorandroidis recorded inSTIM_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 toios/Podfile.lockandproject.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,-band commit ofgit 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 ofnode_modules, a worktree 50 commits behind took 9 MB of private disk instead of 113 MB. It takes about 1.4 seconds longer thangit worktree addfollowed bystim worktree warmon react-native and about 2.5 seconds longer on expo, because git rehashes every tracked file after the clone. The tracked files match whatgit worktree addwrites, 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 acore.attributesFilethat 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 asnode_modulesgo to the trash and are deleted in the background. A branch the command created, with-bor the one git names after the path, is Stim's:stim worktree removeand the sweep of finished worktrees delete it when it has no unique commits.--refreshfirst fast-forwards the source checkout and reinstalls dependencies asstim worktree warm --refreshdoes, refuses with the same errors before creating the worktree, and with no commit-ish starts the worktree at the refreshed sourceHEAD. The API gainsaddWorktree({ path, branch, commitish }). Windows cloning is tracked in #6554. #6542 #6551 #6596 d7f419a4ab 9b603eb0f5 212c29e91a 96bc11b344- Clones come from the bundled
cow-clonebinary, on more file systems.stim worktree warmandstim worktree addclone with the prebuilt binary ofcow-clone0.1.1, a new dependency ofstim, 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>orremoved 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 itsnode_modulesblocks with it, can be far smaller than its apparent size. The default lists the current repository with the worktree check ofstim gc --dry-run;--alllists 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 showsmeasuring, and--jsonmarks each worktree being measuredmeasuring: true. The command deletes nothing and starts nostimd.stim doctorin a git repository adds alinked-worktreesnote with the same summary, read from saved verdicts only. f42c02e309 e5506ea31d ac861e1564 d0a8dd7400- Sizes come from the bundled
real-sizebinary, and size walks repeat less. Stim measures what deleting a folder would free with the prebuilt binary ofreal-size0.3.0, a new dependency ofstim, 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 listandstim doctorprint "at least" sizes and totals, and the JSON marks them withpartialon a worktree and its kept groups andrealPartial,removePartialandkeptPartialon the summary. Windows has no private size. Anode_modulesorios/Podssize 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 Cargotarget/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,0shuts it down at once) when memory permits and a device slot is free, andstim stopcan 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 androidsays so, with the ANR reason, the host load for an emulator (not on Windows) and a remedy, instead of reporting a crash, andstim logs --errorslists the kill as ananr_killrecord. 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 aremetro-cache.noindex,compilation-cache.noindexandccache.noindexin the Stim home, andagent-device.noindexin each workspace, on every platform. An upgraded home keeps its old folders untilstimdrenames each one in place at the start of a maintenance pass withdaemon.modeon, once nothing holds it. Nothing is copied, merged or deleted, and a link atcompilation-cache(a junction on Windows) keeps builds outside Stim that share that cache warm. A path set withcaches.metroCache,STIM_METRO_CACHEorserver.workerRootnever moves. 9cc203f737 android.avdConfigandandroid.avdConfigFileacceptfastboot.forceColdBoot(yesorno), 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 otherfastboot.*keys stay refused. 5d80a88705stim ports reverse <label|port>makes a server on this machine reachable from the workspace's devices, likeadb reverse, andstim portslists the reversed ports. Reverse ports also reach hosted simulators and emulators. edecc4d6cc 16e4513b48stim plugin listandstim plugin test <plugin>, with a clone-safe contract kit for transport and agent-driver plugins, plugin-reference settings, and a public API gate.stimexportsSTIM_API_VERSION. The agent-device driver reaches claims and process identity through host members.stim doctorandstim settings set cache.providerreport 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: afterstim remote removeor 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 ownpod 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 reportsoffload-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
testcapability, and test commands queue.stim setup --testrecords a separate approval for a machine that may run commands on the worker. New machine settingconcurrency.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 testruns a project's tests on this machine under a test slot. Runs pastconcurrency.maxTestswait in arrival order. It sizes Jest's, Vitest's ornode --test's worker count to the machine unless the new machine settingconcurrency.testWorkers(STIM_TEST_WORKERS, default0, derived) fixes it, andstim test -- <command>runs any command under the slot. This version runs thejskind;stim test --listshows 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
servicessetting of its committed.stim.json, and each workspace runs its own copy on its own named ports.stim services startstarts them, dependencies first,stim serviceslists them,stim services envprints their environment as shell exports, andstim services stopstops them. Stim stops running services once the workspace has been idle foridle.minutes,stim revivestarts again what it stopped, andstim worktree removetears them down first and keeps the worktree if a teardown fails. While a service runs, its ports are reversed to the workspace's devices, andstim testpasses their environment to the test command.stim startdoes not start services. Runstim guide servicesfor 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-deviceopens the app again when a host restart lost the session, a web share waits for its device and resumes, andstim share --reusestarts a stopped share again with its saved link and password.stim share --slug <name>chooses a readable link, andstim share stop --forgetremoves 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 --helperinstalls 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 samplesPerfPowerServices,mds_stores,mdworker_shared,photoanalysisdandmediaanalysisdevery minute, and sendsSIGTERMto 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 --helperremoves it, andstim service statusshows 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 opencommand. Refusals print the action theirstim guide errorssection 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 scriptedstim. 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 inreact-native.config.js, select a Re.Pack mode instead ofexpo start. A config naming Re.Pack without its packages refuses withSTIM_REPACK_BIN. 82fb26d2dc d65dd13188 - Within 2.x,
--jsonpayloads,logs --jsonrecords and API results only gain fields and enum values.stim guide apiand the commands page name the parts ofstatus --jsonand the file paths that carry no compatibility, andstim guide errors ciandstim guide errors server-actionslist the codes ofstim ciand 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 pairline, a Rename This Phone button, and a second app, Stim Next, fed frommain. (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 iosorstim android, refuses at once withSTIM_LOCK_REFUSEDnaming that command, instead of timing out:stim doctorturns it into a note, and--plankeepsSTIM_NO_FINGERPRINTwith that message. Doctor also notes a source checkout held by a run instead of suggesting a prebuild repair. On Linux and Windows,stim doctorno longer reportsautolinking:rndrift 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.
autoandremotebuilds go to an enabled paired Mac. With none, the run refuses withSTIM_BUILD_FAILEDand namesstim 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--devicerefuses withSTIM_NO_DEVICE, and--remote-build localwithSTIM_BUILD_FAILED, both before the dev server starts. A paired Mac that declines, or whose build fails, ends the run withSTIM_OFFLOAD_REFUSEDand the Mac's reason instead of a local compile.--planreports the same decision inrefusal.--eas-profileis 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 bootexit 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-readsconcurrency.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, sostim revivenames 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 bystim status, andstim gcandstim stopclear its record withouteas-cli; a session recorded before 2.0 has no expiry and stays listed. A workspace driven throughstim agent-devicewith 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 removeorstim gc, wait out agent-device's forced daemon stop (75 s after SIGTERM).stim gcand 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 laterstim stopfrom 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 --jsoninterrupted with SIGTERM prints itsSTIM_CANCELLEDpayload, and a cancelled start whose dev server already answers says it was left running and how to stop it.stim startwaits for its project and workspace locks no longer than--waitallows and reports a lock still held asSTIM_LOCK_TIMEOUT(it wasSTIM_METRO_TIMEOUT). A--jsonrun that throws a coded error before printing anything prints one{code, message, remedy}payload, and a--jsonafter 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 failedexpo prebuildprints a remedy (fix what the output reports, withstim logs --source buildfor the transcript), and a start refused because its managed tunnel died suggests anothermetro.tunnelprovider ormetro.publicUrl.stim statsomits the saved-time estimate when it rounds to zero. Withdebug.logson, stim-server writes each request only tologs/debug/server.ndjsoninstead 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 uninstallremoves only the root Tailscale Serve handler of Stim's route. Whenstim stopinterrupts the automatic revive ofstim agent-device, it prints aSTIM_CANCELLEDrefusal and exits 130.stim status --jsonalways prints the documented payload, reading the state itself until stimd has a snapshot, and shows the report mode that a leftovermaintenance.modeholds stimd at.stim engine userefuses a target that is not a published 2.x version or a builtstimpackage,stim worktree list --json,stim ports --jsonandstim macos --jsonprint 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 removerefusal leads with committing or pushing the work, lists restore commands only for files whose changes are all unstaged, prints the commit and agit branchcommand for a detached HEAD with unique commits, and, when it keeps Stim state without naming a cause, says to run it again and thenstim doctor. Run right afterstim stop, it waits up to 60 seconds for a background pass (a daemon stage, gc, fingerprint evaluation ordoctor --fix) that holds the workspace's native-run lock, printing alockwait line, and a refusal names the holder; astim ios,android,stoporsharerun 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/varand/private/var) reclaims its record instead of failing withNo such worktree. A worktree's activity time comes from its last reflog entry, so a git operation that only rewriteslogs/HEADno longer makes it look active.stim worktree warmskips the CocoaPods step on Linux and Windows and no longer asks for an app directory when run from a macOS app.stim worktree warm --refreshand the unpushed-commit check read a branch by its full ref, so a tag with the same name no longer misleads them. Neither theSTIM_MAIN_DIRTYremedy norstim doctorsuggestsgit stash. Every commandstim worktree removeprints 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 removerun from inside the worktree refuses up front and prints a PowerShell command that runs it from outside, and claim removal remedies printRemove-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 stopandstim worktree removethen refuse and print aRemove-Itemcommand for the claim. Check that the pid it names is gone, then run that command.stim worktree warmcarries 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 asdist, 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 listandstim gcsay thatstim worktree warmmakes 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 inremote.machinesnamesstim remote add. An--planrefused because of a remote names whether--remoteor the setting chose it and says to plan with--remote local. The API's iOS build offload honorsios.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 andstim gcno 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-runselects 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 withgit 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,macosandreviverefuse outside a project before they start a daemon, andgcno 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 reportsSTIM_CANCELLED, and a cleanup that fails prints the by-handeas simulator:stopcommand. A logged-out eas-cli is refused before any work withSTIM_REMOTE_EAS_UNAVAILABLE, the Metro probe of a fresh managed tunnel retries, andstim agent-devicedrives the recorded session; the iOS and Android results gain anagentfield with the command to use. A session can still run until its duration cap whenstimis killed hard (a second interrupt or SIGKILL) while it creates the session (#6493):stim gclists it as unclaimed, andeas simulator:list --name <name>andeas 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 startsees andstim stopstops 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 dostim servicesprocesses; 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 --errorsignores 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 removeand the automatic sweep no longer discard hand edits. A hand edit to a registered worktree'sios/Podfile.lockorproject.pbxprojis kept:worktree removerefuses a changedproject.pbxproj, and a tracked file markedassume-unchanged, orskip-worktreewith the file on disk, naming the file and thegit update-indexcommand that shows the edit, unless you pass--force. APodfile.lockchange counts aspod installchurn only whenios/Pods/Manifest.lockholds the same text or, when gc deletedPods, the lock hash gc recorded matches. Commit intentional dependency changes, such as apod 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,
statusreads the shared device listing when it is fresh, the CLI hot path loadsws, 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 --helpas 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 serviceshas worked examples, including acurlhealth check as areadycommand, andstim guide settingsexplainsconcurrency.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-hostruns hosted macOS apps unsandboxed as the host user, and a paired viewer withcontrolcan 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