Important
2025.09.02 - This is extension is no longer maintained for the foreseeable future.
The Rewrite Extension enhances the chat experience in SillyTavern by allowing users to dynamically rewrite, shorten, or expand selected text within messages. Works for chat completion, text completion and NovelAI.
- Custom {{rewrite}} macro that contains the selected text
- Custom {{targetmessage}} macro that contains the full targeted message
- Custom {{rewritecount}} macro that returns a numeric (39) count of words selected
- Rewrite, shorten, or expand selected text in chat messages, with an added delete button
- Convenient undo button
- Real-time streaming of rewritten text
- Temporary highlighting of modified text for easy identification
- Ability to abort ongoing rewrites
Use SillyTavern's built-in extension installer:
https://github.com/splitclover/rewrite-extension
To use the Rewrite Extension:
- Configure the extension (see below)
- Select text within a single(!) chat message
- A context menu will appear with options to Rewrite, Shorten, or Expand
- Choose the desired option
- The selected text will be replaced with the AI-generated modification
- Open the Extension tab -> Rewrite Extension
- Set presets for Rewrite, Shorten, and Expand operations
- Adjust the highlight duration for modified text
Contributions to improve the Rewrite Extension are welcome. Please fork the repository and submit a pull request with your changes.