# pixel-alquimia-studios/aether-ide architecture

> Architecture diagram of the GitHub repository pixel-alquimia-studios/aether-ide, 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/pixel-alquimia-studios/aether-ide
- Repository: https://github.com/pixel-alquimia-studios/aether-ide

## Overview

Aether IDE is a desktop code editor whose main workflow runs from opening a workspace, through editing and saving files, to using AI chat or an agent against that workspace. The React/TypeScript UI and stores coordinate workspace, editor, chat, and agent state; Tauri/Rust supplies filesystem, AI, package, web, and terminal capabilities. README statements support several product-level links; source excerpts show selected state and API calls. Other backend and UI connections are not fully sampled, so their detailed wiring is not inferred.

Main entry points: [`src/stores/agentStore.ts`](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/agentStore.ts) (Agent orchestration), [`src/App.tsx`](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/App.tsx) (App shell), [`src/stores/chatStore.ts`](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/chatStore.ts) (Chat state), [`src/lib/ai/api.ts`](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/ai/api.ts) (AI gateway client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop application"]
  node_app["App shell<br/>[App.tsx]"]
  node_ui["UI state<br/>[uiStore.ts]"]
  node_session["Session restore<br/>[useSession.ts]"]
end

subgraph group_workspace["Workspace editing"]
  node_workspace_state["Workspace state<br/>[workspaceStore.ts]"]
  node_workspace_fs["Workspace filesystem<br/>[fs.ts]"]
  node_editor["Editor state<br/>[editorStore.ts]"]
  node_editor_view["Monaco editor<br/>[EditorView.tsx]"]
  node_git["Git integration<br/>[git.ts]"]
end

subgraph group_assistant["AI assistance"]
  node_chat_ui["Chat panel<br/>[ChatPanel.tsx]"]
  node_chat_state["Chat state<br/>[chatStore.ts]"]
  node_chat_history[("Chat persistence<br/>[chats.ts]")]
  node_ai_context["Prompt context<br/>[context.ts]"]
  node_ai_api["AI gateway client<br/>[api.ts]"]
  node_provider_settings["Provider settings<br/>[settingsStore.ts]"]
end

subgraph group_agent["Agent capabilities"]
  node_agent_state["Agent orchestration<br/>[agentStore.ts]"]
  node_agent_tools["Agent tools<br/>[tools.ts]"]
  node_permissions["Agent permissions<br/>[permissions.ts]"]
  node_subagents["Analysis subagents<br/>[subagents.ts]"]
  node_packages["Installable packages<br/>[packages.ts]"]
end

subgraph group_native["Native services"]
  node_terminal["Integrated terminal<br/>[pty.rs]"]
  node_native_ai["Native AI gateway<br/>[mod.rs]"]
  node_native_commands["Native commands<br/>[commands.rs]"]
  node_native_ai_commands["AI commands<br/>[commands_ai.rs]"]
  node_web_tools["Web tools<br/>[web.rs]"]
  node_package_commands["Package commands"]
end

node_user(("Desktop user"))
node_provider{{"AI providers"}}

node_user -->|"uses"| node_app
node_app -->|"reads state"| node_ui
node_app -->|"restores session"| node_session
node_session -->|"loads workspace"| node_workspace_fs
node_session -->|"loads chat"| node_chat_history
node_user -->|"opens workspace"| node_workspace_state
node_workspace_state -->|"reads files"| node_workspace_fs
node_editor_view -->|"edits"| node_editor
node_editor -->|"saves files"| node_workspace_fs
node_user -->|"manages changes"| node_git
node_user -->|"runs commands"| node_terminal
node_app -->|"renders"| node_chat_ui
node_chat_ui -->|"sends messages"| node_chat_state
node_chat_state -->|"builds context"| node_ai_context
node_chat_state -->|"streams chat"| node_ai_api
node_chat_state -->|"persists chats"| node_chat_history
node_provider_settings -->|"fetches models"| node_ai_api
node_ai_api -->|"invokes gateway"| node_native_ai
node_native_ai -->|"requests completions"| node_provider
node_user -->|"starts agent"| node_agent_state
node_agent_state -->|"resolves mentions"| node_ai_context
node_agent_state -->|"calls tools model"| node_ai_api
node_agent_state -->|"runs tools"| node_agent_tools
node_agent_state -->|"dispatches analysis"| node_subagents
node_agent_state -->|"loads packages"| node_packages
node_agent_tools -.->|"checks access"| node_permissions
node_agent_tools -.->|"changes files"| node_workspace_fs
node_native_commands -->|"registers commands"| node_native_ai_commands
node_native_commands -->|"registers commands"| node_package_commands
node_native_commands -->|"registers commands"| node_web_tools

click node_app "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/App.tsx"
click node_ui "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/uiStore.ts"
click node_session "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/hooks/useSession.ts"
click node_workspace_state "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/workspaceStore.ts"
click node_workspace_fs "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/workspace/fs.ts"
click node_editor "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/editorStore.ts"
click node_editor_view "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/components/editor/EditorView.tsx"
click node_git "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/git.ts"
click node_terminal "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src-tauri/src/pty.rs"
click node_chat_ui "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/components/ai/ChatPanel.tsx"
click node_chat_state "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/chatStore.ts"
click node_chat_history "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/ai/chats.ts"
click node_ai_context "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/ai/context.ts"
click node_ai_api "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/ai/api.ts"
click node_provider_settings "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/settingsStore.ts"
click node_native_ai "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src-tauri/src/ai/mod.rs"
click node_agent_state "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/agentStore.ts"
click node_agent_tools "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/agent/tools.ts"
click node_permissions "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/agent/permissions.ts"
click node_subagents "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/agent/subagents.ts"
click node_packages "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/agent/packages.ts"
click node_native_commands "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src-tauri/src/commands.rs"
click node_native_ai_commands "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src-tauri/src/commands_ai.rs"
click node_web_tools "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src-tauri/src/web.rs"
click node_package_commands "https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src-tauri/src/commands_packages.rs"

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_app,node_ui,node_session,node_user toneBlue
class node_workspace_state,node_workspace_fs,node_editor,node_editor_view,node_git toneAmber
class node_chat_ui,node_chat_state,node_chat_history,node_ai_context,node_ai_api,node_provider_settings toneMint
class node_agent_state,node_agent_tools,node_permissions,node_subagents,node_packages toneRose
class node_terminal,node_native_ai,node_native_commands,node_native_ai_commands,node_web_tools,node_package_commands,node_provider toneIndigo
```

## Components

### Desktop application

- [App shell](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/App.tsx): `src/App.tsx`
- [UI state](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/uiStore.ts): `src/stores/uiStore.ts`
- [Session restore](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/hooks/useSession.ts): `src/hooks/useSession.ts`

### Workspace editing

- [Workspace state](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/workspaceStore.ts): `src/stores/workspaceStore.ts`
- [Workspace filesystem](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/workspace/fs.ts): `src/lib/workspace/fs.ts`
- [Editor state](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/editorStore.ts): `src/stores/editorStore.ts`
- [Monaco editor](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/components/editor/EditorView.tsx): `src/components/editor/EditorView.tsx`
- [Git integration](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/git.ts): `src/lib/git.ts`

### AI assistance

- [Chat panel](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/components/ai/ChatPanel.tsx): `src/components/ai/ChatPanel.tsx`
- [Chat state](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/chatStore.ts): `src/stores/chatStore.ts`
- [Chat persistence](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/ai/chats.ts): `src/lib/ai/chats.ts`
- [Prompt context](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/ai/context.ts): `src/lib/ai/context.ts`
- [AI gateway client](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/ai/api.ts): `src/lib/ai/api.ts`
- [Provider settings](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/settingsStore.ts): `src/stores/settingsStore.ts`

### Agent capabilities

- [Agent orchestration](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/stores/agentStore.ts): `src/stores/agentStore.ts`
- [Agent tools](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/agent/tools.ts): `src/lib/agent/tools.ts`
- [Agent permissions](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/agent/permissions.ts): `src/lib/agent/permissions.ts`
- [Analysis subagents](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/agent/subagents.ts): `src/lib/agent/subagents.ts`
- [Installable packages](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src/lib/agent/packages.ts): `src/lib/agent/packages.ts`

### Native services

- [Integrated terminal](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src-tauri/src/pty.rs): `src-tauri/src/pty.rs`
- [Native AI gateway](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src-tauri/src/ai/mod.rs): `src-tauri/src/ai/mod.rs`
- [Native commands](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src-tauri/src/commands.rs): `src-tauri/src/commands.rs`
- [AI commands](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src-tauri/src/commands_ai.rs): `src-tauri/src/commands_ai.rs`
- [Web tools](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src-tauri/src/web.rs): `src-tauri/src/web.rs`
- [Package commands](https://github.com/pixel-alquimia-studios/aether-ide/blob/main/src-tauri/src/commands_packages.rs): `src-tauri/src/commands_packages.rs`

### Other components

- **Desktop user**
- **AI providers**

## Connections

- Desktop user → App shell: uses
- App shell → UI state: reads state (evidence: `src/App.tsx`)
- App shell → Session restore: restores session (evidence: `src/App.tsx`)
- Session restore → Workspace filesystem: loads workspace (evidence: `src/hooks/useSession.ts`)
- Session restore → Chat persistence: loads chat (evidence: `src/hooks/useSession.ts`)
- Desktop user → Workspace state: opens workspace
- Workspace state → Workspace filesystem: reads files (evidence: `src/stores/workspaceStore.ts`)
- Monaco editor → Editor state: edits
- Editor state → Workspace filesystem: saves files (evidence: `src/stores/editorStore.ts`)
- Desktop user → Git integration: manages changes
- Desktop user → Integrated terminal: runs commands
- App shell → Chat panel: renders (evidence: `src/App.tsx`)
- Chat panel → Chat state: sends messages (evidence: `src/components/ai/ChatPanel.tsx`)
- Chat state → Prompt context: builds context (evidence: `src/stores/chatStore.ts`)
- Chat state → AI gateway client: streams chat (evidence: `src/stores/chatStore.ts`)
- Chat state → Chat persistence: persists chats (evidence: `src/stores/chatStore.ts`)
- Provider settings → AI gateway client: fetches models (evidence: `src/stores/settingsStore.ts`)
- AI gateway client → Native AI gateway: invokes gateway
- Native AI gateway → AI providers: requests completions
- Desktop user → Agent orchestration: starts agent
- Agent orchestration → Prompt context: resolves mentions (evidence: `src/stores/agentStore.ts`)
- Agent orchestration → AI gateway client: calls tools model (evidence: `src/stores/agentStore.ts`)
- Agent orchestration → Agent tools: runs tools (evidence: `src/stores/agentStore.ts`)
- Agent orchestration → Analysis subagents: dispatches analysis (evidence: `src/stores/agentStore.ts`)
- Agent orchestration → Installable packages: loads packages (evidence: `src/stores/agentStore.ts`)
- Agent tools → Agent permissions: checks access
- Agent tools → Workspace filesystem: changes files
- Native commands → AI commands: registers commands (evidence: `src-tauri/src/lib.rs`)
- Native commands → Package commands: registers commands (evidence: `src-tauri/src/lib.rs`)
- Native commands → Web tools: registers commands (evidence: `src-tauri/src/lib.rs`)
