# tommytommuhighlights-dotcom/kimikonea architecture

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

- Interactive diagram: https://gitdiagram.com/tommytommuhighlights-dotcom/kimikonea
- Repository: https://github.com/tommytommuhighlights-dotcom/kimikonea
- Video tour (about a minute): https://gitdiagram.com/tommytommuhighlights-dotcom/kimikonea/video

## Overview

Kimiko is a local AI desktop companion. The main workflow runs from desktop interaction through the conversation core, which applies mode and memory context, consults a local model, and returns a response for display. Reminders and Minecraft events add separate context-aware branches. The README documents model-runtime and Minecraft integrations; the excerpts show the desktop/core calls and Minecraft HTTP event handling. Some core features are documented but not fully sampled, so their internal links are not expanded.

Main entry points: [`Kimiko_Core.py`](https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py) (Conversation core), [`KimikoDesktop.py`](https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/KimikoDesktop.py) (Character UI), [`Minecraft_Connect.py`](https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Minecraft_Connect.py) (Event HTTP server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop Companion"]
  node_desktop_ui["Character UI<br/>[KimikoDesktop.py]"]
end

subgraph group_conversation["Conversation Core"]
  node_conversation_core["Conversation core<br/>[Kimiko_Core.py]"]
  node_modes["Conversation modes<br/>[Kimiko_Core.py]"]
  node_memory["Memory management<br/>[Kimiko_Core.py]"]
  node_memory_store[("Persistent memory<br/>[Kimiko_Core.py]")]
  node_reminders["Reminders and timers<br/>[Kimiko_Core.py]"]
  node_minecraft_context["Minecraft context<br/>[Kimiko_Core.py]"]
end

subgraph group_minecraft["Minecraft Integration"]
  node_minecraft_server["Event HTTP server"]
  node_event_buffer[("Recent event buffer")]
end

subgraph group_model["Local Model Runtime"]
  node_llmster["llmster / lms"]
  node_local_api["Local model API"]
  node_local_model["Language model"]
end

node_user(("Desktop user"))
node_cheatutils(("CheatUtils script"))
node_minecraft_game(("Minecraft"))

node_user -->|"interacts"| node_desktop_ui
node_desktop_ui -->|"submits input"| node_conversation_core
node_desktop_ui -->|"sends message"| node_conversation_core
node_conversation_core -->|"selects mode"| node_modes
node_conversation_core -->|"recalls context"| node_memory
node_memory -->|"reads and writes"| node_memory_store
node_conversation_core -->|"manages timers"| node_reminders
node_reminders -->|"notifies callback"| node_desktop_ui
node_desktop_ui -->|"starts and stops"| node_minecraft_server
node_minecraft_game -->|"generates events"| node_cheatutils
node_cheatutils -->|"posts events"| node_minecraft_server
node_minecraft_server -->|"stores events"| node_event_buffer
node_desktop_ui -->|"polls events"| node_minecraft_server
node_desktop_ui -->|"adds event context"| node_minecraft_context
node_conversation_core -->|"uses runtime context"| node_minecraft_context
node_conversation_core -->|"starts runtime"| node_llmster
node_conversation_core -->|"sends conversation"| node_local_api
node_local_api -.->|"runs inference"| node_local_model

click node_desktop_ui "https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/KimikoDesktop.py"
click node_conversation_core "https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py"
click node_modes "https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py"
click node_memory "https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py"
click node_memory_store "https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py"
click node_reminders "https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py"
click node_minecraft_context "https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py"
click node_minecraft_server "https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Minecraft_Connect.py"
click node_event_buffer "https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Minecraft_Connect.py"

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_desktop_ui,node_user toneBlue
class node_conversation_core,node_modes,node_memory,node_memory_store,node_reminders,node_minecraft_context toneAmber
class node_minecraft_server,node_event_buffer toneMint
class node_llmster,node_local_api,node_local_model toneRose
class node_cheatutils,node_minecraft_game toneIndigo
```

## Components

### Desktop Companion

- [Character UI](https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/KimikoDesktop.py): `KimikoDesktop.py`

### Conversation Core

- [Conversation core](https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py): `Kimiko_Core.py`
- [Conversation modes](https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py): `Kimiko_Core.py`
- [Memory management](https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py): `Kimiko_Core.py`
- [Persistent memory](https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py): `Kimiko_Core.py`
- [Reminders and timers](https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py): `Kimiko_Core.py`
- [Minecraft context](https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Kimiko_Core.py): `Kimiko_Core.py`

### Minecraft Integration

- [Event HTTP server](https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Minecraft_Connect.py): `Minecraft_Connect.py`
- [Recent event buffer](https://github.com/tommytommuhighlights-dotcom/kimikonea/blob/main/Minecraft_Connect.py): `Minecraft_Connect.py`

### Local Model Runtime

- **llmster / lms**
- **Local model API**
- **Language model**

### Other components

- **Desktop user**
- **CheatUtils script**
- **Minecraft**

## Connections

- Desktop user → Character UI: interacts (evidence: `README.md`)
- Character UI → Conversation core: submits input (evidence: `KimikoDesktop.py`)
- Character UI → Conversation core: sends message (evidence: `KimikoDesktop.py`)
- Conversation core → Conversation modes: selects mode (evidence: `Kimiko_Core.py`)
- Conversation core → Memory management: recalls context (evidence: `Kimiko_Core.py`)
- Memory management → Persistent memory: reads and writes (evidence: `Kimiko_Core.py`)
- Conversation core → Reminders and timers: manages timers (evidence: `README.md`)
- Reminders and timers → Character UI: notifies callback (evidence: `KimikoDesktop.py`)
- Character UI → Event HTTP server: starts and stops (evidence: `KimikoDesktop.py`)
- Minecraft → CheatUtils script: generates events (evidence: `README.md`)
- CheatUtils script → Event HTTP server: posts events (evidence: `README.md`)
- Event HTTP server → Recent event buffer: stores events (evidence: `Minecraft_Connect.py`)
- Character UI → Event HTTP server: polls events (evidence: `KimikoDesktop.py`)
- Character UI → Minecraft context: adds event context (evidence: `KimikoDesktop.py`)
- Conversation core → Minecraft context: uses runtime context (evidence: `Kimiko_Core.py`)
- Conversation core → llmster / lms: starts runtime (evidence: `README.md`)
- Conversation core → Local model API: sends conversation (evidence: `README.md`)
- Local model API → Language model: runs inference
