Thanks to visit codestin.com
Credit goes to github.com

Skip to content

splitclover/rewrite-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rewrite Extension for SillyTavern

Important

2025.09.02 - This is extension is no longer maintained for the foreseeable future.

Overview

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.

Features

  • 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

Installation

Use SillyTavern's built-in extension installer: https://github.com/splitclover/rewrite-extension

Usage

To use the Rewrite Extension:

  1. Configure the extension (see below)
  2. Select text within a single(!) chat message
  3. A context menu will appear with options to Rewrite, Shorten, or Expand
  4. Choose the desired option
  5. The selected text will be replaced with the AI-generated modification

Configuration

  1. Open the Extension tab -> Rewrite Extension
  2. Set presets for Rewrite, Shorten, and Expand operations
  3. Adjust the highlight duration for modified text

Contributing

Contributions to improve the Rewrite Extension are welcome. Please fork the repository and submit a pull request with your changes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published