[FEATURE REQUEST] Mandatory IDE Identity Confirmation for Multi-CLI Development

Resolved ๐Ÿ’ฌ 3 comments Opened Jun 20, 2025 by AnakinWu Closed Jan 5, 2026

## ๐ŸŽฏ Feature Request: Mandatory IDE Identity Confirmation

### ๐Ÿ“‹ Problem Statement

Claude Code currently lacks a mechanism to enforce identity confirmation at session
startup, causing significant issues for developers running multiple IDE instances with
different configurations.

Current problematic workflow:

  1. User starts Claude Code with /init or other commands
  2. Claude immediately begins task execution
  3. No confirmation of which IDE environment it's running in
  4. Port conflicts and configuration errors occur

### ๐Ÿšจ Real User Impact

I'm a professional developer running 4 parallel IDE environments:

  • Cursor (CLI #1) - ports 3010-3019, 8010-8019 (Main projects)
  • Windsurf (CLI #2) - ports 3020-3029, 8020-8029 (Tauri desktop apps)
  • VS Code (CLI #4) - ports 3040-3049, 8040-8049 (Web extensions)
  • Trae (CLI #3) - ports 3030-3039, 8030-8039 (Media processing)

What happens now:

  • Claude doesn't know which environment it's in
  • Port conflicts between different CLI instances
  • Manual intervention required every time
  • Breaks my established multi-project workflow

### ๐Ÿ’ก Proposed Solution

#### 1. Startup Identity Check
```typescript
interface IdentityConfirmation {
checkGlobalClaude(): boolean; // Check for global CLAUDE.md
hasIdentityRules(): boolean; // Parse identity rules
forceIdentityPrompt(): void; // Block all operations until confirmed
setSessionIdentity(id: string): void; // Remember for entire session
}

  1. UI Mock-up

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ โš ๏ธ IDE Identity Confirmation (Required) โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Please select current IDE environment: โ”‚
โ”‚ โ—‹ 1. Cursor (CLI #1) - ports 3010-3019 โ”‚
โ”‚ โ—‹ 2. Windsurf (CLI #2) - ports 3020-3029โ”‚
โ”‚ โ—‹ 3. VS Code (CLI #4) - ports 3040-3049 โ”‚
โ”‚ โ—‹ 4. Trae (CLI #3) - ports 3030-3039 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ [Confirm Selection] [Skip This Time]โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

  1. Configuration Integration

# ~/.claude/config.yml
identity_enforcement:
enabled: true
require_confirmation: true

environments:

  • id: "cursor_cli1"

name: "Cursor"
ports: { frontend: "3010-3019", backend: "8010-8019" }

  • id: "windsurf_cli2"

name: "Windsurf"
ports: { frontend: "3020-3029", backend: "8020-8029" }

๐Ÿ”„ Expected Workflow

New correct workflow:

  1. User starts Claude Code
  2. [NEW] Identity confirmation dialog appears immediately
  3. [NEW] All operations blocked until identity selected
  4. [NEW] Session remembers identity and applies port configurations
  5. Normal task execution with correct environment context

๐Ÿ“Š Business Value

For Individual Developers

  • โœ… Eliminate port conflicts in multi-IDE setups
  • โœ… Consistent environment-specific configurations
  • โœ… Reduced manual configuration overhead

For Enterprise Teams

  • โœ… Standardized Claude Code workflows
  • โœ… Project-specific environment management
  • โœ… Improved developer experience reliability

๐Ÿ› ๏ธ Technical Implementation

Phase 1: Core Mechanism

  • Global config file detection
  • Identity confirmation UI component
  • Session-level identity storage
  • Port configuration management

Phase 2: Advanced Features

  • Team configuration sharing
  • Project template association
  • Automatic environment detection

๐ŸŽฏ Success Criteria

  1. 100% reliable identity confirmation - Never skip the process
  2. Zero port conflicts - Automatic port range assignment
  3. Session persistence - Remember identity until restart
  4. User control - Option to disable for single-IDE users

๐Ÿ“ Additional Context

This feature request comes from real enterprise development needs. The ability to run
multiple Claude CLI instances reliably is crucial for:

  • Large codebases split across projects
  • Different technology stacks requiring different tooling
  • Parallel development of related applications

User Quote: "I need to know why Claude doesn't enforce identity confirmation on
startup. This is critical for my multi-IDE workflow!"

๐Ÿท๏ธ Labels Suggested

  • enhancement
  • feature-request
  • workflow
  • developer-experience
  • configuration

---
Would greatly appreciate consideration of this feature for improving Claude Code's
enterprise developer experience! ๐Ÿ™

<!-- Failed to upload "็ป™Anthropicๅ›ข้˜Ÿ็š„ๅปบ่ฎฎ.md" -->

View original on GitHub โ†—

This issue has 3 comments on GitHub. Read the full discussion on GitHub โ†—