cd /news/ai-tools/claude-code-2-1-295-broke-type-check… · home › topics › ai-tools › article
[ARTICLE · art-164396] src=catchkill9.dev ↗ pub= topic=ai-tools verified=true sentiment=↓ negative

Claude Code 2.1.295 broke type-checking for mods in CI

Claude Code 2.1.295 stopped writing API type files into a `--plugin-dir` folder during headless `-p` sessions, breaking CI type-checking for mods that import their types from `'claude-code'`, according to a developer report. The mod author's CI job had relied on a headless run failing at login while still laying down `.claude-plugin/types/claude-code`, which `tsc` then consumed; the job is now pinned to Claude Code 2.1.294 via merged PR NahumLitvin/prismantis#61. The author filed open issue anthropics/claude-code#100736 asking that `claude plugin validate`, which already reads the manifest offline, also write the types.

key takeaway

Claude Code 2.1.295 no longer writes `.claude-plugin/types/` in `--plugin-dir` headless `-p` sessions, so CI runners without a login get no types and `tsc` fails on every `'claude-code'` import; pinning to 2.1.294 restores the workaround.

by read1 min views38 publishedOct 11, 2026
Claude Code 2.1.295 broke type-checking for mods in CI
Image: Catchkill9 (auto-discovered)

My CI type-check worked by accident. 2.1.295 fixed the accident.

My mod's CI type-check worked by accident, and Claude Code 2.1.295 fixed the accident.

Mods import their API types from 'claude-code', but no package ships them. The engine writes them into .claude-plugin/types/ when it loads the mod. A CI runner has no login, so I let a headless run fail on login and kept the files it laid first:

- run: claude --plugin-dir . -p hi || test -d .claude-plugin/types/claude-code
- run: npx --yes -p typescript@5 tsc -p .

2.1.295 stopped writing types into a --plugin-dir folder in -p sessions. Right call for users. For CI it removed the only way a runner without a login could get them: the run prints "Not logged in", no types land, and tsc fails on every import.

The job pins 2.1.294 for now. I asked for claude plugin validate, which already reads the manifest offline, to write the types too: https://github.com/anthropics/claude-code/issues/100736

References #

── more in #ai-tools 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/claude-code-2-1-295-…] indexed:0 read:1min 2026-10-11 · —