You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ai-coder/tasks.md
+39-10Lines changed: 39 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,24 +46,53 @@ To import the template and begin configuring it, follow the [documentation in th
46
46
47
47
###Option 2) Create or Duplicate Your Own Template
48
48
49
-
A template becomes a Task template if it defines a`coder_ai_task` resource and a`coder_parameter` named`"AI Prompt"`. Coder analyzes template files during template version import to determine if these requirements are met.
49
+
A template becomes a Task template if it defines a`coder_ai_task` resource and a`coder_parameter` named`"AI Prompt"`. Coder analyzes template files during template version import to determine if these requirements are met. Try adding this terraform block to an existing template where you'll add our Claude Code module. Note: the`coder_ai_task` resource is defined within the[Claude Code Module](https://registry.coder.com/modules/coder/claude-code?tab=readme), so it's not defined within this block.
50
50
51
51
```hcl
52
52
data "coder_parameter" "ai_prompt" {
53
53
name = "AI Prompt"
54
54
type = "string"
55
55
}
56
56
57
-
# Multiple coder_ai_tasks can be defined in a template
58
-
resource "coder_ai_task" "claude-code" {
59
-
# At most one coder ai task can be instantiated during a workspace build.
60
-
# Coder fails the build if it would instantiate more than 1.