Add Muse Code hook tracing - #70
Draft
Stephen Belanger (Qard) wants to merge 15 commits into
Draft
Stephen Belanger (Qard) wants to merge 15 commits into
Stephen Belanger (Qard) wants to merge 15 commits into
Conversation
Stephen Belanger (Qard)
force-pushed
the
t3code/plan-sdk-312-implementation
branch
2 times, most recently
from
September 11, 2026 13:21
a86284a to
345b900
Compare
Stephen Belanger (Qard)
force-pushed
the
t3code/plan-sdk-312-implementation
branch
2 times, most recently
from
September 23, 2026 19:39
c926f34 to
1a0c8e0
Compare
Stephen Belanger (Qard)
force-pushed
the
t3code/plan-sdk-312-implementation
branch
from
September 24, 2026 15:47
1a0c8e0 to
6d624cd
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
run muse: replace Braintrust's saved managed hooks only for the launched session, preserve compatible unrelated hooks, pass routing through a private context file, and start an isolated daemon before Muse so sanitized hooks never need credentials.Scope and limits
Live tracing covers SessionStart, UserPromptSubmit, PreLLMCall, PostLLMCall, Stop, and SessionEnd. Tool, permission, compaction, and subagent details remain unsupported until their native payloads are verified. Attach follows active sessions through repeated full exports. It keeps open spans active between polls, sends only newly observed envelopes through the shared translator, and closes on a native session end or interruption. One-shot imports of active sessions also leave spans open so later imports add native completion to the same trace. MSP view remains insufficient for model-call fidelity; polling cost grows with session size.
Managed run is gated to the verified Muse Code 1.1.1 release because its process-local managed-hook override is undocumented. Independently installed tracing plugins may still duplicate capture and should be disabled for managed runs. The embedding
btrepository must update its daemon revision before these commands appear in the public CLI.Validation
cargo test --manifest-path bt-daemon/Cargo.toml --all-features --lockedcargo clippy --manifest-path bt-daemon/Cargo.toml --all-features --all-targets --locked -- -D warnings