# matt1398/claude-devtools architecture

> Architecture diagram of the GitHub repository matt1398/claude-devtools, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/matt1398/claude-devtools
- Repository: https://github.com/matt1398/claude-devtools

## Overview

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: [`src/main/index.ts`](https://github.com/matt1398/claude-devtools/blob/main/src/main/index.ts) (Electron main), [`src/renderer/App.tsx`](https://github.com/matt1398/claude-devtools/blob/main/src/renderer/App.tsx) (App interface), [`src/main/ipc/handlers.ts`](https://github.com/matt1398/claude-devtools/blob/main/src/main/ipc/handlers.ts) (IPC handlers), [`src/main/services/discovery/ProjectScanner.ts`](https://github.com/matt1398/claude-devtools/blob/main/src/main/services/discovery/ProjectScanner.ts) (Session discovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_main["Electron main<br/>[index.ts]"]
  node_ipc["IPC handlers<br/>[handlers.ts]"]
  node_preload["Preload bridge<br/>[index.ts]"]
  node_renderer["App interface<br/>[App.tsx]"]
end

subgraph group_session["Session inspection"]
  node_sessiondata["Session discovery<br/>[ProjectScanner.ts]"]
  node_parsing["Transcript parsing<br/>[SessionParser.ts]"]
  node_analysis["Session analysis"]
  node_sessionapi["Session access<br/>[sessions.ts]"]
  node_chat["Conversation views"]
  node_search["Session search<br/>[SessionSearcher.ts]"]
end

subgraph group_project["Project and context"]
  node_context["Context reconstruction"]
  node_memory["Project memory<br/>[memory.ts]"]
  node_projects["Project discovery<br/>[ProjectScanner.ts]"]
  node_ssh["SSH contexts"]
end

subgraph group_operations["Configuration and operations"]
  node_config["Settings and triggers<br/>[ConfigManager.ts]"]
  node_notifications["Errors and notifications"]
  node_http["HTTP interface<br/>[HttpServer.ts]"]
end

node_user(("Developer"))
node_logs["Claude Code logs"]

node_user -->|"opens"| node_renderer
node_logs -->|"reads sessions"| node_sessiondata
node_sessiondata -.->|"parses transcripts"| node_parsing
node_parsing -.->|"reconstructs activity"| node_analysis
node_user -->|"inspects sessions"| node_chat
node_user -->|"inspects context"| node_context
node_user -->|"searches sessions"| node_search
node_user -->|"views memory"| node_memory
node_main -->|"registers handlers"| node_ipc
node_ipc -->|"registers domain handlers"| node_sessionapi
node_renderer -.->|"uses bridge"| node_preload
node_renderer -.->|"requests data"| node_ipc
node_main -->|"initializes"| node_ssh
node_main -.->|"starts server"| node_http
node_config -->|"configures alerts"| node_notifications
node_user -->|"browses projects"| node_projects

click node_main "https://github.com/matt1398/claude-devtools/blob/main/src/main/index.ts"
click node_ipc "https://github.com/matt1398/claude-devtools/blob/main/src/main/ipc/handlers.ts"
click node_preload "https://github.com/matt1398/claude-devtools/blob/main/src/preload/index.ts"
click node_renderer "https://github.com/matt1398/claude-devtools/blob/main/src/renderer/App.tsx"
click node_sessiondata "https://github.com/matt1398/claude-devtools/blob/main/src/main/services/discovery/ProjectScanner.ts"
click node_parsing "https://github.com/matt1398/claude-devtools/blob/main/src/main/services/parsing/SessionParser.ts"
click node_analysis "https://github.com/matt1398/claude-devtools/tree/main/src/main/services/analysis"
click node_sessionapi "https://github.com/matt1398/claude-devtools/blob/main/src/main/ipc/sessions.ts"
click node_chat "https://github.com/matt1398/claude-devtools/tree/main/src/renderer/components/chat"
click node_search "https://github.com/matt1398/claude-devtools/blob/main/src/main/services/discovery/SessionSearcher.ts"
click node_context "https://github.com/matt1398/claude-devtools/tree/main/src/renderer/components/chat/SessionContextPanel"
click node_memory "https://github.com/matt1398/claude-devtools/blob/main/src/main/ipc/memory.ts"
click node_projects "https://github.com/matt1398/claude-devtools/blob/main/src/main/services/discovery/ProjectScanner.ts"
click node_ssh "https://github.com/matt1398/claude-devtools/blob/main/src/main/services/infrastructure/SshConnectionManager.ts"
click node_config "https://github.com/matt1398/claude-devtools/blob/main/src/main/services/infrastructure/ConfigManager.ts"
click node_notifications "https://github.com/matt1398/claude-devtools/blob/main/src/main/services/infrastructure/NotificationManager.ts"
click node_http "https://github.com/matt1398/claude-devtools/blob/main/src/main/services/infrastructure/HttpServer.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_ipc,node_preload,node_renderer toneBlue
class node_sessiondata,node_parsing,node_analysis,node_sessionapi,node_chat,node_search toneAmber
class node_context,node_memory,node_projects,node_ssh toneMint
class node_config,node_notifications,node_http toneRose
class node_user,node_logs toneIndigo
```

## Components

### Application shell

- [Electron main](https://github.com/matt1398/claude-devtools/blob/main/src/main/index.ts): `src/main/index.ts`
- [IPC handlers](https://github.com/matt1398/claude-devtools/blob/main/src/main/ipc/handlers.ts): `src/main/ipc/handlers.ts`
- [Preload bridge](https://github.com/matt1398/claude-devtools/blob/main/src/preload/index.ts): `src/preload/index.ts`
- [App interface](https://github.com/matt1398/claude-devtools/blob/main/src/renderer/App.tsx): `src/renderer/App.tsx`

### Session inspection

- [Session discovery](https://github.com/matt1398/claude-devtools/blob/main/src/main/services/discovery/ProjectScanner.ts): `src/main/services/discovery/ProjectScanner.ts`
- [Transcript parsing](https://github.com/matt1398/claude-devtools/blob/main/src/main/services/parsing/SessionParser.ts): `src/main/services/parsing/SessionParser.ts`
- [Session analysis](https://github.com/matt1398/claude-devtools/tree/main/src/main/services/analysis): `src/main/services/analysis`
- [Session access](https://github.com/matt1398/claude-devtools/blob/main/src/main/ipc/sessions.ts): `src/main/ipc/sessions.ts`
- [Conversation views](https://github.com/matt1398/claude-devtools/tree/main/src/renderer/components/chat): `src/renderer/components/chat`
- [Session search](https://github.com/matt1398/claude-devtools/blob/main/src/main/services/discovery/SessionSearcher.ts): `src/main/services/discovery/SessionSearcher.ts`

### Project and context

- [Context reconstruction](https://github.com/matt1398/claude-devtools/tree/main/src/renderer/components/chat/SessionContextPanel): `src/renderer/components/chat/SessionContextPanel`
- [Project memory](https://github.com/matt1398/claude-devtools/blob/main/src/main/ipc/memory.ts): `src/main/ipc/memory.ts`
- [Project discovery](https://github.com/matt1398/claude-devtools/blob/main/src/main/services/discovery/ProjectScanner.ts): `src/main/services/discovery/ProjectScanner.ts`
- [SSH contexts](https://github.com/matt1398/claude-devtools/blob/main/src/main/services/infrastructure/SshConnectionManager.ts): `src/main/services/infrastructure/SshConnectionManager.ts`

### Configuration and operations

- [Settings and triggers](https://github.com/matt1398/claude-devtools/blob/main/src/main/services/infrastructure/ConfigManager.ts): `src/main/services/infrastructure/ConfigManager.ts`
- [Errors and notifications](https://github.com/matt1398/claude-devtools/blob/main/src/main/services/infrastructure/NotificationManager.ts): `src/main/services/infrastructure/NotificationManager.ts`
- [HTTP interface](https://github.com/matt1398/claude-devtools/blob/main/src/main/services/infrastructure/HttpServer.ts): `src/main/services/infrastructure/HttpServer.ts`

### Other components

- **Developer**
- **Claude Code logs**

## Connections

- 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 (evidence: `src/main/index.ts`)
- IPC handlers → Session access: registers domain handlers (evidence: `src/main/ipc/handlers.ts`)
- App interface → Preload bridge: uses bridge
- App interface → IPC handlers: requests data
- Electron main → SSH contexts: initializes (evidence: `src/main/index.ts`)
- Electron main → HTTP interface: starts server (evidence: `src/main/index.ts`)
- Settings and triggers → Errors and notifications: configures alerts (evidence: `src/main/services/infrastructure/NotificationManager.ts`)
- Developer → Project discovery: browses projects
