diff --git a/docs/ai-coder/ai-gateway/clients/claude-code.md b/docs/ai-coder/ai-gateway/clients/claude-code.md index 601f56c0d26..1c68f382e19 100644 --- a/docs/ai-coder/ai-gateway/clients/claude-code.md +++ b/docs/ai-coder/ai-gateway/clients/claude-code.md @@ -55,36 +55,14 @@ Template admins can pre-configure Claude Code for a seamless experience. Admins ```tf module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.7.3" + version = "~> 5.2" agent_id = coder_agent.main.id - workdir = "/path/to/project" # Set to your project directory + workdir = "/path/to/project" # Set to your project directory enable_ai_gateway = true } ``` -### Coder Tasks - -[Coder Tasks](../../tasks.md) provides a framework for agents to complete background development operations autonomously. Claude Code can be configured in your Tasks automatically: - -```tf -resource "coder_ai_task" "task" { - count = data.coder_workspace.me.start_count - app_id = module.claude-code.task_app_id -} - -data "coder_task" "me" {} - -module "claude-code" { - source = "registry.coder.com/coder/claude-code/coder" - version = "4.7.3" - agent_id = coder_agent.main.id - workdir = "/path/to/project" # Set to your project directory - ai_prompt = data.coder_task.me.prompt - - # Route through AI Gateway - enable_ai_gateway = true -} -``` +Visit the [Claude Code module on the Coder Registry](https://registry.coder.com/modules/coder/claude-code) for the full list of inputs and outputs. ## VS Code Extension diff --git a/docs/ai-coder/ai-gateway/clients/codex.md b/docs/ai-coder/ai-gateway/clients/codex.md index 82110e3e9cd..5efe33dc12e 100644 --- a/docs/ai-coder/ai-gateway/clients/codex.md +++ b/docs/ai-coder/ai-gateway/clients/codex.md @@ -98,9 +98,9 @@ For the centralized API key flow, set `enable_ai_gateway`: ```tf module "codex" { source = "registry.coder.com/coder-labs/codex/coder" - version = "~> 5.0" + version = "~> 5.3" agent_id = coder_agent.main.id - workdir = "/path/to/project" # Set to your project directory + workdir = "/path/to/project" # Set to your project directory enable_ai_gateway = true } ``` @@ -119,7 +119,7 @@ resource "coder_env" "coder_api_token" { module "codex" { source = "registry.coder.com/coder-labs/codex/coder" - version = "~> 5.0" + version = "~> 5.3" agent_id = coder_agent.main.id workdir = "/path/to/project" # Set to your project directory diff --git a/docs/ai-coder/ai-gateway/clients/mux.md b/docs/ai-coder/ai-gateway/clients/mux.md index 3ba271769eb..4756e4b5c4f 100644 --- a/docs/ai-coder/ai-gateway/clients/mux.md +++ b/docs/ai-coder/ai-gateway/clients/mux.md @@ -54,9 +54,9 @@ export ANTHROPIC_API_KEY="" export ANTHROPIC_BASE_URL="https://coder.example.com/api/v2/ai-gateway/anthropic" ``` -## Running Mux in a Coder workspace +## Run Mux in a Coder workspace -If you want to run Mux inside a Coder workspace (for example, as a Coder app), you can install it with the [Mux module](https://registry.coder.com/modules/coder/mux) and pre-configure AI Gateway via environment variables on the agent: +To run Mux inside a Coder workspace (for example, as a Coder app), you can install it with the [Mux module](https://registry.coder.com/modules/coder/mux) and pre-configure AI Gateway via environment variables on the agent: ```tf data "coder_workspace" "me" {} @@ -75,7 +75,7 @@ resource "coder_agent" "main" { module "mux" { source = "registry.coder.com/coder/mux/coder" - version = "~> 1.0" # See the module page for the latest version. + version = "~> 1.5" agent_id = coder_agent.main.id } ``` diff --git a/docs/ai-coder/tasks-lifecycle.md b/docs/ai-coder/tasks-lifecycle.md index 60108903b47..508e476a62d 100644 --- a/docs/ai-coder/tasks-lifecycle.md +++ b/docs/ai-coder/tasks-lifecycle.md @@ -111,7 +111,7 @@ For Claude Code, update the module version in your template: ```tf module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = ">= 4.8.0" # Minimum version with pause/resume support + version = ">= 4.8.0, < 5.0.0" # Pause/resume support (Tasks/AgentAPI). Removed in v5. agent_id = coder_agent.main.id # ... }