lex-acp
Bidirectional Agent Communication Protocol (ACP) adapter for LegionIO.
Exposes Legion agents via ACP and consumes external ACP agents. Enables code editors to connect to Legion as a coding agent via stdio.
Features
- JSON-RPC 2.0 protocol over stdio for editor integration
- Publish an ACP-compatible
/.well-known/agent.jsoncard via the Legion REST API - Submit tasks to external ACP agents and register them in the mesh
- Periodic discovery actor scans configured agent URLs every 300 seconds
- Task translation between ACP and Legion formats
Usage
legion acpConfigure your editor:
{
"agent": "legion",
"command": ["legion", "acp"],
"transport": "stdio"
}Configuration
{
"acp": {
"agents": [
"https://agent-1.example.com",
"https://agent-2.example.com"
]
}
}License
MIT