Preservere

Get it for macOS

Switches a bb thread to the next model in your preference chain when a provider's content filter stops it.


Preservere keeps a thread going when a provider's content filter stops it. You list the models you want in order of preference, and when a turn fails with a content filter error, Preservere moves the thread to the best model in that list it has not tried yet and runs the failed turn again. If that model is filtered too, it moves on to the next one, until the list runs out.

What you get

  • Preference chains under Settings → Preservere. Add model opens bb's own provider and model picker; drag the handles to change the order. Add more chains for different kinds of work: a thread uses the first chain that lists its model.
  • Switching on the same provider. The thread's model changes and the failed turn runs again, with no new message in the timeline. The reasoning level stays when the new model supports it.
  • Handoff to another provider. When the next model lives elsewhere, Preservere starts a new thread in the same workspace, with the same parent and section, prompted to continue from the stopped one, the way bb's own "Hand off to new thread" does.
  • No loops. A model counts as tried once it was filtered on a thread, under every id it has: amazon-bedrock/us.anthropic.claude-opus-5-5 on Pi and claude-opus-5-5 on Claude Code are the same model, so Preservere never offers it again on that thread.

What counts as a content filter error

A failed turn counts when the provider classifies the failure as policy, such as Codex's "This content was flagged for possible cybersecurity risk", or when its error text matches a pattern you can change, by default content[_ -]?filter|flagged for possible, which catches Bedrock's content_filtered stop as Pi reports it. Overloads, rate limits and dropped connections are left to bb's own retry plugins.

How it picks the next model

Each row is either a model you picked, pinned to its provider, or a model name such as opus-5.5 that matches any provider. When the thread's own provider offers the next model, the thread stays there, on the variant closest to its current one, so a thread on a US Bedrock model stays in the US region. Only when its provider lacks the model does Preservere hand off to the provider the row names.

Commands

bb preservere chains                 # the chains, one per line
bb preservere chains set '<chains>'  # replace them
bb preservere resolve [thread]       # what each entry resolves to from a thread
bb preservere status [thread]        # tried models and switches
bb preservere reset [thread]         # let the chain start over

Preservere needs no account or API key. It reads thread events and provider model lists from your bb server and writes nothing outside it. Source and details: https://github.com/ai-ecoverse/bb-preservere

More in Agents & Providers 100

Add, choose, configure, route, or coordinate who runs a thread.

View all