How matt1398/claude-devtools works
claude-devtools is an Electron desktop debugging interface for inspecting Claude Code session logs. Users open the app to browse reconstructed conversations and tool activity, inspect context and token usage, search sessions, and view project memory; settings, notifications, and SSH contexts support that workflow. The README documents these capabilities, while the sampled source confirms the main-process handler orchestration and renderer entry point. Many domain implementations were not sampled, so only documented or source-supported relationships are drawn.
Main entry points: index.ts Electron main · App.tsx App interface · handlers.ts IPC handlers · ProjectScanner.ts Session discovery
Components 19
Application shell
- Electron main
src/main/index.ts - IPC handlers
src/main/ipc/handlers.ts - Preload bridge
src/preload/index.ts - App interface
src/renderer/App.tsx
Session inspection
- Session discovery
src/main/services/discovery/ProjectScanner.ts - Transcript parsing
src/main/services/parsing/SessionParser.ts - Session analysis
src/main/services/analysis - Session access
src/main/ipc/sessions.ts - Conversation views
src/renderer/components/chat - Session search
src/main/services/discovery/SessionSearcher.ts
Project and context
- Context reconstruction
src/renderer/components/chat/SessionContextPanel - Project memory
src/main/ipc/memory.ts - Project discovery
src/main/services/discovery/ProjectScanner.ts - SSH contexts
src/main/services/infrastructure/SshConnectionManager.ts
Configuration and operations
- Settings and triggers
src/main/services/infrastructure/ConfigManager.ts - Errors and notifications
src/main/services/infrastructure/NotificationManager.ts - HTTP interface
src/main/services/infrastructure/HttpServer.ts
Other components
- Developer
- Claude Code logs
Connections 16
- Developer → App interface: opens
- Claude Code logs → Session discovery: reads sessions
- Session discovery → Transcript parsing: parses transcripts
- Transcript parsing → Session analysis: reconstructs activity
- Developer → Conversation views: inspects sessions
- Developer → Context reconstruction: inspects context
- Developer → Session search: searches sessions
- Developer → Project memory: views memory
- Electron main → IPC handlers: registers handlers
src/main/index.ts - IPC handlers → Session access: registers domain handlers
src/main/ipc/handlers.ts - App interface → Preload bridge: uses bridge
- App interface → IPC handlers: requests data
- Electron main → SSH contexts: initializes
src/main/index.ts - Electron main → HTTP interface: starts server
src/main/index.ts - Settings and triggers → Errors and notifications: configures alerts
src/main/services/infrastructure/NotificationManager.ts - Developer → Project discovery: browses projects