Logo di Uloop Hot Reload

Uloop Hot Reload

Community
hatayama
uloop-hot-reload

Applica modifiche C# all’Editor in esecuzione senza compilare né ricaricare il dominio, mantenendo lo stato della Play Mode. Usalo al posto della compilazione dopo aver modificato i corpi dei metodi o aggiunto metodi, campi o nuove classi.

Add to TypingMind

Panoramica

Pubblicato dahatayama
Repositoryunity-cli-loop
Nome della skilluloop-hot-reload
Stelle
578
Fork
49
File inclusi
7
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 7

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da hatayama su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Uloop Hot Reload in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/hatayama/unity-cli-loop/tree/main/.agents/skills/uloop-hot-reload
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hatayama/unity-cli-loop.git /tmp/unity-cli-loop
mkdir -p .claude/skills
cp -r /tmp/unity-cli-loop/.agents/skills/uloop-hot-reload .claude/skills/uloop-hot-reload
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Uloop Hot Reload in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Uloop Hot Reload non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Uloop Hot Reload non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

uloop hot-reload

Replaces method bodies in the running Editor (EditMode or PlayMode) directly from edited project source files — no domain reload, no attributes, no source markers. Private/internal member access, static methods, return values, async methods, and iterators all work within the limits below, including private access inside async, iterator, lambda, local-function, and LINQ-query bodies. Methods that cannot be patched are reported as Skipped or Failed; one unpatchable method never aborts the rest of the run. Outcome says whether the edit is live (ReplacedByCompile: a fallback compile succeeded, so it is compiled in and no patch is active).

Usage

bash
uloop hot-reload --files Assets/Scripts/Enemy.cs
uloop hot-reload --files Assets/Scripts/Enemy.cs,Assets/Scripts/Boss.cs
uloop hot-reload
uloop hot-reload --files Assets/Scripts/Enemy.cs --compile-on-skip off
uloop hot-reload --revert-all

Multiple files are one comma-separated value (or a JSON array); array options consume exactly one value token.

A script under a brand-new .asmdef cannot be hot-reloaded before its first import: Unity has not created that assembly yet. Run uloop compile once, then iterate with hot reload. A new file under an existing .asmdef can be hot-reloaded, but it is never selected automatically — pass it with --files.

Parameters

