# lowkeymyself/kdevelopment architecture

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

- Interactive diagram: https://gitdiagram.com/lowkeymyself/kdevelopment
- Repository: https://github.com/lowkeymyself/kdevelopment

## Overview

Koffee is a Roblox game-assistance script with a native helper: the user runs the Lua script, which configures a local helper that attaches to the game, selects a target, and drives a raycast hook. The tree also contains a separate Windows kernel-driver loader and driver. README coverage is sparse; the native workflow is supported by the sampled helper sources, while some loader stages are supported by its sampled excerpts and source index. The Lua UI and any worker-service role are not established by the excerpts.

Main entry points: [`external/user/src/loader/mod.rs`](https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/loader/mod.rs) (BYOVD Load Flow), [`helper/native/src/http.cpp`](https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/http.cpp) (HTTP Bridge), [`helper/native/src/aim/silentaim.h`](https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/aim/silentaim.h) (Aim Orchestrator), [`helper/native/src/main.cpp`](https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/main.cpp) (Helper Entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_script["Lua Script"]
  node_lua["Koffee Script<br/>[koffee.lua]"]
end

subgraph group_helper["Native Helper"]
  node_entry["Helper Entry<br/>[main.cpp]"]
  node_http["HTTP Bridge<br/>[http.cpp]"]
  node_aim["Aim Orchestrator<br/>[silentaim.h]"]
  node_game["World Snapshot<br/>[game.cpp]"]
  node_memory["Process Memory<br/>[mem.h]"]
  node_hook["Raycast Hook<br/>[hook.cpp]"]
  node_log["Logging<br/>[log.cpp]"]
end

subgraph group_loader["Kernel Loader"]
  node_loader_main["Loader Entry<br/>[main.rs]"]
  node_loader_flow["BYOVD Load Flow<br/>[mod.rs]"]
  node_mapper["Manual Mapper<br/>[mapper.rs]"]
  node_pe["PE Processing<br/>[pe.rs]"]
  node_carrier["Signed Carrier IO<br/>[rtc.rs]"]
  node_service["Driver Service<br/>[svc.rs]"]
end

subgraph group_driver["Kernel Driver"]
  node_driver["KoffeeMem Driver<br/>[driver.c]"]
  node_ioctl["IOCTL Definitions<br/>[ioctl.h]"]
end

node_user(("User"))

node_user -->|"runs"| node_lua
node_lua -.->|"configures"| node_http
node_entry -->|"starts"| node_aim
node_entry -->|"serves"| node_http
node_entry -->|"logs"| node_log
node_http -->|"applies config"| node_aim
node_http -->|"snapshots world"| node_game
node_aim -.->|"reads snapshots"| node_game
node_aim -.->|"drives hook"| node_hook
node_game -->|"reads process"| node_memory
node_hook -->|"reads and writes"| node_memory
node_loader_main -->|"ensures loaded"| node_loader_flow
node_loader_flow -->|"starts carrier"| node_service
node_loader_flow -->|"opens carrier"| node_carrier
node_loader_flow -.->|"maps image"| node_mapper
node_mapper -->|"parses image"| node_pe
node_mapper -->|"writes kernel memory"| node_carrier
node_driver -->|"uses definitions"| node_ioctl

click node_lua "https://github.com/lowkeymyself/kdevelopment/blob/main/dist/koffee.lua"
click node_entry "https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/main.cpp"
click node_http "https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/http.cpp"
click node_aim "https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/aim/silentaim.h"
click node_game "https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/game.cpp"
click node_memory "https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/mem.h"
click node_hook "https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/aim/hook.cpp"
click node_log "https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/log.cpp"
click node_loader_main "https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/main.rs"
click node_loader_flow "https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/loader/mod.rs"
click node_mapper "https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/loader/mapper.rs"
click node_pe "https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/loader/pe.rs"
click node_carrier "https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/loader/rtc.rs"
click node_service "https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/loader/svc.rs"
click node_driver "https://github.com/lowkeymyself/kdevelopment/blob/main/external/driver/src/driver.c"
click node_ioctl "https://github.com/lowkeymyself/kdevelopment/blob/main/external/driver/src/ioctl.h"

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_lua,node_user toneBlue
class node_entry,node_http,node_aim,node_game,node_memory,node_hook,node_log toneAmber
class node_loader_main,node_loader_flow,node_mapper,node_pe,node_carrier,node_service toneMint
class node_driver,node_ioctl toneRose
```

## Components

### Lua Script

- [Koffee Script](https://github.com/lowkeymyself/kdevelopment/blob/main/dist/koffee.lua): `dist/koffee.lua`

### Native Helper

- [Helper Entry](https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/main.cpp): `helper/native/src/main.cpp`
- [HTTP Bridge](https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/http.cpp): `helper/native/src/http.cpp`
- [Aim Orchestrator](https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/aim/silentaim.h): `helper/native/src/aim/silentaim.h`
- [World Snapshot](https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/game.cpp): `helper/native/src/game.cpp`
- [Process Memory](https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/mem.h): `helper/native/src/mem.h`
- [Raycast Hook](https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/aim/hook.cpp): `helper/native/src/aim/hook.cpp`
- [Logging](https://github.com/lowkeymyself/kdevelopment/blob/main/helper/native/src/log.cpp): `helper/native/src/log.cpp`

### Kernel Loader

- [Loader Entry](https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/main.rs): `external/user/src/main.rs`
- [BYOVD Load Flow](https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/loader/mod.rs): `external/user/src/loader/mod.rs`
- [Manual Mapper](https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/loader/mapper.rs): `external/user/src/loader/mapper.rs`
- [PE Processing](https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/loader/pe.rs): `external/user/src/loader/pe.rs`
- [Signed Carrier IO](https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/loader/rtc.rs): `external/user/src/loader/rtc.rs`
- [Driver Service](https://github.com/lowkeymyself/kdevelopment/blob/main/external/user/src/loader/svc.rs): `external/user/src/loader/svc.rs`

### Kernel Driver

- [KoffeeMem Driver](https://github.com/lowkeymyself/kdevelopment/blob/main/external/driver/src/driver.c): `external/driver/src/driver.c`
- [IOCTL Definitions](https://github.com/lowkeymyself/kdevelopment/blob/main/external/driver/src/ioctl.h): `external/driver/src/ioctl.h`

### Other components

- **User**

## Connections

- User → Koffee Script: runs (evidence: `README.md`)
- Koffee Script → HTTP Bridge: configures
- Helper Entry → Aim Orchestrator: starts (evidence: `helper/native/src/main.cpp`)
- Helper Entry → HTTP Bridge: serves (evidence: `helper/native/src/main.cpp`)
- Helper Entry → Logging: logs (evidence: `helper/native/src/main.cpp`)
- HTTP Bridge → Aim Orchestrator: applies config (evidence: `helper/native/src/http.cpp`)
- HTTP Bridge → World Snapshot: snapshots world (evidence: `helper/native/src/http.cpp`)
- Aim Orchestrator → World Snapshot: reads snapshots (evidence: `helper/native/src/aim/silentaim.h`)
- Aim Orchestrator → Raycast Hook: drives hook (evidence: `helper/native/src/aim/silentaim.h`)
- World Snapshot → Process Memory: reads process (evidence: `helper/native/src/game.cpp`)
- Raycast Hook → Process Memory: reads and writes (evidence: `helper/native/src/aim/hook.cpp`)
- Loader Entry → BYOVD Load Flow: ensures loaded (evidence: `external/user/src/main.rs`)
- BYOVD Load Flow → Driver Service: starts carrier (evidence: `external/user/src/loader/mod.rs`)
- BYOVD Load Flow → Signed Carrier IO: opens carrier (evidence: `external/user/src/loader/mod.rs`)
- BYOVD Load Flow → Manual Mapper: maps image (evidence: `external/user/src/loader/mapper.rs`)
- Manual Mapper → PE Processing: parses image (evidence: `external/user/src/loader/mapper.rs`)
- Manual Mapper → Signed Carrier IO: writes kernel memory (evidence: `external/user/src/loader/mapper.rs`)
- KoffeeMem Driver → IOCTL Definitions: uses definitions (evidence: `external/driver/src/driver.c`)
