[GH-ISSUE #5391] [Issue]: Expand agent tools for lorebook folders and chunked backfilling #2986

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

Originally created by @SpicyMarinara on GitHub (Aug 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5391

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Add supported ways for Mari and custom agents to create lorebook folders, process message history in chunks, and target specific lorebooks. The reporter currently relies on a custom webhook or bridge because Mari reports that it cannot create folders.

Expected behavior

Mari and custom agents should be able to create lorebook folders through supported tools. Custom agents should be able to process messages in configurable chunks for backfilling and, including when not using the prebuilt lorebook update tool, accept an explicitly selected target lorebook.

Actual behavior

The reporter says Mari tells them it cannot create lorebook folders, requiring a custom webhook or bridge to create the desired folder hierarchy. Custom agents do not currently have a described chunked message iteration or backfill workflow, and agents not using the prebuilt update lorebook tool appear to use whichever lorebook is attached to the chat.

Steps to reproduce

  1. Configure a lorebook organization using nested folder paths such as Characters//, Places//, Things/
Originally created by @SpicyMarinara on GitHub (Aug 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5391 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Add supported ways for Mari and custom agents to create lorebook folders, process message history in chunks, and target specific lorebooks. The reporter currently relies on a custom webhook or bridge because Mari reports that it cannot create folders. ## Expected behavior Mari and custom agents should be able to create lorebook folders through supported tools. Custom agents should be able to process messages in configurable chunks for backfilling and, including when not using the prebuilt lorebook update tool, accept an explicitly selected target lorebook. ## Actual behavior The reporter says Mari tells them it cannot create lorebook folders, requiring a custom webhook or bridge to create the desired folder hierarchy. Custom agents do not currently have a described chunked message iteration or backfill workflow, and agents not using the prebuilt update lorebook tool appear to use whichever lorebook is attached to the chat. ## Steps to reproduce 1. Configure a lorebook organization using nested folder paths such as Characters/<Name>/<Facet>, Places/<Place>/<Sub-area>, Things/<Object>, Lore/<Category>/<Topic>, or Misc/<Topic>. 2. Ask Mari to create the required lorebook folders. 3. Observe that Mari reports it cannot create the folders, according to the reporter. 4. Create or use a custom agent that needs to backfill lorebook entries from chat history. 5. Attempt to process the history in sequential chunks, such as 25 messages followed by the next 25 messages, or select a target lorebook for an agent that does not use the prebuilt lorebook update tool. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video provided. No Support Diagnostics or agent version was included. ## Additional context The Marinara response states that lorebook folders already exist and that Mari should be able to create them. The requested custom-agent improvements include chunk iteration and a backfill option exposed when creating a custom agent and in the custom-agent menu in the Agents drawer in Chat Settings. The requested behavior for selecting target lorebooks for agents that do not use the prebuilt update lorebook tool was not fully specified. Discord thread: Tool requests Discord thread link: https://discord.com/channels/1417099416812392641/1540712273130037298 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-08-22T13:20:30.964Z] DarknessMyOldFriend: There are some tools that I think would be useful. - A way to create lorebook folders either using the existing lorebook updating tools or ones specifically meant for adding folders. - A way for Mari to create folders since she tells me she cant. - A way for custom agents to iterate over chunks of messages for backfilling (Ie run on 25 messages, then run on next 25 messages, etc) - Way for custom agents not using the prebuilt update lorebook tool to be able to accept target lorebooks would also be nice. I kinda made my agents just use whatever is attached to the chat. So exactly what I am trying to do: I really like it when my lorebooks are organized into nice neat folders. Does it help get the right information into the prompt? Probably not. but it makes my brain happy. I have created like a custom webhook/ bridge thingy with Mari's help to facilitate the folder creation. However, with every update that locks Mari down, it is getting more and more annoying to get her to help me with this. I am not saying that locking down is unnecessary, its just a bit annoying to have once been able to do something with Mari and then no longer be able to do that thing. Soooo.... this is me officially requesting the thing I had Mari brute force. [Discord message: https://discord.com/channels/1417099416812392641/1540712273130037298/1540712273130037298] [2026-08-22T13:20:31.599Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1540712273130037298/1540712275793416323] [2026-08-22T13:22:59.531Z] DarknessMyOldFriend: Here is exactly how I have my prompt setting up the folders. # THE FOLDER HIERARCHY (the path argument) Every entry declares a path: a forward-slash folder route. Root holds ONLY these top-level folders. Choose the correct one: - Characters/<Name>/<Facet> - people. One person = one folder. Split each durable facet into its own entry: Appearance, Temperament, Background, Relationships, Skills, Goals, etc. Prefer many small facet entries over one large character entry. - Places/<Place>/<Sub-area> - locations. Nest sub-areas (e.g. Places/Ravnstrad/The Great Hall). - Things/<Object> - discrete objects, items, gear, possessions. - Lore/<Category>/<Topic> - world lore that is not a person, place, or thing: Lore/Religion/..., Lore/Customs/..., Lore/Factions/..., Lore/Flora/..., Lore/History/... - Misc/<Topic> - ONLY when nothing above fits. Always prefer a real category first. [Discord message: https://discord.com/channels/1417099416812392641/1540712273130037298/1540712896265322568] [2026-08-22T13:29:23.702Z] Marinara: We already have folders for lorebooks. Mari should be able to create folders; we added that before. Yes, for a way for custom agents to iterate over chunks and have a backfill option (toggles when creating the custom agent that also appear in the custom agent menu in the Agents drawer in Chat Settings). The last part I don't get and doesn't make much sense. [Discord message: https://discord.com/channels/1417099416812392641/1540712273130037298/1540714507595423835] ``` </details> ## 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-21 05:58:36 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 22, 2026):

Owned by @SpicyMarinara in draft PR #5398. Implementation will stay within supported Engine tooling: lorebook folder creation, custom-agent chunked backfill controls, and explicit target selection where the existing tool contract supports it.

<!-- gh-comment-id:5381294932 --> @SpicyMarinara commented on GitHub (Aug 22, 2026): Owned by @SpicyMarinara in draft PR #5398. Implementation will stay within supported Engine tooling: lorebook folder creation, custom-agent chunked backfill controls, and explicit target selection where the existing tool contract supports it.
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#2986
No description provided.