Skip to content

SDK: Expose thread list and update APIs for plugin development #1191

Closed

Description

@davekilleen

We attempted to build a plugin that auto-generates punchy names for threads using Claude Haiku. The feature would help keep thread rails organized and scannable. However, we hit three SDK limitations that made it impossible:

  1. No thread listing API — Can't query for threads in a project to implement polling-based naming. bb.sdk.projects.list() exists but bb.sdk.threads.list() does not.

  2. No thread metadata update API — Can't update a thread's title/name after creation. There's no bb.sdk.threads.update({ title }) method.

  3. Timing issue with event hooks — thread.created fires before the user's message is populated. thread.active fires at an inopportune moment (interferes with thread execution). No hook fires at "message is available + thread is ready to be modified."

What would unblock this:

  • bb.sdk.threads.list(projectId) — to poll for threads needing names
  • bb.sdk.threads.update(threadId, { title }) — to set the generated name
  • Or: a better event hook like thread.messagesReady that fires after the first message lands but before the thread starts processing

This would enable not just auto-naming, but many other plugin use cases that need to react to new threads with their content available.

Activity

  1. SawyerHood commented on Aug 8, 2026

    @SawyerHood
    Collaborator

    We do actually have apis for this there is just some documentation drift. Opened a PR to get this back in sync

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions