can't find "write coder on coder" template

hi, i just found about coder and super excited to try it out. i want to use the coding agent feature. i am following the tutorial on https://coder.com/docs/ai-coder/create-template but i can't see the "write coder on coder" template in my local setup to duplicate. what am i missing?
Create a Coder template for agents | Coder Docs
Create a purpose-built template for your AI agents
From An unknown user
From An unknown user
No description
6 Replies
Codercord
Codercord7d ago
<#1361314201703809095>
Category
Help needed
Product
Coder (v2)
Platform
macOS
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys7d ago
hi, "write coder on coder" is just an example this one is our internal template hope this helps
Hamed
HamedOP7d ago
oh gotta, so creating a base template and adding it is the way when i want to push this template it asks (rightly) for the missing api key var, 1. how to provide it in the cli command 2. is there a way not to provide it here but in workspace creation time (through cli or rest api e.g.)
variable "anthropic_api_key" {
type = string
description = "The Anthropic API key"
sensitive = true
}

module "coder-login" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder-login/coder"
version = "1.0.30"
agent_id = coder_agent.example.id
}

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


module "claude-code" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/claude-code/coder"
version = "1.0.31"
agent_id = coder_agent.example.id
folder = "/home/coder"
install_claude_code = true
claude_code_version = "0.2.57"

# Enable experimental features
experiment_use_screen = true
experiment_report_tasks = true
}
variable "anthropic_api_key" {
type = string
description = "The Anthropic API key"
sensitive = true
}

module "coder-login" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder-login/coder"
version = "1.0.30"
agent_id = coder_agent.example.id
}

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


module "claude-code" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/claude-code/coder"
version = "1.0.31"
agent_id = coder_agent.example.id
folder = "/home/coder"
install_claude_code = true
claude_code_version = "0.2.57"

# Enable experimental features
experiment_use_screen = true
experiment_report_tasks = true
}
Hamed
HamedOP6d ago
i managed to enter the api key. the prompt i give it to the workspace starts executing as the workspace is started, however i can't see the activity log as in the screenshot in the documentation, is that because i'm missing something? i attached the main.tf file for ref. also can i see the updates and trigger new prompts using rest apis?
Phorcys
Phorcys6d ago
hey, regarding the 2nd question, you cannot variables are template-wide and coder_parameters are workspace-wide modules only support input from variables
Codercord
Codercord3d ago
@Phorcys closed the thread.

Did you find this page helpful?