Skip to content
Sign in

Compose HotSwan

Compose HotSwan: fast, reliable hot reload for Compose — Android, JVM Desktop, and the iOS simulator.

Not scanned yet Editor extension 9.3k installs

Install in

No install steps yet

Follow the steps on the source page.

Compose HotSwan: fast, reliable hot reload for Compose — Android, JVM Desktop, and the iOS simulator.

Edit Kotlin, save, and the change appears in the already-running app — no reinstall, and on Android and JVM Desktop no restart at all. On the iOS simulator the two fast tiers keep the process and the composition; the fallback tier restarts the Kotlin world in place and restores saveable state.

Platforms:
  • Android (Jetpack Compose) — Stable. A warm edit lands in seconds without a reinstall, and a literal-only edit (a colour, a dp, a string) bypasses Gradle entirely.
  • JVM Desktop (Compose Multiplatform) — Supported. The same interpreter drives a desktop window and a device from one save.
  • iOS simulator (Compose Multiplatform) — Stable. Three reload tiers — an op-stream pushed over a socket, a dlopen-able reload delta, and a Kotlin/Native warm restart. The two fast tiers keep the process and the composition; the warm restart re-seeds saveable state from disk. Non-serializable remember does not survive it, and an edit that moves a composable's slot shape may reset that one composable's state. Real iOS devices are not supported.
Key features:
  • Beyond composables: ViewModels, repositories and ordinary Kotlin reload too, not just composable function bodies
  • Resource Hot Reload: change existing string, color, dimen and integer resource values without restarting the app (Android)
  • Honest reporting: a reload that did not reach the screen says so, by name, instead of reporting a green
  • Screenshot Snapshot: captures device screenshots after each reload with code diff tracking and a visual gallery
  • Multi-Module Support: works across all Gradle modules in your project automatically, Gradle isolated projects included
  • Command line: the hotswan CLI runs the same reload without the IDE, for you or a coding agent
  • One-Click Setup: add the Gradle plugin, press Start, and you're ready to go

Written by Joobi from the project's own listing. See the source page

4 Dec 2026
Version 2.4.0 released. Not scanned yet.

2.4.0

2.4.0 adds hotswan, a command line that hot reloads your app without the IDE, and supports Kotlin 2.5.0 and Gradle isolated projects. It also fixes the build failures, launch crashes and blank screens reported since 2.3.0.

  • Update the IDE plugin and the Gradle plugin together, then run your app once before your first save.
  • New: hotswan, hot reload from the command line. hotswan run builds and launches the app, hotswan reload pushes your edits and checks the screen from outside the app, and hotswan watch reloads on every save. --json, an MCP server that needs no IDE (hotswan mcp) and hotswan agent init make it usable by coding agents. Install it with cli/install.sh.
  • Kotlin 2.5.0 support. With HotSwan applied, every Kotlin 2.5.0 compile failed with an internal compiler error. Android apps and the iOS simulator now build and hot reload on it, and a warning names a project Kotlin newer than any HotSwan was verified with.
  • Gradle isolated projects. Add id("com.github.skydoves.compose.hotswan.settings") to settings.gradle.kts (Gradle 8.8 or newer) and HotSwan configures, builds and reloads with isolated projects on.
  • Compose Previews run with HotSwan applied. They threw Interpreter.dispatch called before the runtime was initialized.
  • Fixed launch crashes and blank screens: apps without Material3, Android KMP libraries without Android resources, the first screen of every app on Kotlin 2.5, a function returning its own anonymous object, and value classes over String.
  • Fixed build failures: Gradle sync's "It is too late to add actions", functions returning a value class with a private constructor (KeyboardType, ImeAction), subclasses failing with Expected value generated with NEW, coroutine chains in property initializers, flow.collect(::privateFunction), File name too long, and allWarningsAsErrors builds.
  • The IDE routes more edits. Modules registered under a name that differs from their folder, Android KMP libraries, and modules that get HotSwan from a convention plugin now reload; where the build scripts do not say, the IDE asks Gradle once.
  • iOS: switching Kotlin versions no longer breaks the instant reload until a clean.

2.3.0

