feat: resolve Claude Code plugins from settings and pass to Agent SDK#1677
feat: resolve Claude Code plugins from settings and pass to Agent SDK#167742tg wants to merge 1 commit intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL 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)
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.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
114316c to
7aec532
Compare
ApprovabilityVerdict: Needs human review This PR introduces a new feature that enables plugin loading by reading settings files and passing resolved plugin paths to the Claude Agent SDK. Since this activates new runtime behavior (loading external plugin code that wasn't previously being passed to the SDK), human review is recommended. You can customize Macroscope's approvability policy. Learn more. |

Summary
@t3tools/shared/claude-pluginssubpath export with plugin resolution logicTest plan
Note
Medium Risk
Introduces filesystem-driven plugin resolution and passes local plugin paths into the Claude runtime, which can change execution behavior and is sensitive to misconfiguration or unexpected local state.
Overview
Claude Agent sessions now automatically load Claude Code plugins enabled in
.claude/settings*.jsonby resolving each enabled plugin key to its local cache directory under~/.claude/plugins/cacheand passing those paths to the Agent SDK viaClaudeQueryOptions.plugins.This adds a new
@t3tools/shared/claude-pluginsexport with filesystem-based settings parsing and cache version selection (skipping missing/orphaned versions), and wires it intoClaudeAdapterat session start (usingcwdwhen provided).Written by Cursor Bugbot for commit 7aec532. This will update automatically on new commits. Configure here.
Note
Resolve Claude Code plugins from settings and pass them to the Agent SDK
claude-pluginsmodule that readsenabledPluginsfrom user, project, and local Claude settings files, merges them in priority order, and resolves each to a concrete filesystem path under~/.claude/plugins/cache/.ClaudeAdapternow callsresolveEnabledPluginsbefore buildingClaudeQueryOptionsand passes resolved plugins aslocalSDK plugin descriptors via thepluginsfield.Macroscope summarized 7aec532.