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: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Published to GHCR under the `sourecode/devcontainer-features` namespace.
11
11
|---|---|---|
12
12
|`claude-code`|`ghcr.io/sourecode/devcontainer-features/claude-code:2`| Installs the Claude Code CLI via the official native installer into `/usr/local/bin`, so the binary survives home-directory volume mounts. Requires Node.js — automatically pulls in the `nvm` feature via `dependsOn`. |
13
13
|`rtk`|`ghcr.io/sourecode/devcontainer-features/rtk:2`| Installs [rtk](https://github.com/rtk-ai/rtk), an LLM token-reducing CLI proxy, into `/usr/local/bin`. Auto-patches Claude Code via `postCreateCommand` so the hook is written against the mounted home, not the image. |
14
-
|`context-mode`|`ghcr.io/sourecode/devcontainer-features/context-mode:1`| Installs the [`context-mode`](https://github.com/mksglu/context-mode) Claude Code plugin. |
14
+
|`context-mode`|`ghcr.io/sourecode/devcontainer-features/context-mode:2`| Installs the [`context-mode`](https://github.com/mksglu/context-mode) Claude Code plugin via `postCreateCommand`, so the plugin lands in the mounted `~/.claude` rather than the image. |
15
15
|`nvm`|`ghcr.io/sourecode/devcontainer-features/nvm:2`| Installs [nvm](https://github.com/nvm-sh/nvm) system-wide at `/usr/local/share/nvm` and optionally a Node version (defaults to LTS), with `node`/`npm`/`npx` symlinked into `/usr/local/bin`. No yarn. |
16
16
17
17
All binaries land in `/usr/local/bin` (or `/usr/local/share/...`) rather than the user's home, so they survive the shared home-volume pattern described in [`docs/persistence.md`](docs/persistence.md). `rtk` and `context-mode` declare `installsAfter` for both `ghcr.io/sourecode/devcontainer-features/claude-code` and `ghcr.io/anthropics/devcontainer-features/claude-code`, so the runtime orders them after whichever claude-code feature is present.
Copy file name to clipboardExpand all lines: src/context-mode/devcontainer-feature.json
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
{
2
2
"id": "context-mode",
3
-
"version": "1.0.3",
3
+
"version": "2.0.0",
4
4
"name": "context-mode (Claude Code plugin)",
5
-
"description": "Installs the context-mode Claude Code plugin from the mksglu/context-mode marketplace. Requires a claude-code feature.",
5
+
"description": "Installs the context-mode Claude Code plugin from the mksglu/context-mode marketplace via postCreateCommand, so the plugin lands in the mounted ~/.claude rather than the image. Requires a claude-code feature.",
# Written by the context-mode devcontainer feature at build time.
22
+
# Runs as the remote user via postCreateCommand so the plugin lands in
23
+
# the mounted ~/.claude, not the image.
24
+
set -e
21
25
22
-
if!run_as_user 'command -v claude >/dev/null 2>&1';then
23
-
echo"context-mode feature: claude CLI not found. Install a claude-code feature (e.g. ghcr.io/sourecode/devcontainer-features/claude-code) first.">&2
24
-
exit1
26
+
if ! command -v claude >/dev/null 2>&1; then
27
+
echo "context-mode feature: claude CLI not on PATH, skipping plugin install. Install a claude-code feature (e.g. ghcr.io/sourecode/devcontainer-features/claude-code) to enable it." >&2
0 commit comments