# progmboy/openprocmon architecture

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

- Interactive diagram: https://gitdiagram.com/progmboy/openprocmon
- Repository: https://github.com/progmboy/openprocmon

## Overview

OpenProcMon captures Windows activity through a kernel miniFilter and presents parsed events in a desktop GUI or CLI/MCP analysis workflow. The graph includes the documented capture, filtering, PML, process/context, and analysis capabilities. Some subsystem links rely on README or SOURCE INDEX references; unsampled implementation details are not assumed.

Main entry points: [`crates/gui/src/app.rs`](https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/app.rs) (GUI application state), [`crates/cli/src/main.rs`](https://github.com/progmboy/openprocmon/blob/master/crates/cli/src/main.rs) (CLI command router), [`crates/sdk/src/pipeline.rs`](https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/pipeline.rs) (Receive and parse), [`crates/sdk/src/source.rs`](https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/source.rs) (SDK source API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_driver["Kernel capture"]
  node_kernel["MiniFilter callbacks"]
  node_wire["Driver wire contract<br/>[logsdk.h]"]
end

subgraph group_sdk["SDK processing"]
  node_sdk_api["SDK source API<br/>[source.rs]"]
  node_sdk_port["Driver communication<br/>[port.rs]"]
  node_pipeline["Receive and parse<br/>[pipeline.rs]"]
  node_record["Event and record model<br/>[event.rs]"]
  node_process["Process tracking<br/>[process.rs]"]
  node_network["Network event parsing<br/>[network.rs]"]
  node_pml["PML read and write"]
end

subgraph group_gui["Desktop interface"]
  node_gui_app["GUI application state<br/>[app.rs]"]
  node_gui_source["Live and PML sources<br/>[sdk_source.rs]"]
  node_gui_table["Event table<br/>[event_table.rs]"]
  node_gui_detail["Event details<br/>[detail_panel.rs]"]
  node_gui_filter["Filtering and highlights<br/>[filter.rs]"]
  node_gui_summaries["Activity summaries"]
  node_gui_tree["Process tree<br/>[process_tree.rs]"]
end

subgraph group_analysis["CLI analysis"]
  node_cli["CLI command router<br/>[main.rs]"]
  node_mcp["MCP server<br/>[mcp.rs]"]
  node_orchestrator["Capture orchestration<br/>[orchestrate.rs]"]
end

subgraph group_core["Analysis engine"]
  node_core_query["Filter and group query<br/>[query.rs]"]
  node_core_analyze["Analysis and timeline<br/>[analyze.rs]"]
end

node_user(("User or agent"))
node_pml_file["PML log"]

node_user -->|"initiates capture"| node_kernel
node_kernel -->|"emits records"| node_wire
node_wire -->|"defines contract"| node_sdk_port
node_sdk_port -->|"receives batches"| node_pipeline
node_pipeline -->|"parses events"| node_record
node_pipeline -->|"enriches processes"| node_process
node_pipeline -->|"emits network events"| node_network
node_sdk_api -->|"connects driver"| node_sdk_port
node_sdk_api -->|"opens PML"| node_pml
node_user -->|"uses GUI"| node_gui_app
node_gui_app -->|"selects event source"| node_gui_source
node_gui_source -->|"consumes SDK"| node_sdk_api
node_gui_app -->|"renders events"| node_gui_table
node_gui_app -->|"shows selection"| node_gui_detail
node_gui_app -->|"applies filters"| node_gui_filter
node_gui_app -->|"opens summaries"| node_gui_summaries
node_gui_app -.->|"opens process tree"| node_gui_tree
node_user -->|"runs commands"| node_cli
node_cli -->|"starts capture"| node_orchestrator
node_orchestrator -.->|"captures events"| node_sdk_api
node_orchestrator -->|"writes capture"| node_pml_file
node_cli -->|"serves MCP"| node_mcp
node_mcp -.->|"queries logs"| node_core_query
node_cli -->|"runs query"| node_core_query
node_cli -->|"runs analysis"| node_core_analyze
node_core_analyze -->|"uses query"| node_core_query
node_pml_file -->|"supplies events"| node_core_query
node_pml_file -->|"loads log"| node_gui_source
node_gui_app -->|"saves selected events"| node_pml_file

click node_kernel "https://github.com/progmboy/openprocmon/tree/master/kernel"
click node_wire "https://github.com/progmboy/openprocmon/blob/master/kernel/logsdk.h"
click node_sdk_api "https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/source.rs"
click node_sdk_port "https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/port.rs"
click node_pipeline "https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/pipeline.rs"
click node_record "https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/event.rs"
click node_process "https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/process.rs"
click node_network "https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/parse/network.rs"
click node_pml "https://github.com/progmboy/openprocmon/tree/master/crates/sdk/src/pml"
click node_gui_app "https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/app.rs"
click node_gui_source "https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/model/sdk_source.rs"
click node_gui_table "https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/components/event_table.rs"
click node_gui_detail "https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/components/detail_panel.rs"
click node_gui_filter "https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/model/filter.rs"
click node_gui_summaries "https://github.com/progmboy/openprocmon/tree/master/crates/gui/src/dialogs"
click node_gui_tree "https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/dialogs/process_tree.rs"
click node_cli "https://github.com/progmboy/openprocmon/blob/master/crates/cli/src/main.rs"
click node_mcp "https://github.com/progmboy/openprocmon/blob/master/crates/cli/src/mcp.rs"
click node_orchestrator "https://github.com/progmboy/openprocmon/blob/master/crates/cli/src/orchestrate.rs"
click node_core_query "https://github.com/progmboy/openprocmon/blob/master/crates/core/src/query.rs"
click node_core_analyze "https://github.com/progmboy/openprocmon/blob/master/crates/core/src/analyze.rs"

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_kernel,node_wire,node_user toneBlue
class node_sdk_api,node_sdk_port,node_pipeline,node_record,node_process,node_network,node_pml toneAmber
class node_gui_app,node_gui_source,node_gui_table,node_gui_detail,node_gui_filter,node_gui_summaries,node_gui_tree toneMint
class node_cli,node_mcp,node_orchestrator toneRose
class node_core_query,node_core_analyze,node_pml_file toneIndigo
```

## Components

### Kernel capture

- [MiniFilter callbacks](https://github.com/progmboy/openprocmon/tree/master/kernel): `kernel`
- [Driver wire contract](https://github.com/progmboy/openprocmon/blob/master/kernel/logsdk.h): `kernel/logsdk.h`

### SDK processing

- [SDK source API](https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/source.rs): `crates/sdk/src/source.rs`
- [Driver communication](https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/port.rs): `crates/sdk/src/port.rs`
- [Receive and parse](https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/pipeline.rs): `crates/sdk/src/pipeline.rs`
- [Event and record model](https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/event.rs): `crates/sdk/src/event.rs`
- [Process tracking](https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/process.rs): `crates/sdk/src/process.rs`
- [Network event parsing](https://github.com/progmboy/openprocmon/blob/master/crates/sdk/src/parse/network.rs): `crates/sdk/src/parse/network.rs`
- [PML read and write](https://github.com/progmboy/openprocmon/tree/master/crates/sdk/src/pml): `crates/sdk/src/pml`

### Desktop interface

- [GUI application state](https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/app.rs): `crates/gui/src/app.rs`
- [Live and PML sources](https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/model/sdk_source.rs): `crates/gui/src/model/sdk_source.rs`
- [Event table](https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/components/event_table.rs): `crates/gui/src/components/event_table.rs`
- [Event details](https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/components/detail_panel.rs): `crates/gui/src/components/detail_panel.rs`
- [Filtering and highlights](https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/model/filter.rs): `crates/gui/src/model/filter.rs`
- [Activity summaries](https://github.com/progmboy/openprocmon/tree/master/crates/gui/src/dialogs): `crates/gui/src/dialogs`
- [Process tree](https://github.com/progmboy/openprocmon/blob/master/crates/gui/src/dialogs/process_tree.rs): `crates/gui/src/dialogs/process_tree.rs`

### CLI analysis

- [CLI command router](https://github.com/progmboy/openprocmon/blob/master/crates/cli/src/main.rs): `crates/cli/src/main.rs`
- [MCP server](https://github.com/progmboy/openprocmon/blob/master/crates/cli/src/mcp.rs): `crates/cli/src/mcp.rs`
- [Capture orchestration](https://github.com/progmboy/openprocmon/blob/master/crates/cli/src/orchestrate.rs): `crates/cli/src/orchestrate.rs`

### Analysis engine

- [Filter and group query](https://github.com/progmboy/openprocmon/blob/master/crates/core/src/query.rs): `crates/core/src/query.rs`
- [Analysis and timeline](https://github.com/progmboy/openprocmon/blob/master/crates/core/src/analyze.rs): `crates/core/src/analyze.rs`

### Other components

- **User or agent**
- **PML log**

## Connections

- User or agent → MiniFilter callbacks: initiates capture
- MiniFilter callbacks → Driver wire contract: emits records (evidence: `kernel/log.h`)
- Driver wire contract → Driver communication: defines contract
- Driver communication → Receive and parse: receives batches (evidence: `crates/sdk/src/pipeline.rs`)
- Receive and parse → Event and record model: parses events (evidence: `crates/sdk/src/pipeline.rs`)
- Receive and parse → Process tracking: enriches processes (evidence: `crates/sdk/src/pipeline.rs`)
- Receive and parse → Network event parsing: emits network events (evidence: `crates/sdk/src/pipeline.rs`)
- SDK source API → Driver communication: connects driver
- SDK source API → PML read and write: opens PML
- User or agent → GUI application state: uses GUI
- GUI application state → Live and PML sources: selects event source (evidence: `crates/gui/src/app.rs`)
- Live and PML sources → SDK source API: consumes SDK (evidence: `crates/gui/src/model/sdk_source.rs`)
- GUI application state → Event table: renders events (evidence: `crates/gui/src/components/mod.rs`)
- GUI application state → Event details: shows selection (evidence: `crates/gui/src/components/detail_panel.rs`)
- GUI application state → Filtering and highlights: applies filters (evidence: `crates/gui/src/app.rs`)
- GUI application state → Activity summaries: opens summaries (evidence: `crates/gui/src/app.rs`)
- GUI application state → Process tree: opens process tree (evidence: `crates/gui/src/app.rs`)
- User or agent → CLI command router: runs commands (evidence: `crates/cli/src/main.rs`)
- CLI command router → Capture orchestration: starts capture (evidence: `crates/cli/src/main.rs`)
- Capture orchestration → SDK source API: captures events
- Capture orchestration → PML log: writes capture
- CLI command router → MCP server: serves MCP (evidence: `crates/cli/src/main.rs`)
- MCP server → Filter and group query: queries logs
- CLI command router → Filter and group query: runs query (evidence: `crates/cli/src/main.rs`)
- CLI command router → Analysis and timeline: runs analysis (evidence: `crates/cli/src/main.rs`)
- Analysis and timeline → Filter and group query: uses query (evidence: `crates/core/src/analyze.rs`)
- PML log → Filter and group query: supplies events
- PML log → Live and PML sources: loads log
- GUI application state → PML log: saves selected events (evidence: `crates/gui/src/app.rs`)
