π‘ Feature Request: System Prompt Refactor β Per-Mode Tools, Mode Visibility, and Prompt Slimming #1300
shariqriazz
started this conversation in
1. Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
I've been working on a major refactor of how the system prompt is generated. The current structure works, but it's bloated and too rigid once you start building real multi-agent workflows.
π§± Current Prompt Structure:
Right now, every mode (built-in or custom) inherits a shared structure like this:
π» Key Issues:
1. Tools are grouped, not granular
You could uncheck groups like "Use Browser", but you couldnβt assign individual tools to specific modes. Every tool in a group was all or nothing.
2. Hardcoded Objective / Capabilities / Guidelines
These were globally injected into every mode β even if the mode didnβt use tools or had a different purpose. There was no way to override or slim them down per mode.
3. Mode visibility was global
Every mode (even custom ones) was automatically added to the "Other Available Modes" section of every prompt β no control, no filtering.
β Refactor Details:
π οΈ 1. Per-Mode Tool Selection
Each mode now selects individual tools it needs β no more depending on hardcoded groups.
If a tool is enabled, its usage instructions and capabilities are pulled into the prompt.
If it's not, it's completely excluded.
βοΈ 2. Custom Objectives + Capabilities in Instructions
The old globally shared objectives, capabilities, and tool usage guidelines are now removed.
Modes now define their own objective and purpose using their Custom Instructions field.
π» 3. Per-Mode Visibility (Other Available Modes)
Modes can now define exactly which other modes they want visible.
So if you want
ask
to only seeorchestrator
, you can do that.No more auto-injection of everything.
π Results:
This one change unlocks a ton of flexibility while making the prompt pipeline leaner and more maintainable.
Beta Was this translation helpful? Give feedback.
All reactions