From 84cdc176029f936ac4f1c38411db61929fd9605e Mon Sep 17 00:00:00 2001 From: "blinkagent[bot]" <237617714+blinkagent[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 12:09:23 +0500 Subject: [PATCH] docs: bump AI Gateway client modules to latest and remove Coder Tasks refs (#27810) Updates the AI Gateway client docs under `docs/ai-coder/ai-gateway/clients/` to reference the latest module versions on registry.coder.com and removes mentions of Coder Tasks from those pages. Uses pessimistic (`~>`) version constraints so users automatically pick up compatible non-breaking updates within the same major. ### Version bumps | Module | Old | New | |---|---|---| | [`coder/claude-code`](https://registry.coder.com/modules/coder/claude-code) | `4.7.3` | `~> 5.2` (latest `5.2.0`) | | [`coder-labs/codex`](https://registry.coder.com/modules/coder-labs/codex) | `~> 5.0` | `~> 5.3` (latest `5.3.0`) | | [`coder/mux`](https://registry.coder.com/modules/coder/mux) | `~> 1.0` | `~> 1.5` (latest `1.5.0`) | ### Coder Tasks removal - `claude-code.md`: removed the *Coder Tasks* example block (v5 of the module is a major refactor that dropped the `ai_prompt` input and `task_app_id` output). - Remaining inputs in the example (`agent_id`, `workdir`, `enable_ai_gateway`) still match the latest module. - `codex.md` and `mux.md` did not reference Tasks, so only version bumps were needed there. cc @matifali --------- Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com> --- .../ai-gateway/clients/claude-code.md | 28 ++----------------- docs/ai-coder/ai-gateway/clients/codex.md | 6 ++-- docs/ai-coder/ai-gateway/clients/mux.md | 6 ++-- docs/ai-coder/tasks-lifecycle.md | 2 +- 4 files changed, 10 insertions(+), 32 deletions(-) diff --git a/docs/ai-coder/ai-gateway/clients/claude-code.md b/docs/ai-coder/ai-gateway/clients/claude-code.md index 601f56c0d2..1c68f382e1 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 82110e3e9c..5efe33dc12 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 3ba271769e..4756e4b5c4 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 60108903b4..508e476a62 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 # ... }