mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1183] [Feature] Native AI-assisted text rewriting for character, persona, and lorebook fields #582
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#582
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kevin-ho on GitHub (May 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1183
What problem does this solve?
Writing and maintaining long-form text entries — character descriptions, persona definitions, lorebook entries, system prompts — is one of the more tedious parts of setting up a roleplay session. Other RP platforms (SillyTavern via extensions, Agnai, etc.) offer AI-assisted rewriting that lets users iteratively refine these fields with natural language instructions: "add more detail about their childhood," "convert to XML format," "make this more token-efficient," "rewrite in a darker tone."
Currently Marinara has no built-in mechanism for this. Users who want AI assistance have to copy text out to an external tool, get the rewrite, and paste it back — breaking flow and losing context.
Proposed solution
Add a native Magic Rewrite feature that integrates directly into the existing expand-textarea editors used across the app. Key elements:
POST /api/magic-rewrite/generateserver endpoint that accepts text + user instructions + optional context bundle (character card, lorebook entries, chat history), and returns a rewritten version using one of the user's configured LLM connections.Alternatives considered
Additional context
This was prototyped as a Marinara extension (
magic-rewrite-extension) and proven to work well in practice. The native implementation reuses Marinara's existingcreateLLMProvider()and connection storage, so no new infrastructure is needed — just the route, the panel component, and a small DB column for the per-connection rewrite default.Template check
@WhatsUpJerks commented on GitHub (May 25, 2026):
There's already the professor mari assistant that can do all of this, isn't there?
@cha1latte commented on GitHub (May 25, 2026):
Triage note: labeling this as
scope-riskbecause native Magic Rewrite is aligned with content authoring, but the proposed slice spans a new server route, connection defaults/storage, shared schemas, multiple editor surfaces, context selectors, and diff/apply UI.The least risky next step is to keep review focused on one native rewrite path and make sure it does not drift into a general assistant surface already covered by Professor Mari or extensions.
@kevin-ho commented on GitHub (May 25, 2026):
I can redo the PR to use the 'Default Agent Connection' for making the rewrite calls, which would eliminate the "new server route, connection defaults/storage, shared schemas" changes. Though that toggle setting wouldn't be accurate any more.
@cha1latte commented on GitHub (May 26, 2026):
v1 ported in #1260 !