feat(runner): add Claude Code plugin loading via PLUGINS_JSON#1109
Draft
jeremyeder wants to merge 1 commit intomainfrom
Draft
feat(runner): add Claude Code plugin loading via PLUGINS_JSON#1109jeremyeder wants to merge 1 commit intomainfrom
jeremyeder wants to merge 1 commit intomainfrom
Conversation
Add support for loading Claude Code plugins into ACP sessions via
the existing spec.environmentVariables field. No CRD or operator
changes required.
Init container (hydrate.sh):
- Parses PLUGINS_JSON env var (JSON array of {url, branch} objects)
- Shallow-clones each plugin repo to /workspace/plugins/<name>/
Runner bridge (bridge.py):
- Reads PLUGINS_JSON during platform setup
- Resolves cloned paths to SdkPluginConfig entries
- Passes plugins to Claude Agent SDK options
Usage:
spec:
environmentVariables:
PLUGINS_JSON: '[{"url":"https://github.com/org/plugin","branch":"main"}]'
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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.
Summary
Adds support for loading Claude Code plugins into ACP sessions via the existing
spec.environmentVariablesfield. No CRD or operator changes required.hydrate.sh: ParsesPLUGINS_JSONenv var, shallow-clones each plugin repo to/workspace/plugins/<name>/bridge.py: ReadsPLUGINS_JSON, resolves cloned paths, passesSdkPluginConfigentries to the Claude Agent SDKReproducer
Prerequisites
A plugin repo that follows the Anthropic plugin spec (
.claude-plugin/plugin.json+commands/,agents/,skills/at root). For testing, usejeremyeder/ai-helpers-fixed-- a patched fork ofopendatahub-io/ai-helperswith the required manifest and symlinks (one-commit diff).1. Create a dev cluster from this PR
2. Create the runner secrets
kubectl create secret generic ambient-runner-secrets -n ambient-code \ --from-literal=ANTHROPIC_API_KEY="$ANTHROPIC_API_KEY"3. Create the MinIO bucket
4. Apply the test CR
5. Verify
Open the UI (
make kind-port-forward) and confirm the session showsodh-ai-helpers:*skills in the response, with RPM build analysis output from the/odh-ai-helpers:rpm-examinecommand.How it works
Test plan