ParameterTypeDefaultDescription
--filesarray-Project-relative .cs paths to hot-reload (method bodies, added members, and new top-level types). When omitted or empty on apply, selects compiled snapshot sources only — those whose bytes changed since the last compile snapshot, capped at 50 changed files per assembly with a warning when the cap trims the list; a file that has never been compiled is never selected and must be passed explicitly, except an introduced type's file after Play Mode entry or --revert-all, which is selected again; run uloop compile first when no snapshot exists, or pass explicit paths when no changed source is found
--revert-allflag-Remove every active hot-reload patch and added member and clear the ledger; introduced types stay loaded until the next domain reload. When set, --files is ignored
--statusflag-Lists the currently active changes (patched methods, added members, and introduced types) without applying or reverting anything.
--compile-on-skipenumautoWhen edits stay unapplied (Skipped/Failed methods, Failed types; a re-bound sibling's Skipped rows aside), run uloop compile in this command: auto only in Edit Mode (never stops a Play session), on always unless Unity holds compiles until Play ends, off never. The response's CompileFallback says which; when the compile ran, Compile carries its result and Success is the compile's.

Status

uloop hot-reload --status lists the currently active changes; it cannot be combined with --files or --revert-all. Every change is static Editor state, so after a domain reload it reports zero. Each Active/Added row's InvocationCount counts calls into its body since it was applied — a reachability signal only while the code is being driven.

How It Works

The edited files are grouped by the compiled assembly they belong to. Per group an out-of-process Roslyn worker rewrites every editable body into a static shim, the shims compile into one shim assembly and load into the Editor domain, and each original method is patched with a Harmony transpiler. Because a group shares one shim assembly, a body edited in one file can call a member added in another edited file of the same assembly. Re-running after a real edit replaces the patch; an unchanged file reports AlreadyActive and changes nothing unless a sibling of the same assembly is in the reload, in which case it is re-applied so every active patch binds to the newest shim. With a compile-time baseline only bodies that actually changed are patched (UnchangedTotal counts the rest).

Scope in Brief

  • Patched: ordinary method bodies and property getters with a body.
  • Added members: new methods, fields, and supported properties apply as Added rows (supported field-like events of a class are listed in AddedFields), visible to edited code of the same reload within the same assembly (pass the declaring file and its callers together), and gone on any compile or domain reload.
  • New types: a top-level class, struct, enum, or interface declared in an edited file is introduced by that reload and listed in IntroducedTypes; other valid shapes are refused with a Warnings line naming the reason. Use from another assembly or from files outside the reload, reflection, serialization, and Unity message discovery still need uloop compile.
  • Signature changes: a return-type change is Skipped unless this or an earlier reload patched every live compiled caller, none in another assembly; a rename or parameter change applies as an added method and warns about call sites left on the old signature.
  • Constructors, operators, struct methods, compiled setter/init/indexer accessors, and event accessors are Skipped; finalizers and interface members are silently not applied.
  • A reload applies each file all-or-nothing: a Failed method leaves that file unapplied, a Failed type leaves every file of its assembly unapplied.

Workflow

Treat hot reload as the exploration phase and uloop compile as the landing phase: keep edits inside the edited files, collect structural changes, and compile once — every compile drops all patches and pause points and resets the PlayMode session (the compile response's Warning says how many). While hot-reload changes are active, AutoRefreshHeld is true so returning focus does not recompile; uloop compile releases the hold, and --revert-all only when no introduced type remains. One-shot methods (Awake, Start, init helpers) patch but show no effect on the call that already ran; the response marks them with LifecycleNote. To re-run an edited compiled OnEnable, set enabled = false with execute-dynamic-code, reload, then set it back to true (Unity calls the old OnDisable, then the patched OnEnable). An edited OnDisable runs the next time the component is disabled; to run it now, toggle enabled after the reload. To tune a value while playing, expose a static property getter instead of a const; its body is patched on compiled and introduced types alike.

Reference Guides

All files live in references/ beside this skill; read the one whose trigger matches:

  • references/scope-and-limits.md — full scope rules: added members, signature changes, Skipped/Failed tables, source baselines, one-shot code, tunable getters.
  • references/mechanism-and-lifecycle.md — patch mechanism, convergence, what survives which reload, Editor-code iteration without PlayMode.
  • references/troubleshooting.md — Patched but no behavior change, JIT inlining, --status, stack frames without lines.
  • references/pause-point-interaction.md — how patches re-target or suppress armed pause points; one-way reachability checks.
  • references/introduced-types.md — types a reload can introduce: supported shapes, internal access, refusal wording, identity and lifetime, why a new file is never selected automatically.
  • references/added-field-wiring.md — putting a value into an added field without a compile.
  • references/output.md — "Is my edit live?" (Outcome), Timing, every response field: ErrorCode, NextActions, Methods rows, Warnings, totals.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Uloop Hot Reload?

Applica modifiche C# all’Editor in esecuzione senza compilare né ricaricare il dominio, mantenendo lo stato della Play Mode. Usalo al posto della compilazione dopo aver modificato i corpi dei metodi o aggiunto metodi, campi o nuove classi.

Perché usare Uloop Hot Reload su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Uloop Hot Reload è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Uloop Hot Reload in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/hatayama/unity-cli-loop/tree/main/.agents/skills/uloop-hot-reload. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Uloop Hot Reload?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Uloop Hot Reload?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Uloop Hot Reload: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Uloop Hot Reload è gratuita?

Sì. È pubblicata su GitHub da hatayama con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