# cutefishos/cutefish architecture

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

- Interactive diagram: https://gitdiagram.com/cutefishos/cutefish
- Repository: https://github.com/cutefishos/cutefish

## Overview

This repository is an umbrella project for Cutefish, a Debian-based Linux distribution; it does not contain the desktop component source. The documented user-facing flow is login into a session managed by the compositor, which provides the shell and desktop UI; the shared toolkit supports the desktop and built-in apps. A separate capability lets MCP-compatible agents interact through the compositor, subject to user permission and interruption controls. Paths are null because the supplied tree contains no component source paths; relationships below are documented in the README, not verified against implementation.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_session["Session and shell"]
  node_dm["Login manager"]
  node_compositor["Wayland compositor"]
  node_shell["Desktop shell"]
end

subgraph group_desktop["Desktop applications"]
  node_toolkit["Native UI toolkit"]
  node_apps["Built-in apps"]
end

subgraph group_agent["Agent control"]
  node_agent_controls["Agent interaction controls"]
end

node_user(("Desktop user"))
node_agent(("MCP-compatible agent"))

node_user -->|"logs in"| node_dm
node_dm -->|"starts session"| node_compositor
node_compositor -->|"draws shell"| node_shell
node_toolkit -->|"shared by"| node_apps
node_toolkit -->|"shared by desktop"| node_compositor
node_agent -->|"sends clicks and typing"| node_compositor
node_compositor -->|"exposes screen"| node_agent
node_compositor -->|"enforces controls"| node_agent_controls
node_user -->|"grants permission"| node_agent_controls

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_dm,node_compositor,node_shell,node_user toneBlue
class node_toolkit,node_apps toneAmber
class node_agent_controls toneMint
class node_agent toneIndigo
```

## Components

### Session and shell

- **Login manager**
- **Wayland compositor**
- **Desktop shell**

### Desktop applications

- **Native UI toolkit**
- **Built-in apps**

### Agent control

- **Agent interaction controls**

### Other components

- **Desktop user**
- **MCP-compatible agent**

## Connections

- Desktop user → Login manager: logs in (evidence: `README.md`)
- Login manager → Wayland compositor: starts session (evidence: `README.md`)
- Wayland compositor → Desktop shell: draws shell (evidence: `README.md`)
- Native UI toolkit → Built-in apps: shared by (evidence: `README.md`)
- Native UI toolkit → Wayland compositor: shared by desktop (evidence: `README.md`)
- MCP-compatible agent → Wayland compositor: sends clicks and typing (evidence: `README.md`)
- Wayland compositor → MCP-compatible agent: exposes screen (evidence: `README.md`)
- Wayland compositor → Agent interaction controls: enforces controls (evidence: `README.md`)
- Desktop user → Agent interaction controls: grants permission (evidence: `README.md`)
