Worktree-isolated sessions refuse claude plugin eval (guard reads 'eval' as shell eval)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- shell
- Domain
- cli, documentation, tooling
Research direction
The Claude Code binary guard cannot be changed in this repo. Locate the /evals:plugin-eval skill (plugin evals) and document that worktree-isolated sessions refuse claude plugin eval because the guard treats eval as the shell builtin. State the workaround: run the exact command in a separate terminal outside Claude Code. Recheck on new Claude Code releases as described in the issue.
Written by the indexing model from the issue text.
Description
Summary
In a worktree-isolated Claude Code session, the Bash tool refuses any command that contains eval as a word, including claude plugin eval and claude plugin eval --help. The guard reads the subcommand as the shell builtin eval. Plugin skills that run plugin evals (/evals:plugin-eval) therefore cannot run from an isolated worktree session.
The guard is built into Claude Code: its message text is in the 2.1.285 binary, not in any plugin in this repo. Per our rule against filing on Anthropic's repositories, this issue tracks the limitation here.
Repro
- Start a session isolated in a git worktree (Claude Code 2.1.285, Linux/WSL2).
- Have the model run
claude plugin eval --help. - Observed: refused with "this command runs a string through eval, which can't be verified to stay inside the worktree."
- Expected:
claude plugin evalis a CLI subcommand, not shelleval, so it should run.
claude --version and claude plugin --help pass. Another message from the same guard: "uses a subshell in a command inside a construct too complex to verify".
Workaround
Run the command in a separate terminal outside Claude Code. The ! prefix does not work: the user's own ! command in the same session is refused with the identical message (verified 2026-10-01). Do not bypass the guard with wrapper scripts.
Follow-ups
/evals:plugin-evalshould name this limitation and give the user the exact command to run in a separate terminal when it runs in a worktree-isolated session.- The refusal message ends "a worktree-isolated session's git operations must target its own worktree", which is misleading because this command is not a git operation.
- Recheck on each Claude Code release: run
claude plugin eval --helpfrom an isolated worktree session, and close this issue once it passes.
Found while running an approved observation run during the eval-design/hillclimbing digest interview (branch feat/eval-design-hillclimbing-digest).
🤖 Generated with Claude Code
- Dominant language
- Shell
- Stars
- 22
- Forks
- 2
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 895
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from melodic-software/claude-code-plugins
-
agent-ready priority: medium status: ready work-class: scoped
Difficulty 1/5 Under an hour Newbie friendliness 75/100
melodic-software/claude-code-plugins#12762 ·
Maintainers usually reply within 1 day
-
agent-ready priority: medium status: ready work-class: scoped
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
melodic-software/claude-code-plugins#12716 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
melodic-software/claude-code-plugins#9179 · 1 comment ·
Maintainers usually reply within 1 day
-
priority: low status: confirmed
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
melodic-software/claude-code-plugins#8799 ·
Maintainers usually reply within 1 day
-
priority: low status: ready work-class: scoped
Difficulty 3/5 1-2 days Newbie friendliness 55/100
melodic-software/claude-code-plugins#12776 ·
Maintainers usually reply within 1 day
All issues in melodic-software/claude-code-plugins
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
openSUSE/rpm-config-SUSE#98 ·
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
ISKME/Open-Metadata-Exchange#425 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
suitenumerique/find#205 ·
Maintainers usually reply within 2 days