Add claude (Claude Code) plugin#14
Merged
Merged
Conversation
Manage the Claude Code CLI as a proto-versioned tool. Resolves versions from anthropics/claude-code git tags and installs the prebuilt binary from downloads.claude.ai (static musl on Linux). No checksum-url: upstream publishes checksums only inside a per-version manifest.json the TOML format can't parse.
jlouazel
approved these changes
Jun 25, 2026
etiennecoutaud
added a commit
that referenced
this pull request
Jun 25, 2026
## What
Switch the `claude` plugin's Linux download from the `musl` build to the
glibc build (`linux-{arch}/claude`).
## Why
The upstream `linux-x64-musl` binary is **not static**: it is
dynamically linked against `/lib/ld-musl-x86_64.so.1`. On a glibc host
(e.g. the `ubuntu-24.04` CI runners) that loader is absent, so executing
it fails with `No such file or directory (os error 2)` (ENOENT from the
missing interpreter).
This surfaced when
[claude-marketplace#1](Genesis-Embodied-AI/claude-marketplace#1)
CI ran `proto run claude -- plugin validate` on ubuntu and failed even
though install succeeded.
```
$ file linux-x64-musl/claude → interpreter /lib/ld-musl-x86_64.so.1 # fails on glibc
$ file linux-x64/claude → interpreter /lib64/ld-linux-x86-64.so.2 # runs on ubuntu
```
The glibc build runs on standard Linux distros and CI. (The musl build
remains the right choice only on musl/Alpine hosts, which this repo's CI
and consumers are not.)
## Note on the smoke test
`scripts/smoke-test.sh` did not catch this: it asserts `proto bin
claude` is a `-x` file but never executes it, so a binary built for the
wrong libc still passes. The original
[#14](#14) CI
was green for that reason.
Linear: PLAT-1014
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.
What
Adds a proto TOML plugin for Claude Code, so the
claudeCLI can be pinned and installed as a proto-managed tool like the other entries here.claude/plugin.toml— resolves versions fromanthropics/claude-codegit tags; installs the single prebuilt binary served fromdownloads.claude.ai/claude-code-releases/{version}/{platform}/<binary>.claude/README.md— usage + upstream pointers..prototools— registers the plugin (file://locator) and pinsclaude = "2.1.191".Details
muslbuild (linux-{arch}-musl/claude) so it runs on both glibc and musl hosts, per repo convention. macOSdarwin-{arch}/claude, Windowswin32-{arch}/claude.exe. All four CI targets have an upstream artifact.checksum-url: upstream publishes checksums only inside a per-versionmanifest.json(keyed JSON), which the TOML plugin format can't parse. Documented in the plugin comment and README.Verification
Local, on macOS arm64:
Cross-platform install is covered by this repo's CI matrix (Linux / macOS x64+arm64 / Windows).
Why
First consumer is the new
claude-marketplacerepo, whose CI will pinclaudevia this plugin instead ofcurl | bashfor a reproducible validator version.Refs: PLAT-1014