# Claude Code 2.1.295 broke type-checking for mods in CI

> Source: <https://www.catchkill9.dev/posts/mod-types-need-login.html>
> Published: 2026-10-11 00:00:00+00:00

**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.

# 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
