compose-hot-reload
CLAUDE.md1.4k starsChanged 6 months agoApache-2.0View on GitHub
JetBrains open-source project enabling instant UI code changes without restarting a Compose Multiplatform application. Orchestration — Communication between Gradle, the devtools, the Application, and the IDE. The devtools starts an orchestration server; all connected clients exchange broadcast messages (e.g., ReloadClassesRequest). Agent — JVM agent added at launch in hot reload mode. Runs in the premain phase and uses java.lang.instrument.Instrumentation.redefineClasses to apply class updates on demand. Runtime — A dev variant of the runtime added to the classpath in hot reload…
Trending
Quiet since August.about the whole repository
Who's talking about JetBrains/compose-hot-reload
- @sellmair.dev“Pretty cool milestone 🔥🎇 The Compose Hot Reload repository was transferred to JetBrains 🙌 …”Bluesky · Nov 28, 2024 · 80 likes
- @sellmair.dev“🎇 Compose Hot Reload experiments are slowly finishing up! I will propose to start the first stabilization …”Bluesky · Dec 14, 2024 · 41 likes
- @zsmb.co“I'm finishing up "Compose Hot Reload is here 🔥" at Android Makers! Try Compose Hot Reload today: …”Bluesky · Apr 11, 2025 · 29 likes
- @louiscad.bsky.social“@sellmair.dev Your Compose Hot Reload thing is a pure banger! 🤯😍😍🤯 Tweaking animations & everything …”Bluesky · May 3, 2025 · 20 likes
- @skydoves.bsky.social“Jetpack Compose hot reload github.com/JetBrains/co...”Bluesky · Nov 28, 2024 · 8 likes
The biggest 5 of 51 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 51
Talked about on GitHub and Bluesky (51 times).
On GitHub · 42
- Jul 5, 2025Add compose hot reload to STAR sample — slackhq/circuit3 reactions
- Aug 31, 2026chore(deps): bump composeMultiplatform from 1.11.1 to 1.12.0 — slovymovy/slovy-movy-app1 reaction
- Aug 31, 2026build(deps): bump the kotlin-compose group across 1 directory with 2 updates — edjchapman/HelloDave1 reaction · 1 comment
- Aug 31, 2026Bump androidx-lifecycle from 2.9.6 to 2.11.0 — blueguardian-co/cerebralstratum-frontend1 reaction · 2 comments
- Aug 31, 2026Bump org.jetbrains.compose from 1.11.1 to 1.12.0 in the compose-multiplatform group across 1 directory — blueguardian-co/cerebralstratum-frontend1 reaction · 3 comments
37 more on GitHub
- Aug 30, 2026build(deps): bump the kotlin-and-compose group with 4 updates — dj-thank/choplab-sampler1 reaction · 3 comments
- Aug 29, 2026build(deps): bump the all-dependencies group with 34 updates — storytellerF/A1 reaction
- Aug 28, 2026chore(deps): bump compose from 1.11.1 to 1.12.0 — sgalluz/k2d1 reaction · 2 comments
- Aug 22, 2026build(deps): bump lifecycleRuntimeCompose from 2.10.0 to 2.11.0 — maplibre/maplibre-compose1 reaction · 2 comments
- Aug 17, 2026Bump androidx-lifecycle from 2.9.6 to 2.11.0 — blueguardian-co/cerebralstratum-frontend1 reaction · 1 comment
- Jul 22, 2026Bump the compose-multiplatform group across 1 directory with 2 updates — blueguardian-co/cerebralstratum-frontend1 reaction · 1 comment
- Jun 30, 2026compose hot reload — julianegner/defender-of-egril1 reaction
- Jun 22, 2026chore(deps): bump org.jetbrains.compose.material3:material3 from 1.11.0-alpha07 to 1.12.0-alpha02 — slovymovy/slovy-movy-app1 reaction · 2 comments
- Jan 19, 2026Bump org.jetbrains.compose.hot-reload from 1.0.0-beta08 to 1.1.0-alpha04 — cww2697/Spark-Launcher1 reaction · 1 comment
- Dec 22, 2025Bump org.jetbrains.compose.hot-reload from 1.0.0-beta08 to 1.1.0-alpha03 — cww2697/Spark-Launcher1 reaction · 2 comments
- Dec 8, 2025Bump org.jetbrains.compose.hot-reload from 1.0.0-beta08 to 1.1.0-alpha02 — cww2697/Spark-Launcher1 reaction · 2 comments
- Dec 1, 2025Bump org.jetbrains.compose.hot-reload from 1.0.0-rc03 to 1.1.0-alpha01 in /examples/demo-compose-app — JetBrains/koog1 reaction · 2 comments
- Nov 24, 2025Bump org.jetbrains.compose.hot-reload from 1.0.0-beta08 to 1.1.0-alpha01 — cww2697/Spark-Launcher1 reaction · 2 comments
- Nov 10, 2025Bump org.jetbrains.compose.hot-reload from 1.0.0-beta08 to 1.0.0-rc03 — cww2697/Spark-Launcher1 reaction · 2 comments
- Oct 13, 2025Bump org.jetbrains.compose.hot-reload from 1.0.0-beta08 to 1.0.0-rc02 — cww2697/Spark-Launcher1 reaction · 3 comments
- Oct 6, 2025Bump org.jetbrains.compose.hot-reload from 1.0.0-beta08 to 1.0.0-rc01 — cww2697/Spark-Launcher1 reaction · 2 comments
- Oct 1, 2025Bump org.jetbrains.compose.hot-reload from 1.0.0-beta08 to 1.0.0-beta09 in /examples/demo-compose-app — JetBrains/koog1 reaction · 3 comments
- Sep 29, 2025Bump org.jetbrains.compose.hot-reload from 1.0.0-beta08 to 1.0.0-beta09 — cww2697/Spark-Launcher1 reaction · 2 comments
- Feb 18, 2025[Feature/hot reload]: Compose Hot Reload 도입 — Kotlin-Multiplatform-Laboratory/DroidKnightsApp-KMP1 reaction
- Aug 22, 2026Bump org.jetbrains.compose.hot-reload from 1.0.0-beta04 to 1.3.0-alpha01 — MasterplaYCoding/Lantr0 reactions
- Aug 16, 2026chore: bump org.jetbrains.compose.hot-reload from 1.1.1 to 1.2.0 — uangkuid/OrataDesign0 reactions
- Aug 10, 2026chore(deps): bump the compose group across 1 directory with 2 updates — iprashantpanwar/JellyFab0 reactions · 1 comment
- Jul 29, 2026build(deps): bump org.jetbrains.compose.hot-reload from 1.0.0 to 1.2.0 — techie-labs/volta0 reactions
- Jul 27, 2026deps(deps): bump the compose group across 1 directory with 2 updates — apptolast/GreenhouseFronts0 reactions · 1 comment
- May 17, 2026build(deps): bump org.jetbrains.compose.hot-reload from 1.0.0-rc02 to 1.1.1 — SmilingPixel/mark-day0 reactions
- May 14, 2026chore(deps): bump org.jetbrains.compose.hot-reload from 1.1.0 to 1.1.1 — Aliorpse/animo0 reactions
- May 4, 2026Bump org.jetbrains.compose.hot-reload from 1.0.0 to 1.1.0 — AgileShift/erpnext_pos_kmp0 reactions · 1 comment
- Apr 20, 2026Bump org.jetbrains.compose.hot-reload from 1.1.0-alpha03 to 1.1.0-rc01 — meks77/battery-forecast0 reactions
- Feb 26, 2026Bump org.jetbrains.compose.hot-reload from 1.1.0-alpha04 to 1.1.0-alpha05 — life4ddr/LIFE4DDR-mobile-ng0 reactions
- Jan 19, 2026Bump org.jetbrains.compose.hot-reload from 1.1.0-alpha01 to 1.1.0-alpha04 in /src — alex-hedley/Utility-Kotlin0 reactions
- Jan 16, 2026build(deps): bump org.jetbrains.compose.hot-reload from 1.0.0-rc02 to 1.1.0-alpha04 — suqi8/coui0 reactions
- Jan 12, 2026build(deps): Bump org.jetbrains.compose.hot-reload from 1.0.0-beta08 to 1.1.0-alpha03 — IlyaSuponev/TutorDB0 reactions · 2 comments
- Oct 13, 2025chore(deps): bump org.jetbrains.compose.hot-reload from 1.0.0-alpha10 to 1.0.0-rc02 — lineargraph/JellyShoal0 reactions
- Oct 13, 2025Bump org.jetbrains.compose.hot-reload from 1.0.0-alpha10 to 1.0.0-rc02 — Code-Syndicate-SH/Smart-Hydro-Multiplatform0 reactions
- Oct 13, 2025Chore(deps): Bump org.jetbrains.compose.hot-reload from 1.0.0-beta06 to 1.0.0-rc02 — lamba92/sagra-time0 reactions
- Oct 10, 2025chore(deps): bump org.jetbrains.compose.hot-reload from 1.0.0-beta04 to 1.0.0-rc02 — adamglin0/compose-continuous-rounded-corner-shape0 reactions
- Jun 23, 2025chore(deps): bump composehot from 1.0.0-alpha10 to 1.0.0-alpha11 — mshdabiola/Naijaludo0 reactions · 2 comments
On Bluesky · 9
- Nov 28, 2024Pretty cool milestone 🔥🎇 The Compose Hot Reload repository was transferred to JetBrains 🙌 github.com/JetBrains/co... — @sellmair.dev80 likes and reposts · 9 replies
- Dec 14, 2024🎇 Compose Hot Reload experiments are slowly finishing up! I will propose to start the first stabilization phase in January. My colleagues… — @sellmair.dev41 likes and reposts · 1 reply
- Apr 11, 2025I'm finishing up "Compose Hot Reload is here 🔥" at Android Makers! Try Compose Hot Reload today: github.com/JetBrains... Find the slides… — @zsmb.co29 likes and reposts
- May 3, 2025@sellmair.dev Your Compose Hot Reload thing is a pure banger! 🤯😍😍🤯 Tweaking animations & everything else is such a breeze now. Thanks… — @louiscad.bsky.social20 likes and reposts · 1 reply
- Nov 28, 2024Jetpack Compose hot reload github.com/JetBrains/co... — @skydoves.bsky.social8 likes and reposts
4 more on Bluesky
- Mar 18, 2025If you want to try Hot Reload for Compose Multiplatform in your project, just head over to its GitHub repository and follow the steps in… — @kotlinlang.org5 likes and reposts
- Dec 16, 2024This does not mean, if also supporting say IOS, that you couldn't use native UI for that....but you'd at least have option of pulling in… — @johnoreilly.dev4 likes and reposts · 1 reply
- Jun 11, 2025💻 Want to see it in action? Try Compose Hot Reload on GitHub! Instantly preview changes to your UI code in a Compose Multiplatform app… — @kotlinlang.org1 likes and repost
- Jul 27, 2025JetBrains Runtime (a JDK distribution, used by IntelliJ and friends) supports DCEVM, and it's already used by Compose to enable UI hot… — @skaldebane.dev0 likes and reposts · 1 reply
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 58
State transfer during structural changes: When class layouts change, DCEVM performs a GC-like pass — allocates new memory for modified …
- Very specific: line 93
Update the plugin version to match: id("org.jetbrains.compose.hot-reload") version "1.0.0-DEBUG"
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Compose Hot Reload
JetBrains open-source project enabling instant UI code changes without restarting a Compose Multiplatform application.
Build & Test
# Build
./gradlew build
# Run all tests
./gradlew check
# Run a sample
./gradlew :samples:counter:hotRunJvm
# Publish to local repository (for testing in external projects)
./gradlew publishAllPublicationsToLocalRepositoryKey Modules
| Module | Purpose |
hot-reload-core | Core hot reload functionality |
hot-reload-gradle-plugin | Gradle plugin (shaded for plugin portal) |
hot-reload-gradle-core | Core Gradle integration |
hot-reload-gradle-idea | Project/build model used by IntelliJ IDEA / Android Studio |
hot-reload-agent | JVM agent that reloads classes on demand |
hot-reload-orchestration | Communication layer between Gradle, devtools, app, and IDE |
hot-reload-runtime-jvm | JVM runtime: communicates with the Agent, listens for orchestration messages, invalidates Compose groups after reload |
hot-reload-runtime-api | Public runtime API |
hot-reload-annotations | Kotlin annotations for hot reload API |
hot-reload-analysis | Bytecode analysis that determines dirty Compose scopes/groups that should be invalidated after reload |
hot-reload-devtools | Developer tools UI window |
hot-reload-mcp | MCP server for AI agent integration |
hot-reload-test | Test infrastructure and test plugins |
tests/ | Functional integration tests |
samples/ | Example projects (counter app) |
buildSrc/ | Build conventions and custom Gradle tasks |
Architecture
Orchestration — Communication between Gradle, the devtools, the Application, and the IDE. The devtools starts an orchestration server; all connected clients exchange broadcast messages (e.g., ReloadClassesRequest).
Agent — JVM agent added at launch in hot reload mode. Runs in the premain phase and uses java.lang.instrument.Instrumentation.redefineClasses to apply class updates on demand.
Runtime — A dev variant of the runtime added to the classpath in hot reload mode. Communicates with the Agent and listens for/broadcasts UI messages (e.g., UIRendered). After reload it integrates with Compose Runtime APIs to invalidate states and trigger re-renders.
Recompiler — Gradle Daemon in continuous mode that connects to orchestration and sends ReloadClassesRequest when .class files change.
MCP Server — Model Context Protocol server that enables AI agents to interact with a running Compose application. Connects to orchestration as a tooling client using PID file polling — starts without a running application, waits for it, detects shutdown, and reconnects automatically. Exposes status and take_screenshot tools over stdio transport. Launched via the hotMcpServer Gradle task.
DCEVM — Dynamic Code Evolution VM
Hot reload relies on JetBrains Runtime with DCEVM (Dynamic Code Evolution VM), which lifts standard JVM restrictions on redefineClasses. Regular JVMs only allow function body updates; DCEVM supports arbitrary changes including class structure modifications (new fields, changed hierarchies, etc.).
State transfer during structural changes: When class layouts change, DCEVM performs a GC-like pass — allocates new memory for modified objects, migrates existing field values, initializes new fields with JVM defaults (null/0/false), updates all pointers, and de-optimizes affected JIT compilations.
Key JVM flags added by the Gradle plugin:
-XX:+AllowEnhancedClassRedefinition # enables DCEVM unrestricted redefinition
-javaagent:<path-to-agent> # attaches the hot-reload agentClasspath Strategy
The Gradle plugin splits dependencies into two buckets:
- Hot — project source outputs (mutable; checksummed for change detection)
- Cold — remote/library dependencies (immutable; never reloaded)
This avoids unnecessary reload attempts on stable third-party code.
What Can Be Reloaded
Functions, classes, parameters, added/removed fields, and nearly arbitrary code changes — without manual configuration. The hot-reload-analysis module performs bytecode analysis to determine reload compatibility.
Using a Locally Built Version
- Make code changes.
- Set a custom version in
gradle.properties, e.g.version=1.0.0-DEBUG. - Run
./gradlew publishAllPublicationsToLocalRepository. - In your project's
settings.gradle.kts, add:pluginManagement { repositories { maven("file://path/to/compose-hot-reload/build/repo") } } dependencyResolutionManagement { repositories { maven("file://path/to/compose-hot-reload/build/repo") } } - Update the plugin version to match:
id("org.jetbrains.compose.hot-reload") version "1.0.0-DEBUG"
Versioning
- Current version:
gradle.properties→version - Bootstrap version:
gradle.properties→bootstrap.version - Main branch for PRs:
staging - Release branches:
release/x.y.z-*
Requirements
- Kotlin 2.1.20+
- Compose Multiplatform 1.10.0+
- JetBrains Runtime with Java 21 or earlier target
- IntelliJ IDEA 2025.2.2+ or Android Studio Otter 2025.2.1+
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

