Skip to content

Add live transcript attach and managed agent runs - #6

Merged
Stephen Belanger (Qard) merged 6 commits into
mainfrom
agent/trace-attach-run
Aug 6, 2026
Merged

Add live transcript attach and managed agent runs#6
Stephen Belanger (Qard) merged 6 commits into
mainfrom
agent/trace-attach-run

Conversation

@Qard

@Qard Stephen Belanger (Qard) commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add live transcript attach and managed agent runs for Codex and Claude
  • inject invocation-local hooks while preserving normal Codex hook trust
  • isolate each managed run with a complete non-secret invocation selection instead of inheriting or rewriting persistent setup settings
  • keep profile selection optional; an omitted profile resolves through the daemon host's default
  • support project, typed object destination, and parent-span destination selection
  • reject a managed run without a destination before launching the coding agent

Route initialization contract

bt trace setup persists the selected non-secret SessionRoute in the shared hook settings file. Existing agent sessions continue to use that setup route.

bt trace run selects a route interactively or from flags and supplies traceToBraintrust: true plus that immutable route through BT_TRACE_INVOCATION_SETTINGS to only the launched process tree. Its generated hook command remains identical to the setup hook. Concurrent managed runs can therefore use different profiles, organizations, projects, experiments, or parent spans without changing setup or one another.

Hooks pass only profile, organization, and destination selection. The daemon host resolves and refreshes credentials. Malformed invocation settings fail closed for tracing instead of falling back to the persistent route.

Validation

  • cargo test --manifest-path bt-daemon/Cargo.toml --all-features --locked
  • cargo clippy --manifest-path bt-daemon/Cargo.toml --all-targets --all-features --locked -- -D warnings
  • cargo fmt --manifest-path bt-daemon/Cargo.toml --check
  • git diff --check
  • rebased OpenCode branch: make validate-opencode
  • rebased Pi branch: make validate-pi

Release impact

No package is published, no marketplace repository is deployed, and no tag or GitHub release is created.

@Qard
Stephen Belanger (Qard) force-pushed the agent/trace-import-destinations branch from 85816df to 26aa3b8 Compare August 4, 2026 15:40
@Qard Stephen Belanger (Qard) changed the title Add live transcript attach and managed Codex runs Add live transcript attach and managed agent runs Aug 4, 2026
@Qard
Stephen Belanger (Qard) changed the base branch from agent/trace-import-destinations to main August 4, 2026 15:40
@Qard
Stephen Belanger (Qard) force-pushed the agent/trace-attach-run branch 2 times, most recently from 5599e93 to 3726fe8 Compare August 4, 2026 19:49
@Qard
Stephen Belanger (Qard) changed the base branch from main to agent/multi-profile-daemon-auth August 5, 2026 18:10
Base automatically changed from agent/multi-profile-daemon-auth to main August 6, 2026 15:06
@Qard
Stephen Belanger (Qard) merged commit 2194c01 into main Aug 6, 2026
11 of 13 checks passed
@Qard
Stephen Belanger (Qard) deleted the agent/trace-attach-run branch August 6, 2026 15:44
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