You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Per-thread system-level instructions longer than 4096 characters for role-based plugin workflows #6024
Plugins that run role-based workflows need a way to give a thread a long, stable system-level instruction (a "role prompt") that is not part of the user's first message. Today the only system-level channel is bb.agents.configure() → instructions, which is capped at 4096 characters (and silently truncated, see #5565). Real role prompts are larger, so plugins fall back to putting the role into the first user message.
Use case
Our plugin (NeuroBlago) spawns threads for roles: librarian, orchestrator, synthesizer, risk analyst, auditor, planner, panel roles. Each role is a Markdown file the owner edits, between ~6 KB and ~16 KB (3–8k characters, Cyrillic). Because they do not fit in 4096 characters, the plugin sends task + role prompt as the first user message and hides the role block in the chat with a content script.
Problems with that workaround:
The role is user-turn text, not system-level instruction, so it carries less weight and competes with the task in the same message.
Message order becomes a UI trade-off: BB truncates long messages in the timeline, so to keep the task visible we put it first and the role last, while for the model the role should come first and the task last.
The plugin needs a fragile content script that parses rendered markdown to collapse the role block.
On resume/compaction the role lives in conversation history, not in the session configuration.
Allow a per-thread system prompt at spawn (thread spawn / SDK createThread({ systemPrompt })), stored with the thread and re-applied on resume, visible to the owner in thread details but not in the timeline, or
Let configure() return a reference to a file/skill that the provider loads as system-level instructions without the 4096 cap.
Option 2 is the most generally useful for custom workflows: any plugin or user could start a thread "as" a role without polluting the conversation.
Priority: Medium — meaningful workflow limitation with an existing workaround.
Effort: High — persistent per-thread instruction support requires API and lifecycle design across thread creation and provider sessions.
Labels:plugins, threads
This requests expanded instruction capabilities; the separate silent-truncation defect is already tracked in #5565. No existing classification values were replaced. Final Type verified as Feature, so bug reproduction/reporting and a fix PR were skipped; implementation requires a product/API decision.
Fixed by #7050: configure() instructions now allow up to 32,768 characters, enough for your role prompts. For a per-thread role, spawn with pluginMetadata: { role: "librarian" } and return that role's prompt from configure() using context.pluginMetadata.role. Silent truncation past the limit is tracked in #5565.
Activity
bb-slop-cop commentedon Oct 21, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied the missing classifications:
plugins,threadsThis requests expanded instruction capabilities; the separate silent-truncation defect is already tracked in #5565. No existing classification values were replaced. Final Type verified as Feature, so bug reproduction/reporting and a fix PR were skipped; implementation requires a product/API decision.
ymichael commentedon Dec 1, 2026
Fixed by #7050:
configure()instructions now allow up to 32,768 characters, enough for your role prompts. For a per-thread role, spawn withpluginMetadata: { role: "librarian" }and return that role's prompt fromconfigure()usingcontext.pluginMetadata.role. Silent truncation past the limit is tracked in #5565.