Source Patches
Match compiled TypeScript AST nodes with TSQuery, then rewrite exact in-memory ranges with MagicString.
Author a Source Patch
A library for patching, replacing and decorating DeepSeek Harness plugins during runtime.
Harmony loads Patch providers in a deterministic order. Each Patch receives the previous Patch's output, so independent modifications can compose against the same target. A Patch that cannot be applied is reported and skipped; installed plugin files are never rewritten.
installed source (unchanged)
-> ordered Patch providers
-> validated in-memory transformations
-> Host reload or browser HMRStart with how Harmony fits into the runtime, or go directly to the installation guide. Inspired by Andreas Pardeike and contributors' C# project Harmony.