Opening the Session Browser
- Keyboard
- Quick Actions
- Main Panel
src/renderer/constants/shortcuts.ts:45-49src/renderer/components/AgentSessionsModal.tsx
Supported Providers
- Claude Code
- Other Agents
Full SupportMaestro reads Claude Code’s session history from Implementation:
~/.claude/projects/.What You Get
- Complete conversation history
- Token usage statistics
- Cache hit/creation metrics
- Cost tracking (USD)
- Message timestamps
- Project context
Path Encoding
Claude Code encodes project paths by replacing/ with -:src/main/index.ts (IPC handlers)Session Browser Interface
Main List View
The session browser displays:Session Cards
Each session shows:
- First message preview (truncated)
- Message count (total conversation turns)
- Last modified (relative time)
- File size (session data size)
- Star status (if starred in Maestro)
Search Bar
Search sessions by:
- Message content (searches all messages)
- Session names (if named in Maestro)
- User messages only
- Assistant responses only
claude:searchSessionsSession Detail View
Click any session to view its full conversation:- Paginated message loading (20 messages per page)
- Syntax-highlighted code blocks
- Tool call cards with expand/collapse
- Scroll position preservation
- Copy message content
src/renderer/components/AgentSessionsModal.tsx:238-420
Search Capabilities
Search Modes
- All Content
- User Messages
- Assistant
- Title Only
src/main/index.ts → claude:searchSessions
Resuming Sessions
When you resume a session, Maestro:Loads Context
The AI provider (Claude Code) loads the full conversation history from its session storage.
Global Statistics
View aggregated statistics across all your Claude Code sessions:Metrics Tracked
Streaming Updates
Global stats calculation is progressive - you see results as they’re computed:src/main/index.ts → claude:getGlobalStats, claude:onGlobalStatsUpdate
IPC API Reference
All session discovery features use these IPC handlers:List Sessions
Read Messages
Search
Global Stats
src/main/preload.ts:203-226
Storage Location
Claude Code Sessions
Maestro Metadata
Maestro never modifies Claude Code’s session files - it only reads them. Your session data remains pristine.
Starring Sessions
Mark important sessions with a star:- Click the star icon in the session list
- Starred sessions appear at the top
- Star status persists in Maestro’s settings
Keyboard Navigation
Navigate the session browser with keyboard:Performance Optimizations
Pagination
Pagination
Sessions and messages are loaded in batches to handle large histories:
- Session list: Load 50 at a time
- Message list: Load 20 at a time
- Infinite scroll: Auto-load more as you scroll
Lazy Loading
Lazy Loading
Message content is loaded only when you open a session detail view.The list view shows only metadata (first message, counts, timestamps).
Search Indexing
Search Indexing
Search uses streaming file reads with line-by-line matching to avoid loading entire sessions into memory.
Progressive Stats
Progressive Stats
Global stats are calculated incrementally with UI updates every 100ms to show progress.
Next Steps
Agent Management
Create and organize agents
Dual-Mode Sessions
Switch between AI and terminal
File Explorer
Browse files and use @-mentions
Git Integration
Version control features