mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #232] [Feature]: Oracle agent — let characters reference live web facts via <search> triggers #89
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#89
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 @Beherit79 on GitHub (Apr 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/232
What problem does this solve?
Right now, characters are effectively stuck at the point where their card/lore was written.
If a user wants to roleplay (or just CONVO - as i'm on it =^^=) around something current “what’s on at the cinema this weekend?”, “is there a rugby match this Sunday?”, “what are the latest patch notes for X?”, the character has no good way to answer. It either invents something plausible, or breaks immersion by saying it does not know.
The existing Knowledge Retrieval agent only searches the local lorebook, so there is currently no path for live information.
The workaround is to manually edit a lorebook entry every time the user wants the character to know something current. That works, but it is tedious and reverses the normal storytelling flow: you have to write the answer before asking the question.
Proposed solution
A new built-in Oracle agent, opt-in, that fires when the user types
<search>topic</search>inside a chat message.The flow is:
<search>tags from the user message before saving / before the main LLMsees it.
<web_search>and appended to the user message before the main generation,so the character answers from real material.
"committed to" such as choices, preferrenced or dismissed options and saves that as a lorebook entry tagged
web-research. Thetakeaway is saved, not the raw web facts and urls, so the lorebook stays "relevant".
Configuration would lives under Settings → Connections → Oracle with options, ex:
Alternatives considered
Slash command
/web_search query --saveThis probably fits best with the existing slash-command system in packages/client/src/lib/slash-commands.ts, alongside /roll, /sys, /narrator, /scene, etc.
advantages:
I still think the inline tag fits this specific use case better, because Oracle is not just a lookup utility. It is meant to augment a specific turn.
With a slash command, the flow tends to become:
At that point, the results still need to get into the character’s context somehow. Either the app re-injects them into the next user message, generates some kind of filler response, or asks the user to copy-paste the findings.
So i prefered to "search" using the message that prompts the character to use it:
That said, both can coexist. A later /web_search command could call the same executeOracle() backend for users who want a plain lookup outside an in-character message
Generic tool calling
Letting the model decide when to search would be more automatic, but I do not think it is the right MVP.
It makes behavior harder to debug: did the model search or not? It also makes every message a possible search candidate, which has cost and latency implications. It is also less reliable for small local models that may not follow tool schemas consistently.
Extending Knowledge Retrieval
KR currently read-only against the local lorebook. Adding web access there would mix two very different pipelines: local retrieval and live external search. They have different cost, latency, failure modes, and privacy expectations.
Manual lorebook entry
This is the current workaround. It works, but it does not scale and it breaks the flow of roleplay
Additional context
docs/ORACLE.mdcovers the full flow + design decisions.Template check
@SpicyMarinara commented on GitHub (Apr 28, 2026):
Waiting for PR.