feat: add devcats/coder-cli template for managing Coder deployments f… - #1111
Open
DevelopmentCats wants to merge 1 commit into
Open
feat: add devcats/coder-cli template for managing Coder deployments f…#1111DevelopmentCats wants to merge 1 commit into
DevelopmentCats wants to merge 1 commit into
Conversation
…ent from an agent
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The Docker agent entrypoint handling and container memory configuration have correctness issues that can prevent the workspace from functioning.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds a new Docker-based workspace template under registry/coder-labs/templates/coder-cli intended to provide a pre-authenticated Coder CLI “ops” workspace (optionally with Claude Code and registry agent skills) for managing an existing Coder deployment.
Changes:
- Introduces a new template
coder-cliwith Docker volume-backed persistent/home/coderand a container running the Coder agent init script. - Adds workspace parameters for image selection, CPU/memory sizing, optional repo cloning, optional Claude Code install, and optional registry skills installation.
- Documents template prerequisites, architecture, and usage in a new README.
File summaries
| File | Description |
|---|---|
| registry/coder-labs/templates/coder-cli/README.md | Adds template documentation and usage guidance (prereqs, architecture, agent workflow). |
| registry/coder-labs/templates/coder-cli/main.tf | Implements the Docker-based Coder CLI workspace template (parameters, agent, modules, volume, container). |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 5
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+256
to
+257
| cpu_shares = data.coder_parameter.cpu.value * 1024 | ||
| memory = data.coder_parameter.memory_gb.value * 1024 |
| name = "coder-${data.coder_workspace_owner.me.name}-${lower(data.coder_workspace.me.name)}" | ||
| hostname = lower(data.coder_workspace.me.name) | ||
|
|
||
| entrypoint = ["sh", "-c", coder_agent.main.init_script] |
Comment on lines
+2
to
+3
| display_name: Coder CLI Workspace | ||
| description: A pre-authenticated Coder CLI workspace for operating a Coder deployment from the agent |
| metadata { | ||
| display_name = "Registry skills" | ||
| key = "registry_skills" | ||
| script = "ls /home/coder/.claude/skills 2>/dev/null | tr '\\n' ' ' | sed 's/ $//' || echo 'none'" |
Comment on lines
+228
to
+233
| resource "docker_volume" "home" { | ||
| name = "coder-${data.coder_workspace.me.id}-home" | ||
| lifecycle { | ||
| ignore_changes = all | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ent from an agent
Description
Type of Change
Module Information
Path:
registry/[namespace]/modules/[module-name]New version:
v1.0.0Breaking change: [ ] Yes [ ] No
Template Information
Path:
registry/[namespace]/templates/[template-name]Testing & Validation
bun test)bun fmt)Related Issues