# matiaheduardopozas-cell/quickshell-antigravity-island architecture

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

- Interactive diagram: https://gitdiagram.com/matiaheduardopozas-cell/quickshell-antigravity-island
- Repository: https://github.com/matiaheduardopozas-cell/quickshell-antigravity-island

## Overview

This repository is a Quickshell Dynamic Island for sending prompts and clipboard images to Google Antigravity, then previewing and copying its replies. The main workflow is user input in the island, persistent `agy` interaction, and a streaming reply shown in the bar. Hover expansion, focus handling, session reset, and optional IPC control are supporting capabilities. Relationships here follow README documentation only; source excerpts were not provided, so implementation details beyond those documented are not asserted.

Main entry points: [`AiIsland.qml`](https://github.com/matiaheduardopozas-cell/quickshell-antigravity-island/blob/main/AiIsland.qml) (Island UI), [`AiService.qml`](https://github.com/matiaheduardopozas-cell/quickshell-antigravity-island/blob/main/AiService.qml) (AI Service), [`shell.qml`](https://github.com/matiaheduardopozas-cell/quickshell-antigravity-island/blob/main/shell.qml) (Quickshell Shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Island Interface"]
  node_island["Island UI<br/>[AiIsland.qml]"]
end

subgraph group_runtime["Prompt Runtime"]
  node_service["AI Service<br/>[AiService.qml]"]
end

subgraph group_integration["System Integration"]
  node_shell["Quickshell Shell<br/>[shell.qml]"]
end

node_user(("User"))
node_agy["Antigravity CLI"]
node_clipboard_in["Clipboard Reader"]
node_clipboard_out["Clipboard Writer"]
node_hyprland["Hyprland"]

node_user -->|"enters prompts"| node_island
node_island -->|"sends prompts"| node_service
node_service -->|"keeps process"| node_agy
node_agy -->|"streams replies"| node_service
node_service -->|"provides replies"| node_island
node_user -->|"pastes image"| node_clipboard_in
node_clipboard_in -->|"attaches image"| node_island
node_island -->|"copies reply"| node_clipboard_out
node_user -.->|"requests toggle"| node_shell
node_shell -.->|"toggles island"| node_island
node_island -->|"grabs focus"| node_hyprland

click node_island "https://github.com/matiaheduardopozas-cell/quickshell-antigravity-island/blob/main/AiIsland.qml"
click node_service "https://github.com/matiaheduardopozas-cell/quickshell-antigravity-island/blob/main/AiService.qml"
click node_shell "https://github.com/matiaheduardopozas-cell/quickshell-antigravity-island/blob/main/shell.qml"

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_island,node_user toneBlue
class node_service toneAmber
class node_shell toneMint
class node_agy,node_clipboard_in,node_clipboard_out,node_hyprland toneIndigo
```

## Components

### Island Interface

- [Island UI](https://github.com/matiaheduardopozas-cell/quickshell-antigravity-island/blob/main/AiIsland.qml): `AiIsland.qml`

### Prompt Runtime

- [AI Service](https://github.com/matiaheduardopozas-cell/quickshell-antigravity-island/blob/main/AiService.qml): `AiService.qml`

### System Integration

- [Quickshell Shell](https://github.com/matiaheduardopozas-cell/quickshell-antigravity-island/blob/main/shell.qml): `shell.qml`

### Other components

- **User**
- **Antigravity CLI**
- **Clipboard Reader**
- **Clipboard Writer**
- **Hyprland**

## Connections

- User → Island UI: enters prompts (evidence: `README.md`)
- Island UI → AI Service: sends prompts (evidence: `README.md`)
- AI Service → Antigravity CLI: keeps process (evidence: `README.md`)
- Antigravity CLI → AI Service: streams replies (evidence: `README.md`)
- AI Service → Island UI: provides replies (evidence: `README.md`)
- User → Clipboard Reader: pastes image (evidence: `README.md`)
- Clipboard Reader → Island UI: attaches image (evidence: `README.md`)
- Island UI → Clipboard Writer: copies reply (evidence: `README.md`)
- User → Quickshell Shell: requests toggle (evidence: `README.md`)
- Quickshell Shell → Island UI: toggles island (evidence: `README.md`)
- Island UI → Hyprland: grabs focus (evidence: `README.md`)
