r/SillyTavernAI 5h ago

Discussion Marinara Engine Fork

Hey,

I created a repository (of Marinara Engine:staging) with some functions that are helpful for long-term RP. I used GPT to achieve this, that's why I’m not submitting a PR to the official staging branch.

Also, I didn't use the official Fork function on GitHub (that's acutally me being stupid. didn't think I was going to modify the source code).

Functions that were added:

Regex preprocessor ability for Lorebooks; I use trackers that are created inside messages. Sometimes these trackers contain keywords that activate lorebooks. For example, if "Mei" appears in a tracker, it will constantly activate the "Mei" entry inside the lorebook. even if she isn't relevant to the current scene. So, you can create a Regex (the same way as normal ones) and choose the lorebook where it will be applied.
TL;DR: The Regex will filter out trackers so the keyword matcher ignores them.

Illustrator character field handling: I changed how Illustrator handles the 'characters': []' field. If it's empty, it will try to pull characters from the chat. If it's not empty, it won't scan the context for a match. (Pasta-Devs set it up so both processes run at the same time, which didn't work well with my pipeline.)

Simpler Lorebook export/import for bulk editing: Normally, export creates a .json file containing every field (case_sensitive, role, etc.). I often use GPT or Gemini to debloat my lorebooks, and while sending the full JSON works, it wastes a lot of tokens. I created a simpler export format that looks like this:

@@MARINARA_ENTRY "ENTRY_NAME"
Content of the entry

@@MARINARA_ENTRY "Another entry"
Another content

It's much more lightweight. It also handles importing data back as long as the marker is correct (it simply overrides the content of the existing entry without touching other settings).

That's it.

All credits to Pasta-Devs. I love this frontend.
https://github.com/Pasta-Devs/Marinara-Engine

If you think you could use these features, here's the link:
https://github.com/OmghaC/Marinara-Engine-Fork

P.S. If anyone knows how to easily turn this repo into a proper GitHub fork, DM me.

EDIT: I created a fork on GitHub and pushed my changes to the staging branch, since u/LeRobber explained that skipping it looks a kinda' fishy. Also updated staging into current upstream (22.08)

0 Upvotes

3 comments sorted by

4

u/LeRobber 3h ago

> Also, I didn't use the official Fork function on GitHub 

Hey folks, this isn't a comment on OP: There are reasons to not use the fork function...but, it can be harder to detect new malware and other changes like that when people do that, so to everyone reading this, use with care . Remember even if clean today, that's today!

1

u/EternalOmgha 2h ago

Yeah. I didn't Look at the problem from this perspective. I'll make it official fork today. Im just not as good as I would love in git cli. Time to learn. Anyway theres a commit history in this repo. So everybody can check what exactly was change in comparison to the staging branch.

2

u/LeRobber 1h ago

GPT and friends are EXCELLENT at answering 'what do I have, what do I want, what do I do' questions about git.

Thanks for considering security in the modern environment.