From 36a52faf054424e9d3ec74399aed463c55aa9f98 Mon Sep 17 00:00:00 2001 From: Jiachen Jiang Date: Tue, 21 Oct 2025 13:58:12 -0700 Subject: [PATCH 1/4] added example of boundary to claude code module --- registry/coder/modules/claude-code/README.md | 30 ++++++++++++++++---- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/registry/coder/modules/claude-code/README.md b/registry/coder/modules/claude-code/README.md index 4477eb63c..baea9c56b 100644 --- a/registry/coder/modules/claude-code/README.md +++ b/registry/coder/modules/claude-code/README.md @@ -13,7 +13,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude ```tf module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "3.2.0" + version = "3.2.1" agent_id = coder_agent.example.id workdir = "/home/coder/project" claude_api_key = "xxxx-xxxxx-xxxx" @@ -34,6 +34,24 @@ module "claude-code" { ## Examples +### Usage with Agent Boundaries + +This example shows how to configure the Claude Code module to run the agent behind a firewall that restricts what it can access and use. + +```tf +module "claude-code" { + source = "dev.registry.coder.com/coder/claude-code/coder" + enable_boundary = true + boundary_version = "main" + boundary_log_dir = "/tmp/boundary_logs" + boundary_log_level = "WARN" + boundary_additional_allowed_urls = ["GET *google.com"] + boundary_proxy_port = "8087" + version = "3.2.1" + ... +} +``` + ### Usage with Tasks and Advanced Configuration This example shows how to configure the Claude Code module with an AI prompt, API key shared by all users of the template, and other custom settings. @@ -49,7 +67,7 @@ data "coder_parameter" "ai_prompt" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "3.2.0" + version = "3.2.1" agent_id = coder_agent.example.id workdir = "/home/coder/project" @@ -85,7 +103,7 @@ Run and configure Claude Code as a standalone CLI in your workspace. ```tf module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "3.2.0" + version = "3.2.1" agent_id = coder_agent.example.id workdir = "/home/coder" install_claude_code = true @@ -108,7 +126,7 @@ variable "claude_code_oauth_token" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "3.2.0" + version = "3.2.1" agent_id = coder_agent.example.id workdir = "/home/coder/project" claude_code_oauth_token = var.claude_code_oauth_token @@ -181,7 +199,7 @@ resource "coder_env" "bedrock_api_key" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "3.2.0" + version = "3.2.1" agent_id = coder_agent.example.id workdir = "/home/coder/project" model = "global.anthropic.claude-sonnet-4-5-20250929-v1:0" @@ -238,7 +256,7 @@ resource "coder_env" "google_application_credentials" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "3.2.0" + version = "3.2.1" agent_id = coder_agent.example.id workdir = "/home/coder/project" model = "claude-sonnet-4@20250514" From 7a6705b17d4f844bb0672018da06517ad9236a36 Mon Sep 17 00:00:00 2001 From: Jiachen Jiang Date: Tue, 21 Oct 2025 14:08:25 -0700 Subject: [PATCH 2/4] fixed code block error --- registry/coder/modules/claude-code/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/registry/coder/modules/claude-code/README.md b/registry/coder/modules/claude-code/README.md index baea9c56b..afd8e4e95 100644 --- a/registry/coder/modules/claude-code/README.md +++ b/registry/coder/modules/claude-code/README.md @@ -48,7 +48,6 @@ module "claude-code" { boundary_additional_allowed_urls = ["GET *google.com"] boundary_proxy_port = "8087" version = "3.2.1" - ... } ``` From 294b6736d37fe95cbe6091ef7866aa870e25e3bb Mon Sep 17 00:00:00 2001 From: Jiachen Jiang Date: Tue, 21 Oct 2025 14:17:06 -0700 Subject: [PATCH 3/4] changed firewall to more accurate description --- registry/coder/modules/claude-code/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/coder/modules/claude-code/README.md b/registry/coder/modules/claude-code/README.md index afd8e4e95..2fed8f826 100644 --- a/registry/coder/modules/claude-code/README.md +++ b/registry/coder/modules/claude-code/README.md @@ -36,7 +36,7 @@ module "claude-code" { ### Usage with Agent Boundaries -This example shows how to configure the Claude Code module to run the agent behind a firewall that restricts what it can access and use. +This example shows how to configure the Claude Code module to run the agent behind a process-level boundary that restricts its network access. ```tf module "claude-code" { From af9a1a5b4546d8550d4f2b18c34239aaf42607e9 Mon Sep 17 00:00:00 2001 From: Jiachen Jiang Date: Tue, 21 Oct 2025 14:28:29 -0700 Subject: [PATCH 4/4] ran bun fmt --- registry/coder/modules/claude-code/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/registry/coder/modules/claude-code/README.md b/registry/coder/modules/claude-code/README.md index 2fed8f826..3e690ce2e 100644 --- a/registry/coder/modules/claude-code/README.md +++ b/registry/coder/modules/claude-code/README.md @@ -40,14 +40,14 @@ This example shows how to configure the Claude Code module to run the agent behi ```tf module "claude-code" { - source = "dev.registry.coder.com/coder/claude-code/coder" - enable_boundary = true - boundary_version = "main" - boundary_log_dir = "/tmp/boundary_logs" - boundary_log_level = "WARN" + source = "dev.registry.coder.com/coder/claude-code/coder" + enable_boundary = true + boundary_version = "main" + boundary_log_dir = "/tmp/boundary_logs" + boundary_log_level = "WARN" boundary_additional_allowed_urls = ["GET *google.com"] - boundary_proxy_port = "8087" - version = "3.2.1" + boundary_proxy_port = "8087" + version = "3.2.1" } ```