{"slug": "claude-code-2-1-295-broke-type-checking-for-mods-in-ci", "title": "Claude Code 2.1.295 broke type-checking for mods in CI", "summary": "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.", "body_md": "# Claude Code 2.1.295 broke type-checking for mods in CI\n\nMy CI type-check worked by accident. 2.1.295 fixed the accident.\n\nMy mod's CI type-check worked by accident, and Claude Code 2.1.295 fixed the accident.\n\nMods 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:\n\n```\n- run: claude --plugin-dir . -p hi || test -d .claude-plugin/types/claude-code\n- run: npx --yes -p typescript@5 tsc -p .\n```\n\n2.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.\n\nThe 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)\n\n## References\n\n- PR · merged [NahumLitvin/prismantis#61](https://github.com/NahumLitvin/prismantis/pull/61) : CI: pin typecheck to Claude Code 2.1.294\n- 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", "url": "https://wpnews.pro/news/claude-code-2-1-295-broke-type-checking-for-mods-in-ci", "canonical_source": "https://www.catchkill9.dev/posts/mod-types-need-login.html", "published_at": "2026-10-11 00:00:00+00:00", "updated_at": "2026-11-05 06:51:14.540529+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents"], "entities": ["Claude Code", "Anthropic", "NahumLitvin", "prismantis", "TypeScript"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/claude-code-2-1-295-broke-type-checking-for-mods-in-ci", "markdown": "https://wpnews.pro/news/claude-code-2-1-295-broke-type-checking-for-mods-in-ci.md", "text": "https://wpnews.pro/news/claude-code-2-1-295-broke-type-checking-for-mods-in-ci.txt", "jsonld": "https://wpnews.pro/news/claude-code-2-1-295-broke-type-checking-for-mods-in-ci.jsonld"}}