mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6561] [Feature]: Configurable Agent Execution Order / Agent Queue #3676
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#3676
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 @scavru on GitHub (Sep 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6561
Originally assigned to: @SpicyMarinara on GitHub.
It would be useful to have a configurable agent execution order in the chat settings for Conversation, Roleplay, and Game modes.
Currently, when multiple agents are enabled, users may want more control over which agents run first and which agents process the result of previous agents.
I suggest adding an Agent Queue / Execution Order section to the chat settings where users can arrange enabled agents in a custom order.
For example:
My Custom Agent
Knowledge Retrieval
Lorebook Keeper
World State
Narrative Director
Prose Guardian
The important part is that the order should be user-configurable, including both built-in and custom agents.
Expected behavior
Drag-and-drop agents to change their execution order.
Built-in and custom agents can be freely mixed.
The queue applies independently to each chat.
Optionally provide a global/default queue that new chats inherit.
Disabled agents are skipped.
If an agent produces output/state that is used by another agent, the next agent in the queue should receive the updated context/state.
Ideally, the UI should show which phase/stage each agent belongs to, while still allowing the user to control the order where technically possible.
Example use case
A user may have a custom agent that modifies or prepares context before the built-in agents process it:
Custom Context Agent → Knowledge Retrieval → Lorebook Keeper → World State → Narrative Director
Another user may want the built-in processing first and their custom agent as the final post-processor:
Knowledge Retrieval → Lorebook Keeper → World State → Narrative Director → Custom Post-Processor
This would make custom agents significantly more flexible and allow users to build their own agent pipelines without having to change the underlying agent implementation.
UI idea
In Chat Settings:
Agents → Execution Order
☰ Custom Context Agent
☰ Knowledge Retrieval
☰ Lorebook Keeper
☰ World State
☰ Narrative Director
with drag-and-drop reordering and an option such as Reset to default order.
This could work particularly well for Conversation, Roleplay, and Game modes, since Marinara already supports different agent-enabled workflows across these modes.
@SpicyMarinara commented on GitHub (Sep 23, 2026):
Maybe in the future, for now, agents on the same pipeline get grouped together anyway as one call, so there is no point in deciding the queue.
@scavru commented on GitHub (Sep 23, 2026):
I’d still really like to have this level of control over the agent order.
For example, in my use case I may have a pipeline like:
Clothing consistency agent → selfie prompt modification agent → image generation agent → message cleanup agent
These agents are not interchangeable and can’t really be treated as a single grouped call, because the output of one agent is specifically meant to become the input for the next one.
I understand having a default order for the built-in agents, and that should definitely remain the default. I’m mainly suggesting an option to override that order when custom agents are involved.
So ideally:
built-in agents have the default order you define;
users can reorder agents in chat settings if they need to;
custom and built-in agents can be mixed in the same pipeline;
the default order remains unchanged unless the user explicitly customizes it.
For more complex workflows, having explicit sequential execution would make the agent system much more useful.