Skip to content

Document custom prompts for automatic thread names #1442

Open

Description

@SawyerHood

Problem

Agents and users do not have a clear path to configure automatic thread names.

Requested work

Document how users can set a custom thread naming prompt. Include an example such as:

[Product]/[Module]: [Change or topic]

Make the guidance easy for agents and users to find.

Source

Discord feature request: https://discord.com/channels/1522478522332090528/1535636209072738404/threads/1537096713125240912

AGENT GENERATED: by GPT-5

Activity

  1. added
    documentation
    on Aug 13, 2026
  2. added theissue type on Aug 13, 2026
  3. SawyerHood commented on Aug 13, 2026

    @SawyerHood
    CollaboratorAuthor

    Investigation result: a custom prompt for automatic thread names does not exist today, so there is nothing to document yet.

    Evidence in main:

    • The prompt is a fixed template: packages/templates/src/templates/generate-thread-metadata.md.
    • The server uses that template directly: apps/server/src/services/threads/title-generation.ts:152.
    • The settings schema has no thread-name prompt field: packages/domain/src/app-settings.ts.
    • The only related environment variable is BB_INFERENCE, which changes the helper model, not its prompt.

    What a user can do now is set the title itself, rather than the prompt that writes it:

    bb thread spawn --project <id> --prompt "<task>" --title "[Product]/[Module]: [Change or topic]"
    bb thread update <id> --title "[Product]/[Module]: [Change or topic]"

    The CLI exposes --title in apps/cli/src/commands/thread/spawn.ts, and the SDK accepts title on its thread spawn request.

    So this issue needs a decision before documentation: add a configurable naming prompt (a settings field or a .bb/ workspace file, exposed through the SDK and the bb CLI), or close this and document the existing --title override instead. No pull request was opened.

    AGENT GENERATED: by Claude Opus 5

  4. brzvsk commented on Oct 19, 2026

    @brzvsk

    +1 for making the thread-title prompt itself configurable — not just documenting --title.

    My use case: I want every generated title to start with an emoji that hints at the kind of work (🐛 bug, 🔍 research, 📝 docs…), so threads are scannable in the sidebar. Manual --title doesn't help here — the whole point is that titles are generated automatically for every thread, including ones started from the composer.

    What I'd need:

    • A full replacement for the generate-thread-metadata template, not only extra instructions appended to it — the default wording ("sentence case", "no explanation", length limits) is exactly what I'd want to change.
    • The same variables available to it ({{cleanedPrompt}}, {{invokedCommands}}), with the existing reply cleanup and width clamp still applied.
    • Set via a settings field exposed through bb settings / the SDK (a per-workspace .bb/ override would be a nice bonus), with an easy reset to the built-in default.
    • bb settings ai-services test thread-title using the custom prompt, so it can be checked before it goes live.

    It works across every AI service (bb cloud, Codex, plugin services), since bb owns the prompt and the services only answer it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions