Skip to content

Mihai-Codes/adal-acp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adal-acp

ACP (Agent Client Protocol) bridge for AdaL CLI — enables AdaL as a coding agent inside Zed.

How it works

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

Setup

Prerequisites

  • Node.js ≥ 18
  • AdaL CLI installed (npm i -g adal-cli or brew install adal)

Install

cd adal-acp
npm install

Configure Zed

Add 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"
    }
  }
}

Environment Variables

Variable Default Description
ADAL_BIN /opt/homebrew/bin/adal Path to AdaL CLI binary
ADAL_CWD Zed's working directory Working directory for AdaL

Test

node test.mjs

Protocol Support

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)

License

MIT

About

ACP bridge for AdaL CLI — enables AdaL as a coding agent in Zed editor

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors