buzz
buzz copied to clipboard
Feature Request: Support for custom ACP harnesses with model listing and reliable connection management
Background
Buzz Desktop supports custom ACP (Agent Client Protocol) harnesses via the acp_command field in managed-agents.json. This allows users to connect agents to external ACP bridges like Claude Code, Codex, or custom LLM providers. However, the current implementation has significant gaps that prevent custom harnesses from working reliably:
- No model listing — Custom ACP agents cannot expose available models to Buzz Desktop, leaving the model dropdown empty.
- No graceful connection handling — Agents die after ~5 seconds when the ACP bridge returns errors on follow-up requests.
- Config corruption on harness changes — Changing a harness overwrites the entire config, creating duplicate entries and losing agents.
- No fallback model configuration — Users cannot manually specify model IDs when auto-detection fails.
These gaps make custom ACP harnesses (especially Claude Code via subscription credits) unusable in practice.
Proposed Changes
1. Add listModels method to ACP protocol
File: src/schemas/agent-client-protocol/schema.json (or equivalent)
Add a new method to the ACP schema:
{
"name": "listModels",
"method": "agent/listModels",
"request": {
"type": "object",
"properties": {}
},
"response": {
"type": "object",
"properties": {
"models": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"name": { "type": "string" },
"capabilities": {
"type": "object",
"properties": {
"image": { "type": "boolean" },
"audio": { "type": "boolean" },
"contextWindow": { "type": "integer" }
}
}
}
}
}
}
}
}