diff --git a/docs/agent-integrations.mdx b/docs/agent-integrations.mdx
index fc1fd7e..7e70fc0 100644
--- a/docs/agent-integrations.mdx
+++ b/docs/agent-integrations.mdx
@@ -28,17 +28,48 @@ claude mcp add container-use -- container-use stdio
**Add Agent Rules (Optional):**
Save the CLAUDE.md file at the root of your repository:
```sh
-curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md >> CLAUDE.md
+curl https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/agent.md >> CLAUDE.md
```
**Trust Only Container Use Tools (Optional):**
-For maximum security, restrict Claude Code to only use Container Use tools:
-```sh
-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
+For maximum security, restrict Claude Code to only use Container Use tools by adding the standard tools to the permissions deny list. You may also wish to add Container Use tools to the allow list so that you are not prompted when Claude tries to use them.
+
+In `~/.claude/settings.json` — or one of the other [settings files](https://code.claude.com/docs/en/settings) — add the following configuration:
+
+```json
+{
+ "permissions": {
+ "allow": [
+ "mcp__container-use__environment_checkpoint",
+ "mcp__container-use__environment_config",
+ "mcp__container-use__environment_create",
+ "mcp__container-use__environment_add_service",
+ "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_list",
+ "mcp__container-use__environment_open",
+ "mcp__container-use__environment_run_cmd",
+ "mcp__container-use__environment_update_metadata"
+ ],
+ "deny": [
+ "Read",
+ "Write",
+ "Edit",
+ "Bash",
+ "Glob",
+ "Grep",
+ "NotebookEdit",
+ "NotebookRead"
+ ]
+ }
+}
```
- Learn more: [Claude Code MCP Documentation](https://docs.anthropic.com/en/docs/claude-code/tutorials#set-up-model-context-protocol-mcp)
+ Learn more: [Claude Code MCP Documentation](https://code.claude.com/docs/en/mcp)
## Amazon Q Developer
@@ -61,7 +92,7 @@ Add this configuration to `~/.aws/amazonq/mcp.json`:
**Add Agent Rules:**
Save agent instructions to your project root:
```sh
-mkdir -p ./.amazonq/rules && curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md > .amazonq/rules/container-use.md
+mkdir -p ./.amazonq/rules && curl https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/agent.md > .amazonq/rules/container-use.md
```
**Trust Only Container Use Tools (Optional):**
@@ -86,7 +117,7 @@ Use the one-click deeplink to install (requires Cursor and Container Use already
Add the rules file to your project or home directory:
```sh
-curl --create-dirs -o .cursor/rules/container-use.mdc https://raw.githubusercontent.com/dagger/container-use/main/rules/cursor.mdc
+curl --create-dirs -o .cursor/rules/container-use.mdc https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/cursor.mdc
```
@@ -117,7 +148,7 @@ In `~/.codeium/windsurf/mcp_config.json`, add the following configuration:
Add the rules file to your project or home directory:
```sh
-curl --create-dirs -o .windsurf/rules/container-use.mdc https://raw.githubusercontent.com/dagger/container-use/main/rules/windsurf.mdc
+curl --create-dirs -o .windsurf/rules/container-use.mdc https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/windsurf.mdc
```
## VSCode / GitHub Copilot
@@ -141,7 +172,7 @@ Update your VSCode settings with:
**Add Copilot Instructions (Optional):**
```sh
-curl --create-dirs -o .github/copilot-instructions.md https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md
+curl --create-dirs -o .github/copilot-instructions.md https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/agent.md
```
@@ -160,7 +191,7 @@ curl --create-dirs -o .github/copilot-instructions.md https://raw.githubusercont
First add the agent rules file, either as `.rules` in the root of your project or as one of the [other acceptable files/locations](https://zed.dev/docs/ai/rules?highlight=agent.md#rules-files).
```sh
-curl -o .rules https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md
+curl -o .rules https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/agent.md
```
Then, choose one of the methods to add the Container Use MCP server in Zed:
@@ -254,7 +285,7 @@ Configure the Container Use MCP server:
Add the `AGENTS.md` file using this command (this is optional but usually provides the best results):
```sh
-curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md >> AGENTS.md
+curl https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/agent.md >> AGENTS.md
```
Run `opencode` and dispatch your agents to complete your tasks!
@@ -321,7 +352,7 @@ Add this configuration to `~/.config/amp/settings.json`:
**Add Agent Rules:**
Save agent instructions to your project root:
```sh
-curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md >> AGENT.md
+curl https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/agent.md >> AGENT.md
```
Learn more: [Sourcegraph Amp Documentation](https://ampcode.com/manual/)
@@ -363,7 +394,7 @@ Add this configuration to [a valid location](https://github.com/charmbracelet/cr
**Add Agent Rules:**
Save agent instructions to your project root:
```sh
-curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md >> CRUSH.md
+curl https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/agent.md >> CRUSH.md
```
Learn more: [Crush project on GitHub](https://github.com/charmbracelet/crush)
@@ -394,7 +425,7 @@ Add to your Cline MCP server configuration JSON:
**Add Agent Rules:**
```sh
-curl --create-dirs -o .clinerules/container-use.md https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md
+curl --create-dirs -o .clinerules/container-use.md https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/agent.md
```
Learn more: [Cline Documentation](https://cline.bot/)
@@ -504,7 +535,7 @@ Instruct Codex to use container-use for all projects:
```sh
mkdir -p ~/.codex
-curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md >> ~/.codex/AGENTS.md
+curl https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/agent.md >> ~/.codex/AGENTS.md
```
@@ -586,7 +617,7 @@ Add or edit the MCP configuration in Settings under Tools → Junie → MCP Sett
Save agent instructions to your project root:
```sh
-mkdir -p ./.junie && curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md >> .junie/guidelines.md
+mkdir -p ./.junie && curl https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/agent.md >> .junie/guidelines.md
```
diff --git a/docs/quickstart.mdx b/docs/quickstart.mdx
index 18c48e4..21caf1f 100644
--- a/docs/quickstart.mdx
+++ b/docs/quickstart.mdx
@@ -23,7 +23,7 @@ Make sure you have [Docker](https://www.docker.com/get-started) and Git installe
```sh
- curl -fsSL https://raw.githubusercontent.com/dagger/container-use/main/install.sh | bash
+ curl -fsSL https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/install.sh | bash
container-use version
```
@@ -58,7 +58,7 @@ Container Use works with any MCP-compatible agent: Just add `container-use stdio
Save CLAUDE.md file at the root of your repository:
```sh
- curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md >> CLAUDE.md
+ curl https://raw.githubusercontent.com/dagger/container-use/refs/heads/main/rules/agent.md >> CLAUDE.md
```