Skip to content

Claude - #116

Closed
bertlebee wants to merge 4 commits into
devcontainers-extra:mainfrom
bertlebee:claude
Closed

Claude#116
bertlebee wants to merge 4 commits into
devcontainers-extra:mainfrom
bertlebee:claude

Conversation

@bertlebee

Copy link
Copy Markdown

add support for claude code as a feature

@bertlebee bertlebee mentioned this pull request Apr 18, 2025
@koralowiec
koralowiec self-requested a review April 22, 2025 08:57
@koralowiec koralowiec added the new feature This PR or issue is about adding a new Dev Container feature label Apr 22, 2025

@koralowiec koralowiec left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for the PR!

I have a single comment - Typically, we use npm-package feature to install npm packages globally (if there's node already installed, the feature uses it; otherwise it installs node on its own).

I suggested the changes

Comment on lines +14 to +19
# Install Claude Code globally via npm
if [ "${VERSION}" = "latest" ]; then
npm install -g "@anthropic-ai/claude-code"
else
npm install -g "@anthropic-ai/claude-code@${VERSION}"
fi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Install Claude Code globally via npm
if [ "${VERSION}" = "latest" ]; then
npm install -g "@anthropic-ai/claude-code"
else
npm install -g "@anthropic-ai/claude-code@${VERSION}"
fi
$nanolayer_location \
install \
devcontainer-feature \
"ghcr.io/devcontainers-extra/features/npm-package:1.0.3" \
--option package='@anthropic-ai/claude-code' --option version="$VERSION"

Comment on lines +4 to +7
"features": {
"ghcr.io/devcontainers/features/node:1": {},
"claude-code": {}
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"features": {
"ghcr.io/devcontainers/features/node:1": {},
"claude-code": {}
}
"features": {
"claude-code": {}
}

Comment on lines +11 to +16
"features": {
"ghcr.io/devcontainers/features/node:1": {},
"claude-code": {
"version": "0.2.70"
}
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"features": {
"ghcr.io/devcontainers/features/node:1": {},
"claude-code": {
"version": "0.2.70"
}
}
"features": {
"claude-code": {
"version": "0.2.70"
}
}

@koralowiec

Copy link
Copy Markdown
Member

Claude Code feature was added in the meantime -> Closing

@koralowiec koralowiec closed this Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature This PR or issue is about adding a new Dev Container feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants