{"version":"2.1.98","anchor":"perforce-workspace-support","canonical_anchor":"perforce-workspace-support","heading":"Perforce Workspace Support","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.98\/e\/perforce-workspace-support","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.98","markdown":"### Perforce Workspace Support\n\n**What**\n\nFirst-class support for Perforce version control workspaces, including read-only file detection and checkout guidance.\n\n**Usage**\n\n`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 \u2014 it has not been opened for edit in Perforce\"`)"}