Skip to content

Commit f2fea62

Browse files
authored
docs: add zed agent profile instructions (#183)
Signed-off-by: Connor Braa <connor@dagger.io>
1 parent a111723 commit f2fea62

File tree

1 file changed

+51
-2
lines changed

1 file changed

+51
-2
lines changed

docs/agent-integrations.mdx

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,60 @@ Then configure the Container Use MCP server in the Zed `settings.json`. Provide
188188
}
189189
```
190190

191-
Next open the Zed Agent Panel ✨ in the lower right and prompt away!
191+
### Add Container Use Agent Profile (Optional)
192+
193+
To lock the Zed agent out of your host system, you can create a dedicated agent profile that only enables Container Use tools. Add this to your `settings.json` under the `agent` section:
194+
195+
```json
196+
"agent": {
197+
"profiles": {
198+
"container-use": {
199+
"name": "Container Use",
200+
"tools": {
201+
"fetch": true,
202+
"thinking": true,
203+
"copy_path": false,
204+
"find_path": false,
205+
"delete_path": false,
206+
"create_directory": false,
207+
"list_directory": false,
208+
"diagnostics": false,
209+
"read_file": false,
210+
"open": false,
211+
"move_path": false,
212+
"grep": false,
213+
"edit_file": false,
214+
"terminal": false
215+
},
216+
"enable_all_context_servers": false,
217+
"context_servers": {
218+
"container-use": {
219+
"tools": {
220+
"environment_create": true,
221+
"environment_add_service": true,
222+
"environment_update": true,
223+
"environment_run_cmd": true,
224+
"environment_open": true,
225+
"environment_file_write": true,
226+
"environment_file_read": true,
227+
"environment_file_list": true,
228+
"environment_file_delete": true,
229+
"environment_checkpoint": true
230+
}
231+
}
232+
}
233+
}
234+
}
235+
}
236+
```
237+
238+
This profile ensures your agent can only use Container Use tools, preventing it from modifying your local files directly.
239+
240+
Next open the Zed Agent Panel ✨ in the lower right, select the "Container Use" profile from the dropdown to the left of the model dropdown, and prompt away!
192241

193242
## OpenCode
194243

195-
Configure the Container Use MCP server in a `opencode.json` file.
244+
Configure the Container Use MCP server in a `opencode.json` file.
196245

197246
> Note: Provide the absolute path to your systems `cu` executable:
198247

0 commit comments

Comments
 (0)