File Explorer
The File Explorer in Claude Forge lets you browse your project files directly in the sidebar, providing quick access and context for your AI prompts.
Overview
The File Explorer displays your project as a collapsible tree:
src/
├── components/
│ ├── Button.tsx
│ └── Modal.tsx
├── utils/
│ └── helpers.ts
└── App.tsxBasic Usage
Expanding Folders
- Click on a folder to expand/collapse it
- Click the chevron icon for the same effect
- Expanded folders show their contents
Selecting Files
- Click on a file to select it
- The selected file is highlighted
- Selection provides context for your prompts
Collapse All
- Click the collapse icon in the header to collapse all folders
- Useful for resetting the view in large projects
Section Toggle
The File Explorer can be collapsed to save space:
- Click the chevron next to "Files" in the header
- The entire explorer collapses to just the header
- Click again to expand
File Icons
Files are displayed with icons based on their type:
| Extension | Displayed As |
|---|---|
.js, .ts | JavaScript/TypeScript |
.jsx, .tsx | React components |
.css, .scss | Stylesheets |
.json | Configuration |
.md | Markdown |
| Others | Generic file |
Folders have a distinctive folder icon that changes when expanded.
Filtering
The File Explorer automatically excludes certain files and folders:
Excluded by Default
node_modules/.git/dist/,build/.cache/- Various IDE folders (
.idea/,.vscode/)
Respects .gitignore
If your project has a .gitignore file, those patterns are also excluded from the explorer.
File Context
When you select a file:
- The file path is shown as selected
- Your prompts can reference "the selected file"
- Claude understands which file you're working with
Example workflow:
- Navigate to
src/components/Button.tsx - Click to select it
- Type: "Add prop types to this component"
- Claude knows to modify
Button.tsx
Performance
For large projects, the File Explorer uses optimizations:
- Lazy loading - Folder contents load on expand
- Virtual scrolling - Only visible items are rendered
- Caching - Previously loaded directories are cached
Refreshing
If files change outside of Claude Forge:
- The explorer updates automatically on project switch
- Close and reopen the project to force a refresh
- The tree rebuilds when the project path changes
Limitations
- Deep nesting - Very deep folder structures may be hard to navigate
- Large directories - Folders with thousands of files may be slow
- Binary files - Shown but not selectable for AI context
Best Practices
Keep Projects Focused
Open specific subdirectories rather than entire monorepos:
# Instead of opening the root:
/my-monorepo/
# Open specific packages:
/my-monorepo/packages/frontend/
/my-monorepo/packages/backend/Use .gitignore
Ensure your .gitignore excludes:
node_modules/
dist/
build/
.cache/
*.logThis keeps the explorer clean and fast.
Navigate with Prompts
You can also ask Claude to find files:
Find all files that contain "TODO" commentsList all React components in this projectTroubleshooting
Explorer not loading
Solutions:
- Check if the project path is valid
- Try reopening the project
- Check file permissions
Missing files
Possible causes:
- File is in
.gitignore - File was created after opening project
- File is hidden (starts with
.)
Solutions:
- Check exclusion patterns
- Refresh by closing/reopening project
- Hidden files are intentionally excluded
Slow performance
Solutions:
- Open a smaller subdirectory
- Ensure large folders are in
.gitignore - Collapse unused directories