docs: Add section about keybinding for external agent threads (#42772)

Release Notes:

- N/A
This commit is contained in:
Danilo Leal
2025-11-14 19:54:52 -03:00
committed by GitHub
parent 305206fd48
commit b3097cfc8a
+25
View File
@@ -206,6 +206,31 @@ This can be useful if you're in the middle of developing a new agent that speaks
It's also possible to specify a custom path, arguments, or environment for the builtin integrations by using the `claude` and `gemini` names.
### Custom Keybinding For Extension-Based Agents
To assign a custom keybinding to start a new thread for agents that were added by installing agent server extensions, add the following snippet to your `keymap.json` file:
```json [keymap]
{
"bindings": {
"cmd-alt-n": [
"agent::NewExternalAgentThread",
{
"agent": {
"custom": {
"name": "My Agent",
"command": {
"command": "my-agent",
"args": ["acp"]
}
}
}
}
]
}
},
```
## Debugging Agents
When using external agents in Zed, you can access the debug view via with `dev: open acp logs` from the Command Palette. This lets you see the messages being sent and received between Zed and the agent.