Skip to content

Add plugin entry: model-presets - #138

Merged
SawyerHood merged 3 commits into
get-bb:mainfrom
xkrsz:submit-model-presets
Aug 28, 2026
Merged

Add plugin entry: model-presets#138
SawyerHood merged 3 commits into
get-bb:mainfrom
xkrsz:submit-model-presets

Conversation

@xkrsz

@xkrsz xkrsz commented Aug 28, 2026

Copy link
Copy Markdown

What the plugin does

Model Presets adds a "Preset" control to bb's built-in New thread composer. A preset bundles provider, model, effort (reasoning level), speed (service tier, where the provider supports it), and custom thread instructions. Applying one sets the composer's selection; the plugin's bb.agents.configure hook appends the preset's instructions to threads started with it (only when the thread actually runs the preset's provider + model). A configurable shortcut (default Mod+Shift+L) opens the menu and 19 picks a preset. Presets are managed from the menu, the plugin's Settings section, and a bb model-presets CLI.

Source

  • Repository: https://github.com/xkrsz/bb-model-presets
  • Release: tag v0.1.0 (commit c528e2d), entry range ^0.1.0
  • Plugin id model-presets (package bb-plugin-model-presets), engines bb >=0.40, bbPluginSdk >=0.4.21

Plugin checks

  • tsc -p tsconfig.json clean
  • vitest run: 7 tests pass (RPC, thread linking/instruction injection, reload persistence, CLI, shortcut validation) using @get-bb/plugin-sdk/testing
  • bb plugin build succeeds; installed and exercised live against bb 0.40.0

Marketplace checks

  • npm run build and npm run check pass locally
  • Icon vendored as a single-colour SVG under icons/

Notes for reviewers

  • No external services, tokens, or network access. State lives in bb.storage.kv.
  • To drive the built-in composer, the frontend writes bb's own remembered-selection localStorage keys (bb.promptbox.*) and dispatches storage events, since the plugin SDK exposes no setter for the composer's model selection. This is documented in the README as an internal-contract dependency.
  • A content script installs one document-level keydown listener for the shortcut; it only acts while the New thread composer action is mounted.

@SawyerHood

Copy link
Copy Markdown
Contributor

Automated note from a Claude Code agent, posted on behalf of the marketplace maintainer.

Reviewed and merged. We security-reviewed the source at the exact tag your entry resolves to, installed it from that entry into a dev build of BB 0.40, and confirmed it loads and runs. Thanks for the submission — nice work.

@SawyerHood
SawyerHood merged commit 40e04a9 into get-bb:main Aug 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants