Reverse engineered prompt

GitHub

Build me a SillyTavern extension that lets me use EJS style template code inside prompts, character cards, and world info so I can do more than simple macro replacement. I want to be able to write conditions, loops, and variable output in the text before it gets sent to the model, and also support template processing on the model reply so responses can update saved state or change how the message is shown.

Please include easy variable helpers for reading and writing values, plus scopes for global, chat specific, and message specific data that persist properly. I also want prompt injection tools so a world info entry can place content at the start or end of the final prompt, and a more advanced way to insert whole messages in specific positions. Keep it compatible with normal SillyTavern macros, give it a simple settings page, and add docs with examples for common use. If anything is unclear, look up the current SillyTavern extension docs online and make it feel polished and ready to install from a repo URL.

Have a live product UI? Try website reverse