Skip to content

Computer use CLI for AI agents

docs: add architecture diagram to README

Lahfira73fe2e6c173
diff --git a/.gitignore b/.gitignore
index ef7334e66..dca1457a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -68,6 +68,6 @@ npm/node_modules/
node_modules/
# Compound Engineering
-docs/
+docs/solutions/
todos/
.cursor/
\ No newline at end of file
diff --git a/README.md b/README.md
index 7a3aa18ce..451f249f0 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,12 @@
**agent-desktop** is a native desktop automation CLI designed for AI agents, built with Rust. It gives structured access to any application through OS accessibility trees — no screenshots, no pixel matching, no browser required.
+## Architecture
+
+<p align="center">
+ <img src="docs/architecture.png" alt="agent-desktop architecture diagram" width="800" />
+</p>
+
## Key Features
- **Native Rust CLI**: Fast, single binary, no runtime dependencies
diff --git a/docs/architecture.excalidraw b/docs/architecture.excalidraw
new file mode 100644
index 000000000..522e0adf6
--- /dev/null
+++ b/docs/architecture.excalidraw
@@ -0,0 +1,1557 @@
+{
+ "type": "excalidraw",
+ "version": 2,
+ "source": "https://excalidraw.com",
+ "elements": [
+ {
+ "id": "r-core",
+ "type": "rectangle",
+ "x": 100,
+ "y": 330,
+ "width": 800,
+ "height": 170,
+ "angle": 0,
+ "strokeColor": "#e8590c",
+ "backgroundColor": "#fff9db",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000001,
+ "version": 2,
+ "versionNonce": 1693960693,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "index": "a0"
+ },
+ {
+ "id": "r-agent",
+ "type": "rectangle",
+ "x": 325,
+ "y": 29.37854925317953,
+ "width": 350,
+ "height": 70,
+ "angle": 0,
+ "strokeColor": "#1971c2",
+ "backgroundColor": "#a5d8ff",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000002,
+ "version": 3,
+ "versionNonce": 405643861,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-agent",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942822630,
+ "link": null,
+ "locked": false,
+ "index": "a1"
+ },
+ {
+ "id": "t-agent",
+ "type": "text",
+ "x": 408.1520538330078,
+ "y": 49.37854925317953,
+ "width": 183.69589233398438,
+ "height": 30,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000003,
+ "version": 6,
+ "versionNonce": 785681717,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942822808,
+ "link": null,
+ "locked": false,
+ "text": "AI Agent (LLM)",
+ "fontSize": 24,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "r-agent",
+ "originalText": "AI Agent (LLM)",
+ "lineHeight": 1.25,
+ "index": "a2",
+ "autoResize": true
+ },
+ {
+ "id": "r-cli",
+ "type": "rectangle",
+ "x": 200,
+ "y": 175,
+ "width": 600,
+ "height": 80,
+ "angle": 0,
+ "strokeColor": "#2f9e44",
+ "backgroundColor": "#b2f2bb",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000004,
+ "version": 2,
+ "versionNonce": 1164675195,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-cli",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "index": "a3"
+ },
+ {
+ "id": "t-cli",
+ "type": "text",
+ "x": 359.11407470703125,
+ "y": 192.5,
+ "width": 281.7718505859375,
+ "height": 45,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000005,
+ "version": 4,
+ "versionNonce": 161699739,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942821705,
+ "link": null,
+ "locked": false,
+ "text": "agent-desktop CLI\nclap · dispatch · JSON envelope",
+ "fontSize": 18,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "r-cli",
+ "originalText": "agent-desktop CLI\nclap · dispatch · JSON envelope",
+ "lineHeight": 1.25,
+ "index": "a4",
+ "autoResize": true
+ },
+ {
+ "id": "t-core-title",
+ "type": "text",
+ "x": 395,
+ "y": 340,
+ "width": 210,
+ "height": 28,
+ "angle": 0,
+ "strokeColor": "#e8590c",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000006,
+ "version": 2,
+ "versionNonce": 1501217051,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "text": "agent-desktop-core",
+ "fontSize": 22,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "top",
+ "containerId": null,
+ "originalText": "agent-desktop-core",
+ "lineHeight": 1.25,
+ "index": "a5",
+ "autoResize": true
+ },
+ {
+ "id": "r-cmds",
+ "type": "rectangle",
+ "x": 120,
+ "y": 390,
+ "width": 220,
+ "height": 60,
+ "angle": 0,
+ "strokeColor": "#f08c00",
+ "backgroundColor": "#ffec99",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000007,
+ "version": 2,
+ "versionNonce": 560050709,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-cmds",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "index": "a6"
+ },
+ {
+ "id": "t-cmds",
+ "type": "text",
+ "x": 171.3560333251953,
+ "y": 408.75,
+ "width": 117.28793334960938,
+ "height": 22.5,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000008,
+ "version": 4,
+ "versionNonce": 1236413755,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942817499,
+ "link": null,
+ "locked": false,
+ "text": "50 Commands",
+ "fontSize": 18,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "r-cmds",
+ "originalText": "50 Commands",
+ "lineHeight": 1.25,
+ "index": "a7",
+ "autoResize": true
+ },
+ {
+ "id": "r-trait",
+ "type": "rectangle",
+ "x": 390,
+ "y": 389.3785492531796,
+ "width": 220,
+ "height": 55,
+ "angle": 0,
+ "strokeColor": "#f08c00",
+ "backgroundColor": "#ffec99",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000009,
+ "version": 5,
+ "versionNonce": 279711125,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-trait",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942819193,
+ "link": null,
+ "locked": false,
+ "index": "a8"
+ },
+ {
+ "id": "t-trait",
+ "type": "text",
+ "x": 426.32604217529297,
+ "y": 394.3785492531796,
+ "width": 147.34791564941406,
+ "height": 45,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000010,
+ "version": 7,
+ "versionNonce": 118823349,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942819209,
+ "link": null,
+ "locked": false,
+ "text": "PlatformAdapter\nTrait",
+ "fontSize": 18,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "r-trait",
+ "originalText": "PlatformAdapter\nTrait",
+ "lineHeight": 1.25,
+ "index": "a9",
+ "autoResize": true
+ },
+ {
+ "id": "r-types",
+ "type": "rectangle",
+ "x": 659.3785492531795,
+ "y": 389.3785492531796,
+ "width": 220,
+ "height": 60,
+ "angle": 0,
+ "strokeColor": "#f08c00",
+ "backgroundColor": "#ffec99",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000011,
+ "version": 4,
+ "versionNonce": 1699047573,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-types",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942820094,
+ "link": null,
+ "locked": false,
+ "index": "aA"
+ },
+ {
+ "id": "t-types",
+ "type": "text",
+ "x": 695.470597898199,
+ "y": 408.1285492531796,
+ "width": 147.81590270996094,
+ "height": 22.5,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000012,
+ "version": 6,
+ "versionNonce": 2015116571,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942820140,
+ "link": null,
+ "locked": false,
+ "text": "Types & RefMap",
+ "fontSize": 18,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "r-types",
+ "originalText": "Types & RefMap",
+ "lineHeight": 1.25,
+ "index": "aB",
+ "autoResize": true
+ },
+ {
+ "id": "r-mac",
+ "type": "rectangle",
+ "x": 125,
+ "y": 574.3785492531797,
+ "width": 220,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#7048e8",
+ "backgroundColor": "#d0bfff",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000013,
+ "version": 3,
+ "versionNonce": 263716475,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-mac",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942844927,
+ "link": null,
+ "locked": false,
+ "index": "aC"
+ },
+ {
+ "id": "t-mac",
+ "type": "text",
+ "x": 166.9330291748047,
+ "y": 589.3785492531797,
+ "width": 136.13394165039062,
+ "height": 45,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000014,
+ "version": 6,
+ "versionNonce": 325226907,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942845165,
+ "link": null,
+ "locked": false,
+ "text": "macOS Adapter\nActive",
+ "fontSize": 18,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "r-mac",
+ "originalText": "macOS Adapter\nActive",
+ "lineHeight": 1.25,
+ "index": "aD",
+ "autoResize": true
+ },
+ {
+ "id": "r-win",
+ "type": "rectangle",
+ "x": 390,
+ "y": 575,
+ "width": 220,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "#e9ecef",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "dashed",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000015,
+ "version": 2,
+ "versionNonce": 965836693,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-win",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "index": "aE"
+ },
+ {
+ "id": "t-win",
+ "type": "text",
+ "x": 420,
+ "y": 582,
+ "width": 160,
+ "height": 60,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000016,
+ "version": 2,
+ "versionNonce": 33009723,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "text": "Windows Adapter\nPlanned",
+ "fontSize": 18,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "r-win",
+ "originalText": "Windows Adapter\nPlanned",
+ "lineHeight": 1.25,
+ "index": "aF",
+ "autoResize": true
+ },
+ {
+ "id": "r-lin",
+ "type": "rectangle",
+ "x": 655,
+ "y": 575,
+ "width": 220,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "#e9ecef",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "dashed",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000017,
+ "version": 2,
+ "versionNonce": 2126955765,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-lin",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "index": "aG"
+ },
+ {
+ "id": "t-lin",
+ "type": "text",
+ "x": 690,
+ "y": 582,
+ "width": 150,
+ "height": 60,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000018,
+ "version": 2,
+ "versionNonce": 1236005083,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "text": "Linux Adapter\nPlanned",
+ "fontSize": 18,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "r-lin",
+ "originalText": "Linux Adapter\nPlanned",
+ "lineHeight": 1.25,
+ "index": "aH",
+ "autoResize": true
+ },
+ {
+ "id": "r-mac-api",
+ "type": "rectangle",
+ "x": 125,
+ "y": 724.3785492531795,
+ "width": 220,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#e8590c",
+ "backgroundColor": "#ffd8a8",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000019,
+ "version": 3,
+ "versionNonce": 2142274075,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-mac-api",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942843769,
+ "link": null,
+ "locked": false,
+ "index": "aI"
+ },
+ {
+ "id": "t-mac-api",
+ "type": "text",
+ "x": 152.89008331298828,
+ "y": 744.3785492531795,
+ "width": 164.21983337402344,
+ "height": 35,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000020,
+ "version": 6,
+ "versionNonce": 1769263419,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942843931,
+ "link": null,
+ "locked": false,
+ "text": "AXUIElement · CGEvent\nNSPasteboard",
+ "fontSize": 14,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "r-mac-api",
+ "originalText": "AXUIElement · CGEvent\nNSPasteboard",
+ "lineHeight": 1.25,
+ "index": "aJ",
+ "autoResize": true
+ },
+ {
+ "id": "r-win-api",
+ "type": "rectangle",
+ "x": 390,
+ "y": 725,
+ "width": 220,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "#dee2e6",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "dashed",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000021,
+ "version": 2,
+ "versionNonce": 1205324725,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-win-api",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "index": "aK"
+ },
+ {
+ "id": "t-win-api",
+ "type": "text",
+ "x": 440,
+ "y": 740,
+ "width": 120,
+ "height": 45,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000022,
+ "version": 2,
+ "versionNonce": 455325211,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "text": "UIAutomation\nPlanned",
+ "fontSize": 14,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "r-win-api",
+ "originalText": "UIAutomation\nPlanned",
+ "lineHeight": 1.25,
+ "index": "aL",
+ "autoResize": true
+ },
+ {
+ "id": "r-lin-api",
+ "type": "rectangle",
+ "x": 655,
+ "y": 725,
+ "width": 220,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "#dee2e6",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "dashed",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000023,
+ "version": 2,
+ "versionNonce": 1655606549,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-lin-api",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "index": "aM"
+ },
+ {
+ "id": "t-lin-api",
+ "type": "text",
+ "x": 700,
+ "y": 740,
+ "width": 130,
+ "height": 45,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000024,
+ "version": 2,
+ "versionNonce": 1327250107,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "text": "AT-SPI · D-Bus\nPlanned",
+ "fontSize": 14,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "r-lin-api",
+ "originalText": "AT-SPI · D-Bus\nPlanned",
+ "lineHeight": 1.25,
+ "index": "aN",
+ "autoResize": true
+ },
+ {
+ "id": "r-apps",
+ "type": "rectangle",
+ "x": 125,
+ "y": 874.3785492531795,
+ "width": 750,
+ "height": 70,
+ "angle": 0,
+ "strokeColor": "#c2255c",
+ "backgroundColor": "#fcc2d7",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 3
+ },
+ "seed": 1000025,
+ "version": 3,
+ "versionNonce": 1307936853,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-apps",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942846377,
+ "link": null,
+ "locked": false,
+ "index": "aO"
+ },
+ {
+ "id": "t-apps",
+ "type": "text",
+ "x": 318.3441162109375,
+ "y": 886.8785492531795,
+ "width": 363.311767578125,
+ "height": 45,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000026,
+ "version": 5,
+ "versionNonce": 1553817947,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942846430,
+ "link": null,
+ "locked": false,
+ "text": "Desktop Applications\nFinder · Safari · Xcode · Slack · any app",
+ "fontSize": 18,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "r-apps",
+ "originalText": "Desktop Applications\nFinder · Safari · Xcode · Slack · any app",
+ "lineHeight": 1.25,
+ "index": "aP",
+ "autoResize": true
+ },
+ {
+ "id": "a1",
+ "type": "arrow",
+ "x": 500,
+ "y": 100,
+ "width": 0,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#495057",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1000027,
+ "version": 2,
+ "versionNonce": 138677205,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "t-a1",
+ "type": "text"
+ }
+ ],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 75
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "index": "aQ"
+ },
+ {
+ "id": "t-a1",
+ "type": "text",
+ "x": 510,
+ "y": 122,
+ "width": 110,
+ "height": 25,
+ "angle": 0,
+ "strokeColor": "#495057",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000040,
+ "version": 2,
+ "versionNonce": 380831739,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "text": "JSON stdin/stdout",
+ "fontSize": 12,
+ "fontFamily": 3,
+ "textAlign": "center",
+ "verticalAlign": "top",
+ "containerId": "a1",
+ "originalText": "JSON stdin/stdout",
+ "lineHeight": 1.25,
+ "index": "aR",
+ "autoResize": true
+ },
+ {
+ "id": "a2",
+ "type": "arrow",
+ "x": 500,
+ "y": 255,
+ "width": 0,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#495057",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1000028,
+ "version": 2,
+ "versionNonce": 668846389,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 75
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "index": "aS"
+ },
+ {
+ "id": "a3",
+ "type": "arrow",
+ "x": 235,
+ "y": 500,
+ "width": 0,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#495057",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1000029,
+ "version": 2,
+ "versionNonce": 614879387,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 75
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "index": "aT"
+ },
+ {
+ "id": "a4",
+ "type": "arrow",
+ "x": 500,
+ "y": 500,
+ "width": 0,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "dashed",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1000030,
+ "version": 2,
+ "versionNonce": 471390869,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 75
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "index": "aU"
+ },
+ {
+ "id": "a5",
+ "type": "arrow",
+ "x": 765,
+ "y": 500,
+ "width": 0,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "dashed",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1000031,
+ "version": 2,
+ "versionNonce": 1919386939,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 75
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "index": "aV"
+ },
+ {
+ "id": "a6",
+ "type": "arrow",
+ "x": 235,
+ "y": 650,
+ "width": 0,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#495057",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1000032,
+ "version": 2,
+ "versionNonce": 1839906805,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 75
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "index": "aW"
+ },
+ {
+ "id": "a7",
+ "type": "arrow",
+ "x": 500,
+ "y": 650,
+ "width": 0,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "dashed",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1000033,
+ "version": 2,
+ "versionNonce": 660153819,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 75
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "index": "aX"
+ },
+ {
+ "id": "a8",
+ "type": "arrow",
+ "x": 765,
+ "y": 650,
+ "width": 0,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "dashed",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1000034,
+ "version": 2,
+ "versionNonce": 1922627925,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 75
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "index": "aY"
+ },
+ {
+ "id": "a9",
+ "type": "arrow",
+ "x": 235,
+ "y": 800,
+ "width": 0,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#495057",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1000035,
+ "version": 2,
+ "versionNonce": 1519235707,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 75
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "index": "aZ"
+ },
+ {
+ "id": "a10",
+ "type": "arrow",
+ "x": 500,
+ "y": 800,
+ "width": 0,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "dashed",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1000036,
+ "version": 2,
+ "versionNonce": 607717045,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 75
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "index": "aa"
+ },
+ {
+ "id": "a11",
+ "type": "arrow",
+ "x": 765,
+ "y": 800,
+ "width": 0,
+ "height": 75,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "dashed",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1000037,
+ "version": 2,
+ "versionNonce": 482847515,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942805457,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 75
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "index": "ab"
+ },
+ {
+ "id": "t-loop",
+ "type": "text",
+ "x": 695.6261704580925,
+ "y": 47.16787816023685,
+ "width": 180.46875,
+ "height": 35,
+ "angle": 0,
+ "strokeColor": "#868e96",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000038,
+ "version": 44,
+ "versionNonce": 1611725883,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942830477,
+ "link": null,
+ "locked": false,
+ "text": "Agent loop:\nobserve > decide > act",
+ "fontSize": 14,
+ "fontFamily": 3,
+ "textAlign": "left",
+ "verticalAlign": "top",
+ "containerId": null,
+ "originalText": "Agent loop:\nobserve > decide > act",
+ "lineHeight": 1.25,
+ "index": "ac",
+ "autoResize": true
+ },
+ {
+ "id": "t-title",
+ "type": "text",
+ "x": 306.6418439904364,
+ "y": -56.63008259115938,
+ "width": 410,
+ "height": 35,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 0,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "roundness": null,
+ "seed": 1000039,
+ "version": 75,
+ "versionNonce": 1682669275,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1771942825602,
+ "link": null,
+ "locked": false,
+ "text": "agent-desktop Architecture",
+ "fontSize": 28,
+ "fontFamily": 1,
+ "textAlign": "center",
+ "verticalAlign": "top",
+ "containerId": null,
+ "originalText": "agent-desktop Architecture",
+ "lineHeight": 1.25,
+ "index": "ad",
+ "autoResize": true
+ }
+ ],
+ "appState": {
+ "gridSize": 20,
+ "gridStep": 5,
+ "gridModeEnabled": false,
+ "viewBackgroundColor": "#ffffff",
+ "lockedMultiSelections": {}
+ },
+ "files": {}
+}
\ No newline at end of file
diff --git a/docs/architecture.png b/docs/architecture.png
new file mode 100644
index 000000000..9da00b894
Binary files /dev/null and b/docs/architecture.png differ