Worktree-isolated sessions refuse claude plugin eval (guard reads 'eval' as shell eval)

オープン 初心者向け
#5,696 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
shell

調査の方向性

この repo では Claude Code binary guard を変更できない。/evals:plugin-eval skill(plugin evals)を探し、worktree で隔離されたセッションが claude plugin eval を拒否することを文書化する。guard が eval を shell builtin として扱うためである。回避策を述べる: Claude Code の外の別ターミナルで同じコマンドを実行する。issue に記載のとおり、新しい Claude Code リリースで再確認する。

索引モデルが issue の本文から書いたものです。

説明

needs-human priority: low work-class: read-only

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

  1. Start a session isolated in a git worktree (Claude Code 2.1.285, Linux/WSL2).
  2. Have the model run claude plugin eval --help.
  3. Observed: refused with "this command runs a string through eval, which can't be verified to stay inside the worktree."
  4. Expected: claude plugin eval is a CLI subcommand, not shell eval, 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-eval should 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 --help from 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

主要言語
Shell
スター
22
フォーク
2
平均マージ
1時間 29分
マージ済み PR(30日)
895

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

melodic-software/claude-code-plugins のほかの issue

melodic-software/claude-code-plugins の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。