Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.98 Home All releases olderv2.1.97 v2.1.100newer
Claude Code v2.1.98

Perforce Workspace Support

What

First-class support for Perforce version control workspaces, including read-only file detection and checkout guidance.

Usage
export CLAUDE_CODE_PERFORCE_MODE=1
Details
  • When enabled, Claude Code detects files that haven't been opened for edit in Perforce
  • Write tool returns a specific error message guiding users to run p4 edit <file> before modifying
  • Prevents chmod workarounds that would bypass Perforce tracking
  • System prompt includes Perforce-specific guidance for the model
Evidence

Perforce mode (search for "CLAUDE_CODE_PERFORCE_MODE" and "File is read-only — it has not been opened for edit in Perforce")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.98 →