Steer agents to the tracedecay CLI when MCP transport fails#177
Merged
Conversation
|
3bd5a10 to
cbe216b
Compare
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
using-the-cliskill to both plugin bundles (byte-identical for the Codex parity test) covering CLI discovery (tracedecay toollists tools,tracedecay tool <name> --helpshows parameters), invocation flags (--json,--args,--project,@filevalues), when to switch, and guardrails against querying.tracedecay/*.dbdirectly or abandoning tracedecay on transport failure.EMBEDDED_PLUGIN_FILES,CODEX_EMBEDDED_PLUGIN_FILES, and theCURSOR_PLUGIN_SKILLSsession-steering index.serverInstructions, both plugin READMEs, and both plugin manifest descriptions.cli_fallbackdata field to the generic MCP tool-execution error response so a failing call itself points at the equivalent CLI command.Motivation: past-session transcripts show agents falling back to raw SQLite queries against
.tracedecay/.tokensavedatabases or dropping tracedecay entirely when the MCP server errors or times out, even though every MCP tool is also exposed astracedecay tool <name>with built-in help discovery.Test plan
cargo check --all-targetscleancargo clippy --all-targetscleancargo test --lib agents::(135 passed — bundle coverage, Codex skill parity, skill-index sync)cargo test --lib hooks::(23 passed)cargo test --test plugin_skill_contract_test --test hooks_test --test mcp_server_test --test mcp_handler_test— all pass except two pre-existing flakymcp_handler_testcases (hermes_skill_bridge_mcp_tool_reads_host_owned_profile_state,message_search_reads_profile_sharded_session_db) that race on env vars under full parallelism and pass in isolation