fix(agents): replace broken relative protocol paths with Glob patterns#150
Open
xiaolai wants to merge 1 commit intotanweai:mainfrom
Open
fix(agents): replace broken relative protocol paths with Glob patterns#150xiaolai wants to merge 1 commit intotanweai:mainfrom
xiaolai wants to merge 1 commit intotanweai:mainfrom
Conversation
agents/tech-lead-p9.md, agents/cto-p10.md, and agents/senior-engineer-p7.md
all instructed Claude to `cat 同目录下的 references/p{7,9,10}-protocol.md`.
Agents run from a plugin context, not the `agents/` directory, so these
relative paths silently fail. The protocol files actually live at
`skills/pua/references/`. Replace every instance with the Glob search
pattern already used for SKILL.md loading in senior-engineer-p7.md.
Co-Authored-By: Claude Code <noreply@anthropic.com>
This was referenced Apr 26, 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.
What's broken
agents/tech-lead-p9.md,agents/cto-p10.md, andagents/senior-engineer-p7.mdall contain instructions like:These paths assume the agent file's directory is the working directory. In practice, Claude agents are loaded from the plugin install path, not the repository's
agents/subdirectory — so同目录下的 references/resolves to a directory that does not contain the protocol files. The actual files live at:When the path fails, Claude silently skips the methodology load and proceeds without the P7/P9/P10 protocol — the core behavioral spec for each persona level. This is a silent failure: no error, just missing context.
Fix
Replace every
cat 同目录下的 references/p{7,9,10}-protocol.mdwith the same Glob-search pattern already used correctly insenior-engineer-p7.mdforSKILL.mdloading:This is a five-word change per file, fully mechanical, and consistent with the existing loading convention in the codebase.