ACP (Agent Client Protocol) bridge for AdaL CLI — enables AdaL as a coding agent inside Zed.
This bridge implements the Agent Client Protocol over stdio (newline-delimited JSON-RPC 2.0). When Zed sends a prompt, the bridge spawns adal -q "..." -o stream-json --yolo and translates AdaL's output events into ACP session updates.
Zed ←→ (stdio/JSON-RPC) ←→ adal-acp ←→ (spawn) ←→ adal CLI
- Node.js ≥ 18
- AdaL CLI installed (
npm i -g adal-cliorbrew install adal)
cd adal-acp
npm installAdd to your Zed settings.json (cmd+,):
{
"agent_servers": {
"adal": {
"type": "custom",
"command": "node",
"args": ["/Volumes/990Pro2TB/OtherProjects/adal-acp/index.mjs"],
"env": {
"ADAL_BIN": "/opt/homebrew/bin/adal"
}
}
}
}Or, if you npm link the package globally:
{
"agent_servers": {
"adal": {
"type": "custom",
"command": "adal-acp"
}
}
}| Variable | Default | Description |
|---|---|---|
ADAL_BIN |
/opt/homebrew/bin/adal |
Path to AdaL CLI binary |
ADAL_CWD |
Zed's working directory | Working directory for AdaL |
node test.mjs| ACP Method | Status |
|---|---|
initialize |
✅ |
session/new |
✅ |
session/prompt |
✅ |
session/cancel |
✅ |
authenticate |
✅ (no-op) |
session/set_mode |
✅ (no-op) |
session/load |
❌ (not yet) |
session/resume |
❌ (not yet) |
MIT