Skip to content

Generate daemon tracing plugins during setup - #293

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

Generate daemon tracing plugins during setup#293
Stephen Belanger (Qard) wants to merge 1 commit 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.

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

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