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. Claude Code 2.1.295 broke type-checking for mods in CI 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 https://github.com/anthropics/claude-code/issues/100736 References - PR · merged NahumLitvin/prismantis 61 https://github.com/NahumLitvin/prismantis/pull/61 : CI: pin typecheck to Claude Code 2.1.294 - issue · open anthropics/claude-code 100736 https://github.com/anthropics/claude-code/issues/100736 : FEATURE Mods: a headless way to write .claude-plugin/types for CI type-checks