Galaxy Shell / docs
Docs / Histórico

POC 1: functional design

openspec/changes/archive/2026-10-25-poc-1/design.md · Editar no GitHub ↗

Esta página ainda não tem tradução em português. O conteúdo abaixo está em inglês.

Este documento registra decisões, planejamento ou evidências de uma etapa do projeto. Não implica que todos os itens estejam implementados ou validados na versão atual.

Nesta página

POC 1: functional design

Doc status: history. First POC scope of 2026-10-25 (Rust/Iced simulator); the Iced prototype was removed on 2026-10-30. See docs/web-shell-development.md. Checked 2026-11-10.

Product direction

Galaxy Shell is an agent-oriented shell and window manager. The user chooses the external applications for development, terminal, browsing and notes. These applications stay responsible for their own content and workflows. The product organizes windows and workspaces and presents intents, progress and approvals. It is not an IDE and not an application that embeds these tools.

In the POC, rectangles labeled by role represent external windows, with no embedded editor, terminal or browser. The choice of executables and the real launch/control through Hyprland are not implemented yet. This decision overrides earlier references to simulated content.

This document summarizes the first milestone. The full specification preserves the decisions and the planning of the following phases.

Goal

Observe the cycle: intent → planning → workspace → windows → organization → result.

Proposed minimal architecture

Start with a single Rust application and internal modules, without multiplying crates before a concrete need exists:

  • Domain: intents, workspaces, activities, agents and surfaces.
  • Simulator: operations to create, close, focus, move, resize and organize windows.
  • Agent: real integration with headless OpenCode over HTTP/SSE, linking activities to sessions and running tool calls against the simulator.
  • UI: Iced state and messages, components, theme and visual transitions.

The domain and the simulator contract must stay independent of the UI and of any compositor. This organization is a proposal for implementation, not existing code yet.

Scope

  • Dark, minimalist empty state with a central intent field and clickable suggestions.
  • Compact field after an activity starts.
  • Multiple workspaces with their own windows and focus.
  • Simulated windows that can be manipulated manually and by tools the real agent calls.
  • Real intents sent to OpenCode, with progress, errors and approval requests shown in the UI.
  • Agents with visible and discreet states.
  • Transitions that communicate state changes, and a responsive layout.
  • Return to the empty state.

Main scenario

  1. Enter Prepare my Laravel development workspace.
  2. Watch the agent plan and create the Development workspace.
  3. Watch the simulated editor, terminal and browser appear and get organized.
  4. Watch the completion and the compact intent field.
  5. Enter Focus on the editor and move the terminal to the right.
  6. Watch the change of focus and position.
  7. Switch to another workspace, come back and check that the visual context is preserved.
  8. Return to the empty state.

Out of scope

Real control of operating system windows, a custom compositor, complex persistence, a database, cloud sync, full plugins and parity across operating systems. Real LLM integration through OpenCode is part of this milestone.

Acceptance criteria and future validation

  • The native application compiles. The agent flow uses local headless OpenCode and an authenticated provider/model.
  • The main scenario proves real interpretation of intents and tool calls, with no deterministic responses in place of the agent.
  • Unavailability or an authentication failure of OpenCode shows up in the UI, with no silent fallback to a simulated agent.
  • The main flow is demonstrated through the interface.
  • Suggestions, workspace creation and workspace switching work.
  • Windows are preserved per workspace and can be reorganized.
  • Agent states and layout changes are visually understandable.
  • Resizing the main window keeps the interface usable.
  • Tests check the domain transitions and the simulator operations.
  • Run commands and checks are documented after validation.

The initial milestone was documentation only. For the current state of the implementation and the validation coverage, see development. Not all criteria are complete.

Additions from the decision record

The architecture record of 2026-10-25, including the decision to use OpenCode in POC 1, complements the handoff with the following criteria:

  • Render on demand and pause invisible animations.
  • Instrument CPU, memory, GPU and interaction latency according to the available resources, and document the limits of the measurement.
  • Keep results verifiable and tool states observable.
  • Plan for consent and recovery for potentially destructive actions in future integrations.
  • Evaluate layer-shell and compatibility with Iced only when real surfaces on Linux become necessary. This integration is not validated yet.

In the first milestone, selecting and opening applications are represented by simulated windows, controlled by the real agent through OpenCode. Launching and controlling operating system applications belong to the later integration.