mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #157] [Feature]: Lorebook Keeper Enhancements #53
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#53
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 @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:
@CitrateSynthase commented on GitHub (Apr 21, 2026):
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.
@SpicyMarinara commented on GitHub (Apr 21, 2026):
Addressing in v1.5.4.