Skip to content

feat: allow disabling Braintrust OpenCode tools#15

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi/sdk-3-opencode-plugin-allow-tracing-without-exposing-braintrust
Jul 6, 2026
Merged

feat: allow disabling Braintrust OpenCode tools#15
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi/sdk-3-opencode-plugin-allow-tracing-without-exposing-braintrust

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

resolves https://linear.app/braintrustdata/issue/SDK-3/opencode-plugin-allow-tracing-without-exposing-braintrust-tools

Add enable_tools to control Braintrust tool registration.

  {
    "trace_to_braintrust": true,
    "enable_tools": false
  }

Env equivalent:

  BRAINTRUST_OPENCODE_ENABLE_TOOLS=false

Add an enable_tools config option and BRAINTRUST_OPENCODE_ENABLE_TOOLS env var so tracing can remain enabled without registering Braintrust tools. Avoid initializing the Braintrust client when tracing and tools are both disabled, and document the new option.

Add config-loader and plugin registration tests for defaults, config/env overrides, disabled tools, and isolated global config behavior.

@realark Andrew Kent (realark) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Long-term we probably just want to publish two plugins since these features (tracing and tools) aren't strictly related to each other. This is a reasonable mitigation in the meantime though

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) merged commit 2576b8f into main Jul 6, 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