Skip to content

Generate daemon tracing plugins during setup - #293

Draft
Stephen Belanger (Qard) wants to merge 20 commits into
agent/bt-daemon-integrationfrom
agent/generated-trace-plugins
Draft

Generate daemon tracing plugins during setup#293
Stephen Belanger (Qard) wants to merge 20 commits into
agent/bt-daemon-integrationfrom
agent/generated-trace-plugins

Conversation

@Qard

@Qard Stephen Belanger (Qard) commented Jul 31, 2026

Copy link
Copy Markdown

Summary

This is a temporary bridge stacked on #287. Until the published Codex and Claude plugins are converted to thin daemon hooks, bt trace setup now generates local agent marketplaces whose hook manifests invoke bt trace hook directly.

The generated plugin trees live under bt's global configuration directory and are registered through each agent's supported plugin manager. Setup refreshes an earlier generated installation on every run. It removes the legacy Codex tracing plugin and disables the legacy Claude tracing plugin when present so a session cannot emit duplicate traces, while leaving the official marketplaces, unrelated plugins, and existing tracing settings intact.

Once the daemon-based plugin artifacts are published, the follow-up cutover can switch setup back to installing those official marketplace plugins.

Validation

  • cargo test --locked (full suite passed)
  • cargo check --locked
  • Real local install with Codex CLI 0.146.0 using an isolated temporary home
  • Real local install with Claude Code 2.1.212 using an isolated temporary home

cargo clippy --all-targets -- -D warnings remains blocked by 12 existing collapsible_match warnings in unrelated datasets, SQL, and traces code under the current Rust toolchain.

Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Add bt agents setup codex and bt agents setup claude. The commands use each agent's plugin manager to install the currently published Braintrust tracing plugin without configuring the unreleased embedded daemon.

Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Create the shared tracing settings file when missing and allow --project to select the trace project. Existing settings, including legacy authentication fields, are preserved unchanged so current published plugins continue to work.

Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Point bt at the daemon PR commit that restores src to main, keeping the existing published plugin runtimes independent from the daemon-capable CLI release.

Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Generate local Codex and Claude plugin marketplaces that invoke bt trace hook directly. Replace prior generated installations on setup and disable or remove legacy tracing plugins to avoid duplicate spans while preserving unrelated agent configuration.

Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
@github-actions

Copy link
Copy Markdown
Contributor

Latest downloadable build artifacts for this PR commit e5ccd69adaef:

Available artifact names
  • artifacts-build-global
  • artifacts-build-local-x86_64-apple-darwin
  • artifacts-build-local-aarch64-pc-windows-msvc
  • artifacts-build-local-x86_64-pc-windows-msvc
  • artifacts-build-local-x86_64-unknown-linux-gnu
  • artifacts-build-local-aarch64-apple-darwin
  • artifacts-build-local-x86_64-unknown-linux-musl
  • artifacts-build-local-aarch64-unknown-linux-gnu
  • artifacts-plan-dist-manifest
  • cargo-dist-cache

@Qard
Stephen Belanger (Qard) force-pushed the agent/bt-daemon-integration branch from def3be2 to 8199199 Compare August 9, 2026 17:48
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.

1 participant