Current collected state Current
Observed since 21 Oct, 11:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Async Python SDK for the AI-Native VS Code Bridge — drive VS Code from agents via JSON-RPC over WebSocket.
Async Python SDK for the AI-Native VS Code Bridge — drive VS Code from agents via JSON-RPC over WebSocket.
pip install ai-native-bridge
Or for development:
pip install -e ./python-sdk
import asyncio
from ai_native_vscode_bridge import BridgeClient
async def main():
client = BridgeClient.from_workspace(port=57110)
# Check connectivity
pong = await client.call("bridge.ping")
print(pong) # {"ok": true, "protocol": "v1-draft"}
# List all diagnostics (errors & warnings)
diags = await client.call("diagnostics.list")
for file_entry in diags.get("files", []):
print(f"{file_entry['uri']}: {len(file_entry['diagnostics'])} issues")
asyncio.run(main())
client.call() opens a fresh WebSocket (simple + robust).BridgeEventStream for real-time diagnostics, file changes, debug events.GeneratedBridgeClient with typed methods for every RPC endpoint.$BRIDGE_TOKEN, --token-file, or .vscode/bridge.token.from ai_native_vscode_bridge import BridgeEventStream
async def watch():
async with BridgeEventStream.from_workspace(
events=["diagnostics.changed", "doc.saved"]
) as stream:
async for event in stream:
print(event)
| Class | Purpose |
|---|---|
BridgeClient | One-shot async JSON-RPC calls |
GeneratedBridgeClient | BridgeClient + auto-generated method wrappers |
BridgeEventStream | Persistent WebSocket for event subscriptions |
BridgeError | Structured error with .code, .message, .data |
Apache-2.0
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 22 Feb 2026 | 5 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:845174f093bb1b1390742121a3b61e649f84c15fe1eafcd5c098267c72d8c8ba