docs(agent-development): document ${CLAUDE_PLUGIN_ROOT} limitation in subagents#65919
Open
Hadeer-Elsaeed wants to merge 1 commit into
Open
docs(agent-development): document ${CLAUDE_PLUGIN_ROOT} limitation in subagents#65919Hadeer-Elsaeed wants to merge 1 commit into
Hadeer-Elsaeed wants to merge 1 commit into
Conversation
… subagents
Subagents receive ${CLAUDE_PLUGIN_ROOT} and ${CLAUDE_PROJECT_DIR} as literal
strings instead of resolved paths (issue anthropics#65768, affects ≤ 2.1.166). This
breaks any subagent that tries to read plugin-bundled files.
Adds a Known Limitations section to SKILL.md with a resolution matrix and
pointers to workarounds, plus a new reference file documenting two concrete
workarounds:
- SessionStart hook staging: copies plugin files to .plugin-cache/ so
subagents can read them via stable relative paths (recommended for
multi-agent plugins with shared resources)
- Orchestrator injection: parent command reads the file and passes content
as text in the subagent spawn prompt (better for small, single-use cases)
Also clarifies that the `tools:` frontmatter field is a hard capability
boundary (not just a prompt-gating mechanism like command `allowed-tools`).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced Jun 7, 2026
stevei101
approved these changes
Jun 10, 2026
stevei101
left a comment
There was a problem hiding this comment.
Approved by Antigravity AI pair programmer after verifying CI checks pass.
This was referenced Jun 11, 2026
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.
Subagents receive ${CLAUDE_PLUGIN_ROOT} and ${CLAUDE_PROJECT_DIR} as literal strings instead of resolved paths (issue #65768, affects ≤ 2.1.166). This breaks any subagent that tries to read plugin-bundled files.
Adds a Known Limitations section to SKILL.md with a resolution matrix and pointers to workarounds, plus a new reference file documenting two concrete workarounds:
Also clarifies that the
tools:frontmatter field is a hard capability boundary (not just a prompt-gating mechanism like commandallowed-tools).issue #65768