Implement Jupyter kernel for Zed Agent Client Protocol (ACP)#1
Draft
Copilot wants to merge 5 commits into
Draft
Conversation
Co-authored-by: jimwhite <890972+jimwhite@users.noreply.github.com>
Co-authored-by: jimwhite <890972+jimwhite@users.noreply.github.com>
Co-authored-by: jimwhite <890972+jimwhite@users.noreply.github.com>
Co-authored-by: jimwhite <890972+jimwhite@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Zed Agent Client Protocol client as Jupyter kernel
Implement Jupyter kernel for Zed Agent Client Protocol (ACP)
Oct 19, 2025
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.
This PR implements a complete Jupyter kernel that acts as a client for the Zed Agent Client Protocol (ACP), enabling users to interact with AI coding agents directly from Jupyter notebooks using notebook cells as a chat interface.
Overview
The Agent Client Kernel allows seamless interaction with ACP-compliant agents through a natural notebook-based chat interface. Users can start agents, send messages, and receive responses all within Jupyter, with full support for agent dialogs and file system interactions.
Implementation
Core Components:
agent_client_kernel/kernel.py): Extendsipykernel.kernelbase.Kernelto provide full Jupyter integration with JSON-RPC communication over stdin/stdout!start-agentand!stop-agentfor agent lifecycle managementHow It Works:
Features
✅ JSON-RPC 2.0 Protocol: Full support for ACP communication over stdin/stdout
✅ Chat Interface: Natural conversation flow in notebook cells
✅ Agent Management: Start/stop agents with simple commands
✅ Thread-Safe: Background thread handles agent output without blocking
✅ Error Handling: Comprehensive error messages and timeout handling
✅ Extensible: Easy to add support for additional ACP methods
Testing
The implementation includes comprehensive testing:
All tests pass successfully ✅
Documentation
Installation
Usage Example
Once installed, create a new Jupyter notebook and select "Agent Client Protocol" as the kernel. The kernel supports:
Compatibility
This implementation provides a solid foundation for agent interaction in Jupyter and can be extended to support additional ACP features like tool approvals, file system operations, and rich media output.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.