Conversation
Bridge mixtape agents to the Agent Client Protocol so editors and IDEs (VS Code, Zed, Neovim, JetBrains, Emacs) can use them as coding agents. The crate handles the !Send bridge between the ACP SDK (which returns !Send futures) and mixtape-core's Send + Sync Agent by running the ACP protocol loop on a LocalSet while dispatching Agent::run() via tokio::spawn(). Events flow back through mpsc channels to a spawn_local relay task that drives notifications and permission dialogs. Key components: - MixtapeAcpBuilder: configure agent factory, name, and version - MixtapeAcpAgent: implements acp::Agent trait (initialize, authenticate, new_session, prompt, cancel) - SessionManager: maps ACP sessions to dedicated Agent instances - Event conversion: AgentEvent → ACP SessionUpdate notifications - Permission bridge: routes IDE permission dialogs back to the agent's request_authorization() channel via Arc<Agent> - serve_stdio(): main entry point for stdio-based ACP servers Includes 76 unit tests, 2 doc tests, and two examples (mock and Bedrock).
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7 +/- ##
==========================================
- Coverage 88.61% 88.51% -0.11%
==========================================
Files 101 108 +7
Lines 23022 23440 +418
==========================================
+ Hits 20401 20747 +346
- Misses 2621 2693 +72 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
mixtape-acpcrate, bridging mixtape agents to the Agent Client Protocol so editors and IDEs (VS Code, Zed, Neovim, JetBrains, Emacs) can use them as coding agents!Sendbridge between the ACP SDK and mixtape-core'sSend + SyncAgent usingLocalSet+tokio::spawn(), with mpsc channels for event relayinitialize,authenticate,new_session,prompt,cancelrequest_authorization()channel viaArc<Agent>echo_agent(mock provider, no credentials) andecho_agent_bedrock(Claude Haiku 4.5 via Bedrock)Test plan
cargo test -p mixtape-acp)cargo clippy -p mixtape-acp --examples)cargo build -p mixtape-acp --examples)echo_agentexample and verify ACP handshake over stdioecho_agent_bedrockexample with AWS credentials and verify real model responses