Skip to content

fix: setup command fails to find root package.json due to Glob truncation #129

@amondnet

Description

@amondnet

Bug Fix: setup command fails to find root package.json

Track: fix-setup-glob-pattern-20260329

Overview

The /please-plugins:setup command instructs Claude to "Read package.json in the current working directory" (line 12), but this ambiguous instruction allows Claude to use the Glob tool first. In projects with node_modules/, hundreds of nested package.json files bury the root file beyond the Glob result limit (250), making the setup command unusable.

Root Cause

setup.md:12 uses ambiguous prose without constraining tool choice or path. The TypeScript hook check-dependencies.ts already handles this correctly with join(cwd, 'package.json').

Plan

Script delegation — add --setup CLI mode to check-dependencies.ts and rewrite setup.md to invoke it.

See: .please/docs/tracks/active/fix-setup-glob-pattern-20260329/plan.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions