sourcebot icon indicating copy to clipboard operation
sourcebot copied to clipboard

[FR] Support Custom Instructions per LLM Configuration (Multiple Personas on Same Provider)

Open TheS1ngularity opened this issue 7 months ago • 1 comments

Request support for defining custom instructions per LLM configuration, allowing multiple logical “personas” (e.g. engineering vs product) to be configured against the same underlying LLM provider and API key. This would enable teams to reuse a single LLM backend while offering different response styles through Sourcebot (web UI and MCP).

Problem Statement Sourcebot supports configuring one or more language models, but in practice:

Teams often want multiple response styles, e.g.: -Engineering‑focused (code‑level, file paths, implementation details) -Product / business‑focused (high‑level, conceptual, minimal code)

These styles typically use: -the same LLM provider -the same API key -the same underlying model

Example:

"models": [ { "name": "engineering", "provider": "openai", "baseUrl": "...", "model": "...", "apiKey": { "env": "LLM_API_KEY" }, "instructions": "Answer as an engineer with detailed code references..." }, { "name": "product", "provider": "openai", "baseUrl": "...", "model": "...", "apiKey": { "env": "LLM_API_KEY" }, "instructions": "Answer at a high level for non-engineering audiences..." } ]

TheS1ngularity avatar May 01 '26 11:05 TheS1ngularity

@brendan-kellam can you assign me this issue

MauryaQbit avatar Sep 10 '26 17:09 MauryaQbit