mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6977] [Feature]: Configurable agent batching (un-hardcode) #3903
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#3903
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 @usagirei on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6977
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Currently, agent batching maintains a list of known agents that should not be batched, and applies some heuristics based on its capabilities or output type to determine it otherwise. (
agent-executor.ts::shouldRunAgentIndividually)There's no direct way to either globally disable agent batching, or tell a custom agent to not be batched.
Locally ran models, especially, can often lose track of what they're supposed to do when batched, and produce outputs containing information they should not be privy to, pulled from the batched context.
Proposed solution
Max Parallel Agent Jobssetting, that seems to controls parallel requests of batch agents, not how many agents can be in a batchAlternatives considered
Additional context
After this, the agents in the hardcoded batching blacklist could be shipped with the do-not-batch setting active instead of being hardcoded.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 2, 2026):
Is there a specific reason why you don't want to batch them together? If you want to use different connections for different agents, agents assigned to different connections will not be batched together. Otherwise, separating the calls will greatly increase token use and response wait time.
@usagirei commented on GitHub (Oct 2, 2026):
Like i said in the initial request:
A locally ran model hallucinating and mixing instructions, like custom tracker creating fields with world tracker stuff and vice versa
For a locally ran model, token use and response time are meaningless, I'm not getting billed extra for running an extra request on my own GPU.
And in fact I'd be saving time by not having to re-run the agents and hopefully get a correct response the second time.
It's a minor change, and as a hack you can toggle the "previous output context" or "trigger lorebook entry" and untick the chat active lorebooks, both introduce unnecessary side effects that could be solved by a toggle
It would be just standardizing it for custom agents, that as the comment in shouldRunAgentIndividually says
@SpicyMarinara commented on GitHub (Oct 2, 2026):
I can add a toggle in Agents editors that lets you group the request with others if it's sent on the same generation route and connection. It's a queuing system that could be problematic if you're running consecutive generations on one model; I suppose the order doesn't matter much, but it still needs to exist.
@usagirei commented on GitHub (Oct 2, 2026):
Yeah, the main pain point is just preventing some (custom) agents to get batched when they decide to ignore instructions / take stuff from other batched agents for the ride - the connection / max agents per batch is of minor / unnecessary importance compared to it
@SpicyMarinara commented on GitHub (Oct 3, 2026):
This is in staging now with #6991, and it ships in the next release. The Agent editor has a Share requests with other agents switch under Connection Override. Turn it off and that agent gets its own request, while the other agents on the connection still share theirs. Agents that always run alone (Illustrator, Beholder, agents that use Previous output, and so on) show it as off and locked. The global and per-connection batching settings are out of scope for this one.