# Guided Generations Extension for SillyTavern This extension brings the full power of the original "Guided Generations" Quick Reply set to SillyTavern as a native extension. It provides modular, context-aware tools for shaping, refining, and guiding AI responsesโ€”ideal for roleplay, story, and character-driven chats. All features are accessible via intuitive buttons and menus integrated into the SillyTavern UI. See [`JSDoc.md`](./JSDoc.md) for code-level documentation. --- ## Table of Contents - [Features](#features) - [Installation](#installation) - [Usage](#usage) - [Settings](#settings) - [Troubleshooting](#troubleshooting) - [License](#license) - [Contributing](#contributing) --- ## Features ### ๐Ÿ• Guided Response *Inject instructions before the AI replies.* - Type instructions and press ๐Ÿ•. - Your instructions guide the next AI response. - [Video Example](https://youtube.com/shorts/yxdtbF3NxW4?feature=share) ### ๐Ÿ‘ˆ Guided Swipe *Regenerate the last AI message with new guidance.* - Enter new instructions and press ๐Ÿ‘ˆ to generate a new swipe. - Only available if the last message is from the AI. - [Video Example](https://youtube.com/shorts/GRQ9l_8K6-Y?feature=share) ### Impersonation (1st: ๐Ÿ‘ค, 2nd: ๐Ÿ‘ฅ, 3rd: ๐Ÿ—ฃ๏ธ) *Expand outlines into rich, in-character narratives.* - Enter a brief outline, select perspective (toggle in settings), and press the corresponding button (๐Ÿ‘ค/๐Ÿ‘ฅ/๐Ÿ—ฃ๏ธ). - Your outline is expanded into a full message from the chosen viewpoint. - Can be hidden or displayed individually per settings. 1st Person is displayed by default. - Video Examples: - [1st Person](https://youtube.com/shorts/FT5gv3d2kE4?feature=share) - [2nd Person](https://youtube.com/shorts/80l12LrtBpQ?feature=share) - [3rd Person](https://youtube.com/shorts/wWka-1URLPg?feature=share) ### ๐Ÿ“– Persistent Guides Menu *Manage persistent scenario context.* - Click the ๐Ÿ“– button to open the persistent guides menu. - Select a guide type (see below) to generate or manage context. **Guide Types:** - ๐Ÿ—บ๏ธ Situational: Generate context from recent chat or user focus. - ๐Ÿง  Thinking: Generate character thoughts (auto-trigger optional). - ๐Ÿ‘• Clothes: Describe character outfits (auto-trigger optional). - ๐Ÿง State: Detail character positions/status (auto-trigger optional). - ๐Ÿ“œ Rules: Define or update in-story rules. - โž• Custom: Inject user-defined context. **Management Actions:** - โœ๏ธ Edit Guides: Modify existing guide injections via popup. - ๐Ÿ‘๏ธ Show Guides: Display all active guides. - ๐Ÿ—‘๏ธ Flush Guides: Remove selected or all guides. - Auto-trigger for Thinking, Clothes, and State can be toggled in settings. ### ๐Ÿ”– Tools Menu *Access additional utilities* - **๐Ÿ”ง Corrections:** Edit the last AI message with targeted instructions. - **โœ… Spellchecker:** Polish your input for grammar, punctuation, and flow. - **โœˆ๏ธ Simple Send:** Send input as a user message without triggering a model response. - **๐Ÿ–‹๏ธ Edit Intros:** Rewrite or transform introductory messages on demand. - **โ†ฉ๏ธ Input Recovery:** Restore previously cleared input. --- ## Installation 1. **Install the Extension:** - In the Extensionmanager click on Install Extension and enter https://github.com/Samueras/GuidedGenerations-Extension/ as the GITHUB --- ## Usage - All main features appear as buttons next to the send button or in the left-side gear menu. - Hover tooltips and context menus provide guidance and quick access to advanced features. - See in-app settings for feature toggles and auto-guide configuration. - For full technical details, see [`JSDoc.md`](./JSDoc.md). --- ## โš™๏ธ Settings All extension settings are managed via SillyTavernโ€™s Extension Settings panel: - **Auto-Trigger**: toggle automatic execution of: - Thinking Guide - State Guide - Clothes Guide - **Buttons Visibility**: show or hide action buttons: - 1st Person Impersonation (๐Ÿ‘ค) - 2nd Person Impersonation (๐Ÿ‘ฅ) - 3rd Person Impersonation (๐Ÿ—ฃ๏ธ) - Guided Response (๐Ÿ•) - Guided Swipe (๐Ÿ‘ˆ) - Persistent Guides Menu (๐Ÿ“–) - **Injection Role**: select the role (`system`, `assistant`, or `user`) used when injecting instructions. - **Debug Mode**: when enabled, shows detailed debug information in the browser console. Useful for troubleshooting but can clutter the console during normal use. - **Presets**: for each guide/tool (Clothes, State, Thinking, Situational, Rules, Custom, Corrections, Spellchecker, Edit Intros, Impersonation 1st/2nd/3rd), choose any SillyTavern preset. Before running a guide/tool, the extension will switch to that preset (and its configured API/model), execute the action, then restore your previous presetโ€”allowing different models per guide. - **Prompt Overrides**: customize the raw prompt template for each guide/tool. Use `{{input}}` for your input text and other placeholders as supported. Overrides apply to: - Clothes Guide Prompt - State Guide Prompt - Thinking Guide Prompt - Situational Guide Prompt - Rules Guide Prompt - Corrections Prompt - Spellchecker Prompt - Impersonate 1st/2nd/3rd Person Prompts - Guided Response Prompt - Guided Swipe Prompt --- ## Troubleshooting - **Missing Buttons:** Ensure SillyTavern is up to date (v1.12.9+) and LALib is installed/enabled. - **Context Menus Not Appearing:** Try switching chats or re-adding the extension in the Quick Replies menu. - **Other Issues:** Restart SillyTavern, check for updates, and consult the [SillyTavern documentation](https://github.com/SillyTavern/SillyTavern). --- ## License This project is licensed under the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for details. --- ## Contributing Contributions are welcome! Submit pull requests or open issues for improvements, features, or documentation. For questions or feedback, open an issue in this repository. --- ## โค๏ธ Support the Project If you find this extension helpful, please consider supporting my work: - [โ˜• Buy me a coffee on Ko-fi](https://ko-fi.com/samueras)