Skip to content

Conversation

@DanielleMaywood
Copy link
Contributor

@DanielleMaywood DanielleMaywood commented Oct 20, 2025

Description

Updates the module to use the new version of the agentapi module for the upcoming Coder 2.28 release

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path: registry/coder/modules/claude-code
New version: v4.0.0
Breaking change: [x] Yes [ ] No

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally

Related Issues

Related PRs

@DanielleMaywood DanielleMaywood force-pushed the danielle/claude-code/refactor branch 2 times, most recently from f1e73c9 to 2bf6c9b Compare October 21, 2025 08:27
@DanielleMaywood DanielleMaywood force-pushed the danielle/agent-api/refactor branch from 797624f to 644d080 Compare October 21, 2025 08:27
johnstcn added a commit to coder/coder that referenced this pull request Oct 22, 2025
Relates to coder/internal#1065

Updates the coder/dogfood template to reference new Task features
in provider version 2.12.0:
- Adds a `coder_ai_task` resource
- Passes `coder_ai_task.task.prompt` into Claude Code module
- Updates Claude Code module to 4.0.0 (ref:
  coder/registry#488)
- Removes "AI Prompt" parameter
@DanielleMaywood DanielleMaywood force-pushed the danielle/claude-code/refactor branch from 2bf6c9b to 95a01ea Compare October 23, 2025 09:14
@DanielleMaywood DanielleMaywood force-pushed the danielle/agent-api/refactor branch from 644d080 to 4c9fab8 Compare October 23, 2025 09:14
@DanielleMaywood DanielleMaywood force-pushed the danielle/claude-code/refactor branch from 95a01ea to b1889f5 Compare October 24, 2025 10:23
@DanielleMaywood DanielleMaywood force-pushed the danielle/agent-api/refactor branch from 4c9fab8 to 88773fe Compare October 24, 2025 10:23
@DanielleMaywood DanielleMaywood self-assigned this Oct 24, 2025
Base automatically changed from danielle/agent-api/refactor to main October 24, 2025 10:54
@DanielleMaywood DanielleMaywood force-pushed the danielle/claude-code/refactor branch from b1889f5 to 52eab1a Compare October 24, 2025 11:04
@DanielleMaywood DanielleMaywood marked this pull request as ready for review October 24, 2025 11:16
@matifali
Copy link
Member

matifali commented Oct 24, 2025

I think we should hold off on releasing this until the 2.28 Coder release goes out. Otherwise, we will certainly have users reporting that the module is not working with the latest Coder 2.27.1 release.

Can we test if it works on the 2.27.1 Coder release?

@johnstcn
Copy link
Member

johnstcn commented Oct 28, 2025

I think we should hold off on releasing this until the 2.28 Coder release goes out. Otherwise, we will certainly have users reporting that the module is not working with the latest Coder 2.27.1 release.

Can we test if it works on the 2.27.1 Coder release?

Tested successfully via docker-compose on v2.27.1. I used the "default" docker template with the following addition:

data "coder_parameter" "ai_prompt" {
  type        = "string"
  name        = "AI Prompt"
  default     = ""
  description = "Initial task prompt for Claude Code."
  mutable     = true
}

resource "coder_ai_task" "task" {
  sidebar_app {
    id = module.claude-code.task_app_id
  }
}

module "claude-code" {
  source = "github.com/coder/registry//registry/coder/modules/claude-code?ref=danielle/claude-code/refactor"
  agent_id = coder_agent.main.id
  workdir = "/home/coder"
  ai_prompt = data.coder_parameter.ai_prompt.value
}

Compose command for reference:

CODER_VERSION=v2.27.1 docker compose up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants