Skip to content

Commit b1c5a98

Browse files
authored
docs: charm crush agent plus update tool lists for new file_edit tool (#259)
* docs: charm crush agent Signed-off-by: Jeremy Adams <jeremy@dagger.io> * docs: add new file_edit tool Signed-off-by: Jeremy Adams <jeremy@dagger.io> * Add file_edit to Amazon Q invocation Signed-off-by: Jeremy Adams <jeremy@dagger.io> * Add file_edit to Zed config Signed-off-by: Jeremy Adams <jeremy@dagger.io> * Add file_edit to Claude Code invocation Signed-off-by: Jeremy Adams <jeremy@dagger.io> --------- Signed-off-by: Jeremy Adams <jeremy@dagger.io>
1 parent ef69a2d commit b1c5a98

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

docs/agent-integrations.mdx

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md
3434
**Trust Only Container Use Tools (Optional):**
3535
For maximum security, restrict Claude Code to only use Container Use tools:
3636
```sh
37-
claude --allowedTools mcp__container-use__environment_checkpoint,mcp__container-use__environment_create,mcp__container-use__environment_add_service,mcp__container-use__environment_file_delete,mcp__container-use__environment_file_list,mcp__container-use__environment_file_read,mcp__container-use__environment_file_write,mcp__container-use__environment_open,mcp__container-use__environment_run_cmd,mcp__container-use__environment_update
37+
claude --allowedTools mcp__container-use__environment_add_service,mcp__container-use__environment_checkpoint,mcp__container-use__environment_config,mcp__container-use__environment_create,mcp__container-use__environment_file_delete,mcp__container-use__environment_file_edit,mcp__container-use__environment_file_list,mcp__container-use__environment_file_read,mcp__container-use__environment_file_write,mcp__container-use__environment_open,mcp__container-use__environment_run_cmd,mcp__container-use__environment_update_metadata
3838
```
3939

4040
<Info>
@@ -66,7 +66,7 @@ mkdir -p ./.amazonq/rules && curl https://raw.githubusercontent.com/dagger/conta
6666

6767
**Trust Only Container Use Tools (Optional):**
6868
```sh
69-
q chat --trust-tools=container_use___environment_add_service,container_use___environment_checkpoint,container_use___environment_config,container_use___environment_create,container_use___environment_file_delete,container_use___environment_file_list,container_use___environment_file_read,container_use___environment_file_write,container_use___environment_open,container_use___environment_run_cmd,container_use___environment_update_metadata
69+
q chat --trust-tools=container_use___environment_add_service,container_use___environment_checkpoint,container_use___environment_config,container_use___environment_create,container_use___environment_file_delete,container_use___environment_file_edit,container_use___environment_file_list,container_use___environment_file_read,container_use___environment_file_write,container_use___environment_open,container_use___environment_run_cmd,container_use___environment_update_metadata
7070
```
7171

7272
<Card title="Video Tutorial" icon="youtube" href="https://youtu.be/C2g3vdbffOI">
@@ -213,6 +213,7 @@ To lock the Zed agent out of your host system, you can create a dedicated agent
213213
"environment_config": true,
214214
"environment_create": true,
215215
"environment_file_delete": true,
216+
"environment_file_edit": true,
216217
"environment_file_list": true,
217218
"environment_file_read": true,
218219
"environment_file_write": true,
@@ -324,6 +325,49 @@ curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md
324325

325326
<Info>Learn more: [Sourcegraph Amp Documentation](https://ampcode.com/manual/)</Info>
326327

328+
## Charm Crush
329+
330+
**Add MCP Configuration:**
331+
Add this configuration to [a valid location](https://github.com/charmbracelet/crush?tab=readme-ov-file#configuration) like `./.crush.json`:
332+
```json
333+
{
334+
"$schema": "https://charm.land/crush.json",
335+
"mcp": {
336+
"container-use": {
337+
"type": "stdio",
338+
"command": "container-use",
339+
"args": ["stdio"],
340+
"env": {}
341+
}
342+
},
343+
"permissions": {
344+
"allowed_tools": [
345+
"mcp_container-use_environment_add_service",
346+
"mcp_container-use_environment_checkpoint",
347+
"mcp_container-use_environment_config",
348+
"mcp_container-use_environment_create",
349+
"mcp_container-use_environment_file_delete",
350+
"mcp_container-use_environment_file_edit",
351+
"mcp_container-use_environment_file_list",
352+
"mcp_container-use_environment_file_read",
353+
"mcp_container-use_environment_file_write",
354+
"mcp_container-use_environment_open",
355+
"mcp_container-use_environment_run_cmd",
356+
"mcp_container-use_environment_update_metadata"
357+
]
358+
}
359+
}
360+
```
361+
362+
**Add Agent Rules:**
363+
Save agent instructions to your project root:
364+
```sh
365+
curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md >> CRUSH.md
366+
```
367+
368+
<Info>Learn more: [Crush project on GitHub](https://github.com/charmbracelet/crush)</Info>
369+
370+
327371
## Cline
328372

329373
**Add MCP Configuration:**

0 commit comments

Comments
 (0)