claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] `claude plugin validate` cuts footprint lines at about 1,000 characters, in text and `--json`

Open rapha-rodrigues opened this issue 1 month ago • 3 comments

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report
  • [x] I am using the latest version of Claude Code

What's Wrong?

For a hooks module that calls many mods API methods, claude plugin validate <plugin> shortens its footprint lines (calls:, state reads:, state writes:, and the types line's declares state:) to about 1,000 characters and appends … [+N chars]. --json carries the same shortened strings, and no flag prints the whole list.

Catalogues that read the footprint, such as karanb192/awesome-claude-code-mods (mods.aidojo.si), treat a shortened line as unknown access, so the mod cannot be listed with its access. A plugin has one hooks module (modules refuses a second entry), so its footprint cannot be split into shorter lines either.

What Should Happen?

The whole footprint, at least with --json.

Error Messages/Logs

❯ ./register.tsx calls: $.clock.after (via focusTurnComplete, schedulePreview), $.clock.every (via runClock), … $.http.fetch (via … [+1290 chars]

Steps to Reproduce

  1. git clone https://github.com/rapha-rodrigues/cc-esol && cd cc-esol && git checkout v1.0.2
  2. claude plugin validate plugins/cc-esol, or the same with --json
  3. The calls: line ends in $.http.fetch (via … [+1290 chars], and the state reads: and state writes: lines are cut the same way.

The same cut shows in the catalogue's CI scan on Linux: https://github.com/karanb192/awesome-claude-code-mods/actions/runs/40160920313

Is this a regression?

I don't know

Claude Code Version

2.1.310

Platform

Anthropic API (not relevant: the command runs offline)

Operating System

macOS, and Linux in the CI run above

Terminal/Shell

Not relevant: a non-interactive command

rapha-rodrigues avatar Oct 25 '26 15:10 rapha-rodrigues

Another case, and a count of how far this reaches.

ClaudeRipple (packages/mod): on 2.1.304, claude plugin validate --json packages/mod cuts four notes: calls: (… [+658 chars]), state writes: (+268), state reads: (+267) and the types line's declares state: (+14). Most of the calls: length is the via lists; $.http.fetch alone names twelve helpers.

git clone https://github.com/PBJ-2/clauderipple && cd clauderipple
claude plugin validate --json packages/mod

Reach. In karanb192/awesome-claude-code-mods, data/mods.json (scanned with 2.1.310 on 2026-10-25) lists 170 entries from 158 repositories as unknown access, with the reason Validator output was truncated. Since the catalogue began treating a cut line as unknown access on 2026-10-17, 172 entries have been cut. Only one has come back, after an unrelated change happened to bring its line under the cap. Seed submissions with a cut line are held until the validator prints the whole list (karanb192/awesome-claude-code-mods#391, karanb192/awesome-claude-code-mods#370).

The same 1,000-character cap on notes is still present in 2.1.311. Uncapped notes in --json, or calls as an array, would let catalogues read the whole footprint.

PBJ-2 avatar Oct 27 '26 01:10 PBJ-2

Another case, still on 2.1.322: GlanceFlow (Antreas-Strb/glanceflow, plugin glanceflow).

git clone https://github.com/Antreas-Strb/glanceflow && cd glanceflow && git checkout v0.33.3
claude plugin validate glanceflow --json

The calls: note stops at 1,000 characters and ends $.ui.open (via openChecklist, showHistory, sh… [+301 chars]. 34 calls show before the marker; 461 of those 1,000 characters are (via …) lists. On the catalogue this mod reads "Unknown access" (karanb192/awesome-claude-code-mods#489).

Even printing the calls without their via lists in --json would fit it, but the full list there would settle it for every mod.

Antreas-Strb avatar Nov 10 '26 12:11 Antreas-Strb

This was fixed in Claude Code 2.1.323, so we're closing this issue. If you disagree, let us know here and we can re-open it. Thanks for reporting!

bpasero-ant avatar Nov 29 '26 18:11 bpasero-ant