chore(devfile): add command to install claude#359
Conversation
Signed-off-by: Valerii Svydenko <vsvydenk@redhat.com>
📝 WalkthroughWalkthroughConfiguration updates to integrate Claude Code support into the development environment. A new devfile command installs the Claude Code npm package globally during development, and the VS Code extension is added to the recommended extensions list. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.devfile.yaml (1)
57-62: Pin Claude Code to a tested version to keep workspace setup reproducible.Line 62 installs a mutable latest version (
npm install -g@anthropic-ai/claude-code``). This can introduce unpredictable breakages across developer workspaces. The package is actively maintained (latest: 2.1.100, Node >=18.0.0), so pinning to a specific tested version ensures consistent setup across the team.🔧 Suggested change
- commandLine: "npm install -g `@anthropic-ai/claude-code`" + commandLine: "npm install -g `@anthropic-ai/claude-code`@2.1.100"Alternatively, use an environment variable for flexibility:
- commandLine: "npm install -g `@anthropic-ai/claude-code`" + commandLine: "npm install -g `@anthropic-ai/claude-code`@${CLAUDE_CODE_VERSION:-2.1.100}"🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.devfile.yaml around lines 57 - 62, The install step with id "install-claude-code" currently runs "commandLine: npm install -g `@anthropic-ai/claude-code`" which installs a moving "latest" release; change this to pin a tested version (e.g., "npm install -g `@anthropic-ai/claude-code`@2.1.100") or reference an environment variable (e.g., use ${CLAUDE_CODE_VERSION} in the commandLine) so workspace setup is reproducible; update the commandLine under the install-claude-code exec block accordingly and ensure a default version is set in devfile env or CI where applicable.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.devfile.yaml:
- Around line 57-62: The install step with id "install-claude-code" currently
runs "commandLine: npm install -g `@anthropic-ai/claude-code`" which installs a
moving "latest" release; change this to pin a tested version (e.g., "npm install
-g `@anthropic-ai/claude-code`@2.1.100") or reference an environment variable
(e.g., use ${CLAUDE_CODE_VERSION} in the commandLine) so workspace setup is
reproducible; update the commandLine under the install-claude-code exec block
accordingly and ensure a default version is set in devfile env or CI where
applicable.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 4be2d0ea-0704-477c-aef0-a728a30f8c56
📒 Files selected for processing (2)
.devfile.yaml.vscode/extensions.json
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: olexii4, svor The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
What does this PR do?
What issues does this PR fix or reference?
eclipse-che/che#23806
Is it tested? How?
Summary by CodeRabbit
Release Notes
New Features
Chores