[GH-ISSUE #3278] docs: no user guide for Regex Scripts (find/replace, prompt-vs-display scope, depth/order) #1773

Closed
opened 2026-10-21 05:42:32 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kolacheee on GitHub (Jul 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3278

Originally assigned to: @SpicyMarinara on GitHub.

A shipped, user-facing feature has no user documentation. Found in a docs-coverage sweep against v2.1.0 (each gap re-checked with fresh greps across docs/ and README.md to confirm coverage really is absent). Suggested home: new-doc docs/REGEX_SCRIPTS.md.

Feature: Regex Scripts: find/replace authoring, prompt-vs-display scope, depth/order, global vs character-scoped scripts

Why it needs docs (user impact):

Regex scripts are the primary tool for cleaning model output and reshaping prompts, a direct SillyTavern-parity feature migrators expect. The prompt-vs-display distinction and depth/order semantics are subtle and easy to misuse. The docs currently disclaim one of the most-used customization surfaces.

What the docs currently say (i.e. the gap):

CONVERSATION.md line 7 explicitly states the guide 'does not cover ... regex scripts' and sends users to Discord/GitHub. MACROS.md line 3 only notes macros expand inside regex scripts. FRONTEND.md and FILE_STORAGE_MIGRATION.md hits are storage/dev tables. README line 158 is a one-word blurb. There is NO guide to writing a script, the Only Prompt / Only Display / Both distinction, depth range, execution order, or global vs character-scoped scripts - the docs actively point users off-platform.

Evidence it shipped and is user-facing:

packages/client/src/components/agents/RegexScriptEditor.tsx (1008 lines) exposes Find Pattern, Replace With, flags, Apply To, and a live Apply Mode = Only Prompt | Only Display | Both (RegexApplyMode type + APPLY_MODE_META, lines 63-84), plus depth range and execution order. Scripts are global and also character-scoped. CHANGELOG line 103 confirms server ReDoS hardening (VM timeout). The apply-mode distinction is the #1 confusion source and is entirely code-only.

Confidence: high. This is a suggested new doc/section, not a bug - close if it's out of scope or already planned.

Originally created by @kolacheee on GitHub (Jul 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3278 Originally assigned to: @SpicyMarinara on GitHub. A shipped, user-facing feature has **no user documentation**. Found in a docs-coverage sweep against **v2.1.0** (each gap re-checked with fresh greps across `docs/` and `README.md` to confirm coverage really is absent). Suggested home: **new-doc `docs/REGEX_SCRIPTS.md`**. **Feature:** Regex Scripts: find/replace authoring, prompt-vs-display scope, depth/order, global vs character-scoped scripts **Why it needs docs (user impact):** Regex scripts are the primary tool for cleaning model output and reshaping prompts, a direct SillyTavern-parity feature migrators expect. The prompt-vs-display distinction and depth/order semantics are subtle and easy to misuse. The docs currently disclaim one of the most-used customization surfaces. **What the docs currently say (i.e. the gap):** CONVERSATION.md line 7 explicitly states the guide 'does not cover ... regex scripts' and sends users to Discord/GitHub. MACROS.md line 3 only notes macros expand inside regex scripts. FRONTEND.md and FILE_STORAGE_MIGRATION.md hits are storage/dev tables. README line 158 is a one-word blurb. There is NO guide to writing a script, the Only Prompt / Only Display / Both distinction, depth range, execution order, or global vs character-scoped scripts - the docs actively point users off-platform. **Evidence it shipped and is user-facing:** packages/client/src/components/agents/RegexScriptEditor.tsx (1008 lines) exposes Find Pattern, Replace With, flags, Apply To, and a live Apply Mode = Only Prompt | Only Display | Both (RegexApplyMode type + APPLY_MODE_META, lines 63-84), plus depth range and execution order. Scripts are global and also character-scoped. CHANGELOG line 103 confirms server ReDoS hardening (VM timeout). The apply-mode distinction is the #1 confusion source and is entirely code-only. _Confidence: high. This is a suggested new doc/section, not a bug - close if it's out of scope or already planned._
bsakaguchi 2026-10-21 05:42:32 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 5, 2026):

Addressed in #3289.

<!-- gh-comment-id:4887418581 --> @SpicyMarinara commented on GitHub (Jul 5, 2026): Addressed in #3289.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1773
No description provided.