[GH-ISSUE #535] [Feature]: Add SillyTavern-style Final Character Reminder #245

Closed
opened 2026-10-20 17:26:43 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @cha1latte on GitHub (May 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/535

What problem does this solve?

Marinara Engine has character advanced settings such as Depth Prompt, Post-Instruction, and System Prompt, but they do not match the practical behavior of SillyTavern's Character's Note.

In SillyTavern, a Character's Note with role user and depth 0 behaves like a very late in-chat injection near the model's next response. Because of that final placement, the model treats it as a current instruction.

In Marinara, Character Depth Prompt can also be configured as role user and depth 0, but it is inserted during normal prompt assembly. After that, other prompt/context pieces can still be added, including author notes, memories, reminders, agent context, retrieval context, and role formatting/merging. As a result, depth=0 at insertion time may not remain the final or highest-priority instruction by the time the request is sent.

This makes some formatting or behavioral reminders less reliable in Marinara than in SillyTavern. For example, a formatting-style system note that works reliably in SillyTavern's Character's Note can be ignored in Marinara when placed in Post-Instruction or Depth Prompt.

Proposed solution

Add a character-level Final Character Reminder / Character's Note setting that is injected very late in prompt assembly, after normal character fields, depth prompts, author notes, memories, agent context, and other regular context assembly.

Desired behavior:

  • Stored per character.
  • Can be enabled or disabled.
  • Supports selectable role: user, system, or assistant.
  • Visible in Peek Prompt / debug prompt output.
  • Injected after normal character fields, depth prompts, author notes, memories, and agent context.
  • depth=0 should mean final prompt tail, or as close as possible to generation, rather than only depth 0 at an earlier assembly stage.

The goal is to match the practical behavior of SillyTavern's Character's Note for late character-specific reminders.

Alternatives considered

Existing Marinara options were tried, including Character Depth Prompt, Post-Instruction, and System Prompt. These do not provide the same final-prompt placement because they can be followed by later prompt/context assembly.

Additional context

Discord report: https://discord.com/channels/1417099416812392641/1502040372518326375

Reported by Адель [MEOW].

Original comparison from the report:

  • SillyTavern Character's Note at role user, depth 0 acts like a very late in-chat injection close to the model's next response.
  • Marinara Character Depth Prompt at role user, depth 0 is inserted during normal prompt assembly and may be followed by author notes, memories, reminders, agent context, retrieval context, and role formatting/merging.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @cha1latte on GitHub (May 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/535 ## What problem does this solve? Marinara Engine has character advanced settings such as Depth Prompt, Post-Instruction, and System Prompt, but they do not match the practical behavior of SillyTavern's Character's Note. In SillyTavern, a Character's Note with role `user` and depth `0` behaves like a very late in-chat injection near the model's next response. Because of that final placement, the model treats it as a current instruction. In Marinara, Character Depth Prompt can also be configured as role `user` and depth `0`, but it is inserted during normal prompt assembly. After that, other prompt/context pieces can still be added, including author notes, memories, reminders, agent context, retrieval context, and role formatting/merging. As a result, `depth=0` at insertion time may not remain the final or highest-priority instruction by the time the request is sent. This makes some formatting or behavioral reminders less reliable in Marinara than in SillyTavern. For example, a formatting-style system note that works reliably in SillyTavern's Character's Note can be ignored in Marinara when placed in Post-Instruction or Depth Prompt. ## Proposed solution Add a character-level Final Character Reminder / Character's Note setting that is injected very late in prompt assembly, after normal character fields, depth prompts, author notes, memories, agent context, and other regular context assembly. Desired behavior: - Stored per character. - Can be enabled or disabled. - Supports selectable role: `user`, `system`, or `assistant`. - Visible in Peek Prompt / debug prompt output. - Injected after normal character fields, depth prompts, author notes, memories, and agent context. - `depth=0` should mean final prompt tail, or as close as possible to generation, rather than only depth 0 at an earlier assembly stage. The goal is to match the practical behavior of SillyTavern's Character's Note for late character-specific reminders. ## Alternatives considered Existing Marinara options were tried, including Character Depth Prompt, Post-Instruction, and System Prompt. These do not provide the same final-prompt placement because they can be followed by later prompt/context assembly. ## Additional context Discord report: https://discord.com/channels/1417099416812392641/1502040372518326375 Reported by Адель [MEOW]. Original comparison from the report: - SillyTavern Character's Note at role `user`, depth `0` acts like a very late in-chat injection close to the model's next response. - Marinara Character Depth Prompt at role `user`, depth `0` is inserted during normal prompt assembly and may be followed by author notes, memories, reminders, agent context, retrieval context, and role formatting/merging. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:26:43 +07:00
Author
Owner

@cha1latte commented on GitHub (May 7, 2026):

Triage note: labeling this as scope-risk because the request is strongly aligned with character prompt behavior, but it touches late prompt assembly order and character-level settings where placement semantics need a clear first slice before implementation.

Define the smallest shippable version around one late-injected per-character reminder that appears in Peek Prompt before expanding role/depth behavior further.

<!-- gh-comment-id:4401680040 --> @cha1latte commented on GitHub (May 7, 2026): Triage note: labeling this as `scope-risk` because the request is strongly aligned with character prompt behavior, but it touches late prompt assembly order and character-level settings where placement semantics need a clear first slice before implementation. Define the smallest shippable version around one late-injected per-character reminder that appears in Peek Prompt before expanding role/depth behavior further.
Author
Owner

@cha1latte commented on GitHub (May 7, 2026):

Additional implementation reference from the original requester:

They built a working browser-side extension prototype that approximates the requested behavior without core changes. The extension:

  • Adds a Character's Note row to Chat Settings.
  • Opens a per-chat Character Notes panel.
  • Lets the user edit notes for each character active in the current chat.
  • Stores notes in chat.metadata.characterNotes.
  • Intercepts POST /api/generate and appends enabled notes to generationGuide.
  • Supports targeting the current forCharacterId when generation is for a specific character.
  • Treats this as a late reminder rather than a new server-side prompt provider role.

This is useful as a reference for a first core implementation slice. It suggests the smallest shippable version could be:

  1. Store per-chat, per-character note content plus enabled state.
  2. Surface it from Chat Settings near the existing Characters/settings controls.
  3. Inject enabled notes through the existing late generationGuide path, or an equivalent late prompt hook.
  4. Show the injected reminder in Peek Prompt/debug output.
  5. Defer broader role/depth controls until the late-reminder behavior is proven in core.

The prototype also makes the current limitation clear: as a browser extension, it only works where installed and enabled, so core support would still be useful for portability and consistency.

<!-- gh-comment-id:4401797114 --> @cha1latte commented on GitHub (May 7, 2026): Additional implementation reference from the original requester: They built a working browser-side extension prototype that approximates the requested behavior without core changes. The extension: - Adds a `Character's Note` row to Chat Settings. - Opens a per-chat Character Notes panel. - Lets the user edit notes for each character active in the current chat. - Stores notes in `chat.metadata.characterNotes`. - Intercepts `POST /api/generate` and appends enabled notes to `generationGuide`. - Supports targeting the current `forCharacterId` when generation is for a specific character. - Treats this as a late reminder rather than a new server-side prompt provider role. This is useful as a reference for a first core implementation slice. It suggests the smallest shippable version could be: 1. Store per-chat, per-character note content plus enabled state. 2. Surface it from Chat Settings near the existing Characters/settings controls. 3. Inject enabled notes through the existing late `generationGuide` path, or an equivalent late prompt hook. 4. Show the injected reminder in Peek Prompt/debug output. 5. Defer broader role/depth controls until the late-reminder behavior is proven in core. The prototype also makes the current limitation clear: as a browser extension, it only works where installed and enabled, so core support would still be useful for portability and consistency.
Author
Owner

@SpicyMarinara commented on GitHub (May 10, 2026):

Can be achieved in preset by adding a prompt, an unnecessary addition.

<!-- gh-comment-id:4414871508 --> @SpicyMarinara commented on GitHub (May 10, 2026): Can be achieved in preset by adding a prompt, an unnecessary addition.
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#245
No description provided.