Organize SillyTavern’s Chat Completion prompts into folders and nested subfolders, with an independent toggle at every level. Author: miputra. Formerly Prompt Folders; existing settings and exports remain compatible.
Read the indentation from PF Stress Test → Branch 00 → Section. Each folder has its own toggle; the triangle expands or collapses its children. This close-up comes from the real-app 500-prompt test and shows only the hierarchy, with the surrounding chat cropped out.
Read the documentation · Getting started · Detailed reference and release notes
Click Folder to create a folder or Prompt to add a prompt. Search finds prompts by name or identifier. Drag the header to reposition the panel; the top-right controls grow, shrink, switch sides and minimize it. Refresh reads the native Prompt Manager again. Getting started →
The folder’s toggle mutes its contents. The adjacent check and cross buttons enable all or disable all. Each prompt row has its own toggle, manual-filter exclusion, Auto Filter exclusion, read-only eye, editor pencil, More actions menu and folder selector. Drag rows to reorder; Ctrl/Cmd-click selects several. Folders and prompts →
Mute remembers your selection. Restoring a folder brings back the prompts you intended to enable. A child folder’s own mute remains independent. Use Enable all only when you want every prompt switched on.
Open the toolbar’s funnel to match prompt content by XML tag, word or regex. Choose whether to affect the matching prompts, their last containing folder or all containing folders. Enter a preset name and Save to reuse the action later.
+ Preset group creates a group for saved actions; the group’s + creates a subgroup. Move presets with the row selector or drag them. A preset lock blocks its actions, while a group’s On control gates its descendants without changing their locks. This existing test capture predates the STPHE rename. Filter presets →
Select Chat in Match against for a manual recent-chat condition. Check chat checks that condition; choose the prompts to affect separately below it. Use Auto Filter for ongoing automatic evaluation.
Open the toolbar’s wand. Name a rule, choose its condition and set chat depth. This unsaved example checks for tavern in the last four messages. Depth 0 means always on.
Choose the effect and its targets independently. With Enable when triggered, selected targets turn on when the condition matches and off when it stops matching. Check the desired prompts or folders before adding the rule; this screenshot shows the target picker before selection.
The master switch pauses filters. The two timing options independently re-evaluate after generation and before sending. Before sending (wait for filters) includes the new user message and waits for effects before request assembly. Auto Filter →
Use Export folder structure for a backup. Import replaces the folder organization; Import append merges into the existing structure. Full exports include filters, rules and their groups, with native definitions and order when available.
The row’s More actions menu offers rename, insertion, a single-prompt export and deletion choices. Rename and Edit use SillyTavern’s native editor; save there to apply changes.
Remove from list keeps the native definition for later reinsertion. Delete prompt permanently removes the definition. Export before making changes you may need to recover. Import, export and removal →
In SillyTavern, open Extensions → Install extension and enter https://github.com/miputra/STPHE. Reload, select Chat Completion, then open AI Response Configuration once so the native Prompt Manager renders. Update an existing Prompt Folders installation in place; keep only one copy.
Folder changes apply to the native prompt list, verify their states, then repaint the hierarchy before unlocking. The integration was checked with SillyTavern 1.18.0. Large presets can take time. Reordering and native UI integration are best-effort across versions; verify important prompt sequencing in AI Response Configuration after reloading. Troubleshooting →
Made with Claude 4.6 Sonnet, ChatGPT 5.6 Sol, and ChatGPT 6 ASTRA.
AI development disclaimer
This was originally intended as a personal project, but I decided to make it public. I don't understand this project's code, and JavaScript is not a language I know; I only know C# and Python.
I have added comments throughout the code to make development easier, whether for manual fixes or as notes for AI tools working on the project. I hope this helps.
If you like the project, you can also buy me a coffee.
- Trakteer: Support miputra
- BEP-20:
0xE122d7d44604d59b27Ca3FAA44Fc1Da94CE0aE03 - Solana:
C8A5J9w7UkXeLVeCWhpP47SPCPvnuS55RJWybzFhB3jF