HotSwan is now free and open source under the Apache License 2.0.

  • No licence, trial or subscription any more. The licence check is gone, and the plugin no longer contacts any server.
  • Works with the Gradle plugin versions already published, 2.0.0 to 2.2.0. The IDE still sends the session argument those versions expect, so you can update the IDE plugin first.
  • If an older Gradle plugin still refuses a reload, the IDE says so and tells you to update com.github.skydoves.compose.hotswan.compiler to 2.3.0 or newer.
  • Packaged Compose Desktop apps run your plain classes. The JVM target is instrumented only in builds that run the app or run a HotSwan task; packaging, publishing and tests compile it plain, so a packaged app opens no reload port, and the HotSwan runtime library stays on its classpath, inactive. With 2.2.0 a packaged app crashed at launch, or kept the reload port open. A build that runs the app but compiles it without HotSwan now warns that saves will not reach it.
  • The local bridge now requires a token. The MCP server reads it from .hotswan/bridge.json, written with owner-only permissions on file systems that support them; the Palette page gets its own narrower token through its URL. After updating, restart your AI tool so it launches the bundled MCP server.
  • Compose Multiplatform 1.12: the Gradle plugin no longer warns about it. iOS apps on 1.12.0 reload through the instant path and desktop apps reload; on 1.12 the iOS delta tier can turn itself off when Kotlin/Native cannot cache some libraries, and structural edits then take the full warm restart. Apps on 1.11 keep linking.
  • Built with Kotlin 2.4.21. Projects on Kotlin 2.3.21 or newer keep working.
  • Verified on IntelliJ IDEA 2026.3 and Android Studio Rabbit (2026.2). The plugin's code now targets the Kotlin runtime of the oldest supported IDE.

2.2.0

Most of this release is Android: structural saves spend far less time in HotSwan, keep more of your state and end amber far less often, and several stale screens and crashes are fixed. It also fixes two 2.1.0 problems that stopped a launch or a build.

  • Run your app once after upgrading, before your first save. On Android and Compose Desktop, a structural save into an app another HotSwan version built is now refused before anything is applied, instead of pushing thousands of classes into it, enough to run the app out of memory.
  • Fixed: release builds of apps with an Android KMP library crashed at launch, and so did every HotSwan app in Android Studio's "Profile with low overhead". Release builds no longer carry HotSwan, and a profileable build no longer instruments your code, so both launch.
  • Fixed: the iOS simulator build failed to link when a remembered lambda declared its own by delegate. Remove the hotswanIosMemoEveryCapture=false workaround.
  • Android: a structural save that edits composable bodies spends far less time in HotSwan. Compose Desktop gets the same changes.
  • Android: more of your state survives an edit. A value edit that changes the value's length no longer rebuilds every visible LazyColumn item, and rememberSaveable state survives adding or removing a call around it.
  • Android: far fewer amber results for edits that fully applied, starting with the first save after every app start, which asked you to rebuild and reinstall.
  • Android: fewer crashes and stale screens, from changing a rememberSaveable's type to adding a launch above a running ViewModel coroutine, and a save into an app Android has frozen (behind a sleeping screen, say) now fails in about 14 s with the remedy.
  • iOS: an edited LaunchedEffect or DisposableEffect block runs after an instant reload instead of leaving the old block running.

2.1.0

Most of this release is the iOS simulator: a structural save compiles only the files you changed, far more edits skip the native build, and many cases where a reload said "applied" over a stale screen, lost state or crashed the app are fixed.

  • HotSwan's state is in the status bar, so a session that did not start after an IDE restart no longer leaves your saves doing nothing in silence.
  • Each save's Gradle build starts through a kept connection, on every platform. "Launch Gradle through a kept connection (faster start)" in Settings → Tools → Compose HotSwan turns it off.
  • Fixed: saves lost without a word. A project under a folder named src could have every save ignored, and an agent's reload dropped your saves; a save that is dropped or left in a queue is now named in an amber line.
  • Fixed: Cancel and literal edits. After a Cancel the next save no longer starts a second build, a literal edit no longer lands on the wrong value, and a second copy of your project (a git worktree) no longer sends every literal edit to the structural reload.
  • iOS resident saves, on by default: a structural save compiles only the files you changed, in a warm compiler. Build and run the app once from Xcode after upgrading.
  • iOS: far fewer full reloads, and many more edits take the instant path, from early returns and type checks to adding a private composable.
  • iOS: a literal edit reaches code the instant path installed, so a colour or size you tune right after a structural save shows on screen instead of reading "patched" over the old value.
  • iOS: state stays where it belongs, and no more "applied" over a stale screen after a relaunch, a replaced literal edit, or a mixed revert.

