Feature Request: Display Current Working Directory in Interface
Feature Request: Display Current Working Directory in Interface ๐๐ฏ
Summary ๐
Add visual indication of the current working directory (pwd) in Claude Code's interface to improve user spatial awareness and reduce context switching. This is important when jumping between Claude Code instances.
Problem Description โ ๏ธ
Currently, users have no visual indication of their current working directory in Claude Code's interface. This creates several usability issues:
- Context Loss: Users must mentally track or explicitly run
pwdcommands to know their current location ๐งญ - Error-Prone Operations: File operations become risky when users are unsure of their location ๐ฏ
- Workflow Interruption: Constant need to verify location breaks concentration ๐
- Multi-Project Confusion: When working across multiple projects, it's easy to lose track of which directory context you're in ๐
Proposed Solution ๐ก
UI Design Options ๐จ
- Option A: Breadcrumb Bar (Recommended)
````
๐ /Users/username/projects/my-app/src/components
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ > Enter your message... โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Option B: Prompt Prefix
````
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ~/projects/my-app/src > Enter your message โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Option C: Status Bar/Footer
````
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ > Enter your message... โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Current: /Users/username/projects/my-app
Features โก๏ธ
- Smart Path Truncation: Show
~/...../current-folderfor long paths ๐ - Clickable Segments: Allow navigation by clicking path segments ๐ฑ๏ธ
- Copy Path: Right-click to copy full path to clipboard ๐
- Git Integration: Show git repo root and current branch when applicable ๐ฟ
- Theme Aware: Adapt colors to current Claude Code theme ๐จ
Use Cases & Benefits ๐ฏ
Primary Use Cases ๐
- Multi-Project Development: Developers working across multiple codebases simultaneously ๐
- Deep Directory Navigation: Working in projects with complex folder structures ๐๏ธ
- File Operations: Confident execution of file creation, reading, and editing commands ๐
- Git Workflows: Understanding context when working with repository operations ๐ฟ
Benefits โจ
- Reduced Cognitive Load: No need to mentally track current location ๐ง
- Faster Workflow: Eliminate
pwdcommand interruptions โก๏ธ - Error Prevention: Avoid accidentally operating in wrong directories ๐ก๏ธ
- Better UX: Match standard IDE/terminal experience users expect ๐ฎ
- Accessibility: Visual confirmation for all users, especially helpful for screen readers ๐๏ธ
Implementation Considerations ๐ง
Technical Requirements โ๏ธ
- Real-time Updates: Display should update when Claude executes
cdcommands ๐ - Cross-Platform: Handle Windows (
C:\), macOS/Linux (/) path formats ๐ฅ๏ธ - Performance: Minimal impact on interface responsiveness โก๏ธ
- Memory: Efficient path tracking without excessive overhead ๐พ
Configuration Options โ๏ธ
{
"interface": {
"showWorkingDirectory": true,
"pathDisplayStyle": "breadcrumb", // "breadcrumb" | "prefix" | "status"
"pathTruncation": "smart", // "smart" | "middle" | "start" | "none"
"maxPathLength": 50
}
}
Edge Cases ๐งฉ
- Permission Issues: Handle directories Claude can't access ๐
- Very Long Paths: Graceful truncation strategies ๐
- Special Characters: Proper escaping/display of unicode paths ๐
- Symlinks: Show resolved vs. apparent path options ๐
Priority & Impact ๐ฏ
Priority: Medium-High
Effort: Low-Medium
Impact: High UX improvement
This feature would align Claude Code with standard IDE/terminal conventions and significantly improve developer workflow efficiency\! ๐โจ
This issue has 4 comments on GitHub. Read the full discussion on GitHub โ