[GH-ISSUE #157] [Feature]: Lorebook Keeper Enhancements #53

Closed
opened 2026-10-20 17:24:33 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @PromptFerret on GitHub (Apr 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/157

What problem does this solve?

The Lorebook Keeper is amazing. The best tool I have seen so far.

I have some suggestions.

First is the ability to select the lorebook that is going to be added to/updated in. Currently it dirties up the existing lorebook, meaning the user has to clone it first, or keep a backup to restore from if they decide to start a new chat session. I tend to use the chat lorebook, spell lorebooks, persona lorebooks (such as history, assets, important features or past), and then a Living World lorebook that tracks changes. I can not do that in the current setup.

Second is the Lorebook Keeper parses and adds/updates the entry right away, this does not account for the need to generate new responses, edit the response, or delete several messages to choose a new path in the direction the chat is going.

Last is the ability to generate from an existing chat that has not been processed already. I forgot to turn it on, and now have no way to back-process the entires.

Proposed solution

Lorebook selection input in the agents chat settings.

Add a read-behind value, so it only generates the entry add/update from X message ago.

The ability to trigger generation on existing chat messages.

Alternatives considered

Unsure...

Additional context

None.

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 @PromptFerret on GitHub (Apr 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/157 ## What problem does this solve? The Lorebook Keeper is amazing. The best tool I have seen so far. I have some suggestions. First is the ability to select the lorebook that is going to be added to/updated in. Currently it dirties up the existing lorebook, meaning the user has to clone it first, or keep a backup to restore from if they decide to start a new chat session. I tend to use the chat lorebook, spell lorebooks, persona lorebooks (such as history, assets, important features or past), and then a Living World lorebook that tracks changes. I can not do that in the current setup. Second is the Lorebook Keeper parses and adds/updates the entry right away, this does not account for the need to generate new responses, edit the response, or delete several messages to choose a new path in the direction the chat is going. Last is the ability to generate from an existing chat that has not been processed already. I forgot to turn it on, and now have no way to back-process the entires. ## Proposed solution Lorebook selection input in the agents chat settings. Add a read-behind value, so it only generates the entry add/update from X message ago. The ability to trigger generation on existing chat messages. ## Alternatives considered Unsure... ## Additional context None. ## 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:24:33 +07:00
Author
Owner

@CitrateSynthase commented on GitHub (Apr 21, 2026):

Add a read-behind value, so it only generates the entry add/update from X message ago.

I think it's a very important point.

Autonomous lorebook / memory / state managers often have no safeguards for newly-genrated LLM responses that haven't been vetted by the user yet.

For lorebook and memory managers, the simplest and possibly cleanest solution is to treat as "truth / canon" only everything up to the user's last message (or X messages behind, as suggested), while the newest LLM response never gets passed to the manager and can be freely edited/swiped until the user is satisfied. This prevents lorebook and memory pollution with wrong facts and saves on rollback and regeneration token costs.

I guess that the current workaround may be to run the lorebook keeper in parallel with generation (not after), but I'm not sure how it would handle swipes.

<!-- gh-comment-id:4288143026 --> @CitrateSynthase commented on GitHub (Apr 21, 2026): > Add a read-behind value, so it only generates the entry add/update from X message ago. I think it's a very important point. Autonomous lorebook / memory / state managers often have no safeguards for newly-genrated LLM responses that haven't been vetted by the user yet. For lorebook and memory managers, the simplest and possibly cleanest solution is to treat as "truth / canon" only everything up to the user's last message (or X messages behind, as suggested), while the newest LLM response never gets passed to the manager and can be freely edited/swiped until the user is satisfied. This prevents lorebook and memory pollution with wrong facts and saves on rollback and regeneration token costs. I guess that the current workaround may be to run the lorebook keeper in parallel with generation (not after), but I'm not sure how it would handle swipes.
Author
Owner

@SpicyMarinara commented on GitHub (Apr 21, 2026):

Addressing in v1.5.4.

<!-- gh-comment-id:4289275283 --> @SpicyMarinara commented on GitHub (Apr 21, 2026): Addressing in v1.5.4.
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#53
No description provided.