Our system is composed of four primary components, each in its own repository:
Primary Components
Common🧑🏻🏭 (Rust Crate): The abstract core library. It defines the architectural “language” of the application through traits, data structures (DTOs), and a declarative Effect system. It has no knowledge of the final implementation.Mountain⛰️ (Rust Application): The native backend. It is a Tauri application that implements the abstract traits fromCommon, manages the native OS interactions, runs a gRPC server, and orchestrates theCocoonsidecar process.Wind🍃 &Sky🌌 (TypeScript UI): The frontend.Windis a re-implementation of the VS Code workbench services usingEffect-TS, providing the application logic for the UI.Skyis theAstro-based UI layer that renders the editor interface and bridgesTaurievents to the workbench viaSkyBridge.Cocoon🦋 (TypeScript Application): A Node.js sidecar process managed byMountain. It is responsible for running extensions in a sandboxed environment and providing them with a high-fidelityvscodeAPI.
Communication between Mountain and Cocoon is handled via gRPC, while
communication between Mountain and Wind/Sky is handled via Tauri Events
and Commands.
Core Workflows
Each workflow below has its own page; the summary says what that page covers.
-
- Describes the end-to-end process of syncing user settings. It covers user authentication, fetching data from a remote store, performing a three-way merge, applying changes locally, and notifying all parts of the application.
-
- Explains the “Extension Development Host” model, where a second, isolated
instance of the application is launched to run tests, with the test
Cocooninstance remote-controlling the main UI.
- Explains the “Extension Development Host” model, where a second, isolated
instance of the application is launched to run tests, with the test
-
Tier-Gated Implementation Selection
- Describes how the
.env.Landfile propagates throughMaintain’s build script intoMountain’sbuild.rs,Cocoon’s esbuild define map, andSky’s Vite define map - allowing each capability with more than one viable implementation (gRPC vs native, JS glob vsglobset, etc.) to live in the codebase simultaneously and be selected at build time without duplicating call sites.
- Describes how the
Work in Progress (Documentation) 🚧
The following workflows are implemented in the codebase but are pending detailed documentation.
- Tree View Data Flow
- Describes how the UI requests children for a tree view node, and how
Mountainproxies this request to the correctTreeDataProviderinCocoon.
- Describes how the UI requests children for a tree view node, and how
- Custom Editor Lifecycle
- Details the process of opening a file in a custom editor, handling edits, saving custom document data, and managing backups and reverts.
- Debugging Session Lifecycle
- Task Execution
- Explains how tasks defined in
tasks.jsonor by extensions are discovered and executed, including how their output is piped to a terminal view.
- Explains how tasks defined in
System Documentation
The following documents provide in-depth system-level documentation
complementing these workflows. A comprehensive master index is available at
README.md.
| Document | Topics Covered |
|---|---|
| Architecture | System architecture, process model, IPC architecture, service layer design |
| BuildPipeline | Build stages, env propagation, profile system, artifact layout |
| EditorCore | Workbench adaptation, Wind service layer, command dispatch, workbench variants |
| Polyfills | Preload shim, SkyBridge, Cocoon prelude, Output transforms, Worker SW |
| RustInfrastructure | Common traits, Echo scheduler, Mountain, Mist DNS, Air daemon, Rest OXC, Vine gRPC protocol |
| InterComponentProtocol | Tauri IPC, Vine gRPC, Spine protocol, connection lifecycle, health monitoring |
Per-Element Architecture
Each Element has an Architecture.md in its Documentation/GitHub/ directory
covering its internal module structure, data flow, and component-specific
implementation details:
| Element | Language | Role | Doc |
|---|---|---|---|
| Air | Rust | Background daemon | Architecture |
| Cache | Rust | Process-wide caches | Architecture |
| Cocoon | TypeScript | Node.js extension host | Architecture |
| Common | Rust | Abstract core library | Architecture |
| Echo | Rust | Work-stealing scheduler | Architecture |
| Grove | Rust | WASM extension host | Architecture |
| Mist | Rust | DNS isolation server | Architecture |
| Maintain | Rust | Build orchestration | Architecture |
| Mountain | Rust | Native backend (Tauri) | Architecture |
| Output | TypeScript | Build artifact management | Architecture |
| Rest | Rust | OXC TypeScript compiler | Architecture |
| SideCar | Rust | Vendored runtime manager | Architecture |
| Sky | TypeScript | UI component layer | Architecture |
| Vine | Protocol | gRPC protocol definitions | Architecture |
| Wind | TypeScript | Frontend service layer | Architecture |
| Worker | TypeScript | Service worker | Architecture |
Project Maintainers: Source Open (Source/[email protected]) | GitHub Repository | Report an Issue