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

Aperta Adatta ai principianti
#5,696 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
62/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
shell

Direzione di ricerca

Il Claude Code binary guard non può essere modificato in questo repo. Individua la skill /evals:plugin-eval (plugin evals) e documenta che le sessioni isolate nel worktree rifiutano claude plugin eval perché il guard tratta eval come lo shell builtin. Indica il workaround: esegui il comando esatto in un terminale separato fuori da Claude Code. Ricontrolla sulle nuove release di Claude Code come descritto nell'issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Shell
Stelle
22
Fork
2
Merge medio
1h 38m
PR unite (30g)
911

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di melodic-software/claude-code-plugins

Tutte le issue di melodic-software/claude-code-plugins

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.