2.0.2

A reported launch crash on Kotlin 2.4, and a round of iOS work that removes the long waits from the start of a session.

  • Fixed: an app could crash at launch on Kotlin 2.4, before you made a single edit. A class holding a property declared with by over a state value would fail during the first composition. The failure surfaced somewhere else entirely, usually as a layout error inside Compose, so it read like a bug in your own UI code. Reinstalling did not help and no setting avoided it. Nothing in your code needs to change now.
  • Fixed: excluding more than one class pattern now works. A second pattern used to fail the build.
  • Your first edit in a file on iOS is fast again. Editing a value such as a colour or a dimension used to fall back to a full reload the first time you touched each file.
  • A save no longer queues behind HotSwan's own background work, and HotSwan now warms the slowest iOS step once after your simulator boots. It installs nothing and steps aside the moment you save.
  • Honest reporting throughout the iOS path. Steps that decided to skip used to do so silently, so a slow reload arrived with no explanation. Each now says what it did and what it cost you.

2.0.1

A patch release led by one user-reported crash, plus a wider agent surface and more of your code reloading instantly on the iOS simulator.

  • Fixed a crash on Compose Desktop. Code that builds an object on the fly and hands it to a dependency-injection graph could crash the app instead of reloading. It affected Compose Desktop and plain JVM modules; Android was never affected. No configuration change was ever needed to avoid it, and none is needed now.
  • The opt-out annotation now works on individual functions, not only on whole classes, which is what it always said it did.
  • Clearer answers when several Android devices are attached. A save reaches one Android device. HotSwan now tells you which one, and which are left untouched, instead of implying all of them. Compose Desktop and your booted iOS simulators still reload together in that same save.
  • Snapshots are no longer hidden from AI agents that drive HotSwan without opening the tool window.
  • AI agents can now read your app's own log, which is where stack traces live, and can find out which screenshots are actually comparable before asking for a comparison. A reload also reports the screenshot it captured, so an agent can check its own work.
  • More of your code reloads instantly on the iOS simulator, including icon properties and simple repeat loops, so fewer saves fall back to the slower path.
  • A transport diagnostic for iOS on a physical device. If you have one, you can now run a diagnostic that reports whether a connection to it is possible. It reloads nothing. If you run it, please share the result in an issue.

2.0.0

HotSwan ships its own interpreter engine inside your app: new code is executed rather than installed, so a structural edit is routed around the runtime instead of being forced through it.

What that buys is a different class of edit. Add and remove composables, change how a screen branches, wrap or unwrap layout, split one composable into three, and replace a whole screen with code that looks nothing like what was there before, while the process stays alive and your state stays where you left it. Scroll position, navigation backstack and remember { } survive the edit.

  • Three platforms, one save. Android: the edit reaches the running app on a device or emulator, with no reinstall, no Activity recreate and no navigation loss. iOS simulator, new in 2.0: edit shared Kotlin and the change appears in the already-running simulator app, with no Xcode rebuild, reinstall or relaunch. Compose Desktop (JVM): the same save updates the running desktop window, alongside Android when both are attached; the runtime self-bootstraps, so applying the Gradle plugin is the setup.
  • An MCP server for AI tools. The reload pipeline is exposed over an MCP server, so an AI coding tool can drive it directly: reload, screenshot, and read the layout and semantics of what is actually on screen. You watch the tool rewrite a screen and the device updates as it works.
  • Scope. On iOS the target is the simulator; real devices are not supported. On Android, hot reload is a debug-build tool, so your release configuration is left alone.
4 Dec 2026Listed on Joobi from JetBrains Marketplace.

Follow this listing's changes (Atom feed)