Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 3 additions & 25 deletions docs/ai-coder/ai-gateway/clients/claude-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions docs/ai-coder/ai-gateway/clients/codex.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
Expand All @@ -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

Expand Down
6 changes: 3 additions & 3 deletions docs/ai-coder/ai-gateway/clients/mux.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export ANTHROPIC_API_KEY="<your-coder-api-token>"
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" {}
Expand All @@ -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
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/ai-coder/tasks-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
[Agent compatibility](./agent-compatibility.md) for which agents support
full session resume.

## Resuming a task

Check warning on line 76 in docs/ai-coder/tasks-lifecycle.md

View workflow job for this annotation

GitHub Actions / lint-docs

Coder.GerundHeading

Heading starts with an -ing word ('Resuming'); prefer the imperative ('Install') or the noun ('Installation'). See capitalization-and-punctuation.md#no-gerund-leading-headings.

You can resume a paused task in several ways:

Expand Down Expand Up @@ -111,7 +111,7 @@
```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
# ...
}
Expand Down
Loading