# Crate Map [简体中文](zh-Hans/crate-map.md) Use the [workspace manifest](../../Cargo.toml) to confirm the package name, membership and dependency source. The default member is `oxideterm-gpui-app`; it is not the default home for new code. ## Put new behavior with its owner | Change | Owner | | --- | --- | | Validation, storage, protocol handling, or a service that can run without a window | A domain crate, `oxideterm-*` without GPUI dependencies. Keep the state transitions and workers with the data they operate on. | | An independent page, panel, editor, or dialog | An existing or new `oxideterm-gpui-*` feature crate. It owns its entity, drafts, list/cache state, `impl Render`, and local `cx.notify()`. Group related view handles rather than adding a field to `WorkspaceApp` for every dialog. | | A reusable control or a workspace interaction shared by hosts | [GPUI UI primitives](../../crates/oxideterm-gpui-ui/src) for controls; [GPUI shell](../../crates/oxideterm-gpui-shell/src) for chrome, tabs, split interactions, shortcuts and shared workspace UI. | | A native window action, new mount, focus/IME route, global shortcut, or runtime binding | [Desktop workspace](../../crates/oxideterm-gpui-app/src/workspace). Keep window and tab/pane orchestration, active node/session registries and narrow `HostBridge` or window-request adapters here. | Feature crates do not depend on `oxideterm-gpui-app`. Mount their entities as views and pass host services or typed requests across the boundary. Do not turn feature updates into full-window invalidation with `cx.observe(..., |_, _, cx| cx.notify())` in [root initialization](../../crates/oxideterm-gpui-app/src/workspace/root/init.rs). Start from the full implementation of a similar interaction; see [GPUI product UI](gpui-product-ui.md) and the [crate responsibility guide](../../.agents/skills/split-crate-by-responsibility/SKILL.md). Some desktop integrations still live in the app, including [plugin management](../../crates/oxideterm-gpui-app/src/workspace/plugin_manager.rs) and parts of [settings](../../crates/oxideterm-gpui-app/src/workspace/settings). These are source entry points, not templates for adding new feature state to the root. ## Host entry points - **Desktop:** [app startup](../../crates/oxideterm-gpui-app/src/main.rs) mounts the [native workspace window](../../crates/oxideterm-gpui-app/src/workspace/window_shell.rs). [Tab state](../../crates/oxideterm-gpui-app/src/workspace/tabs/entity.rs) tracks pages, panes and window mounts. The [workspace model](../../crates/oxideterm-workspace/src/lib.rs) defines `TabKind` and `PaneNode`; the [shared shell](../../crates/oxideterm-gpui-shell/src/panes.rs) renders the split tree. - **Browser:** [boot](../../crates/oxideterm-gpui-web/src/boot.rs) mounts the browser [workspace host](../../crates/oxideterm-gpui-web/src/host.rs) using [platform selection](../../crates/oxideterm-gpui-platform/src/lib.rs). Without a gateway URL it starts Demo; with a gateway it uses the [WSS message adapter](../../crates/oxideterm-gpui-web/src/transport.rs). Browser-granted local directories and [BLE](../../crates/oxideterm-gpui-web/src/ble.rs) are independent of that socket. Shared views do not imply shared service availability. - **Framework:** [GPUI vendor maintenance](gpui-pre.md) explains the locally patched core, platform/render packages and Linux XIM crates. Start in the owning product layer for product behavior. The `russh` patch is an external Git revision in the workspace manifest; [`russh-sftp`](../../crates/russh-sftp) and [`vte`](../../crates/vte) are local workspace packages. ## Follow a feature from the view to its service | Area | Feature or host entry | Domain owner and boundary | | --- | --- | --- | | Terminal input, selection and paint | [Shared terminal canvas](../../crates/oxideterm-gpui-terminal-view/src), [desktop canvas adapter](../../crates/oxideterm-gpui-terminal/src/terminal_view.rs), [Web session dispatch](../../crates/oxideterm-gpui-web/src/terminal.rs) | [Native terminal sessions](../../crates/oxideterm-terminal/src) own PTY and session delivery. [Emulator](../../crates/oxideterm-terminal-emulator/src), [terminal model](../../crates/oxideterm-terminal-model/src), [grid](../../crates/alacritty-terminal/src) and [graphics](../../crates/oxideterm-terminal-graphics/src) own parser state, snapshots and image protocol state without owning panes. | | SSH, jump hosts and reconnect | [Runtime entity](../../crates/oxideterm-gpui-app/src/workspace/runtime_entity.rs), [terminal creation](../../crates/oxideterm-gpui-app/src/workspace/tabs/create.rs) | [SSH](../../crates/oxideterm-ssh/src) owns node routing, session registry, authenticated connections and channels. [SSH launch](../../crates/oxideterm-ssh-launch/src), [connections](../../crates/oxideterm-connections/src), and [network proxy](../../crates/oxideterm-network-proxy/src) own their launch, catalog and routing contracts. | | SFTP, file manager and forwarding | [SFTP views](../../crates/oxideterm-gpui-sftp/src), [file manager](../../crates/oxideterm-gpui-file-manager/src), [forwards UI](../../crates/oxideterm-gpui-forwards/src) | [SFTP](../../crates/oxideterm-sftp/src), [local files](../../crates/oxideterm-local-files/src), [FTP](../../crates/oxideterm-ftp/src), and [forwarding](../../crates/oxideterm-forwarding/src) own file and transport behavior. [ForwardingRuntimeService](../../crates/oxideterm-gpui-app/src/workspace/forwards/runtime_service.rs) retains listeners and SSH consumer bindings independently of page mounts. | | IDE and shared editor | [IDE surface](../../crates/oxideterm-gpui-ide/src/surface.rs), [desktop IDE adapter](../../crates/oxideterm-gpui-app/src/workspace/ide.rs), [shared editor](../../crates/oxideterm-gpui-editor/src) | [IDE core](../../crates/oxideterm-ide-core/src) owns project state and the filesystem contract; [IDE filesystem](../../crates/oxideterm-ide-fs/src) binds local and remote backends. [Editor core](../../crates/oxideterm-editor-core/src) owns text and cursors; [editor syntax](../../crates/oxideterm-editor-syntax/src) owns syntax processing. | | Remote desktop | [Desktop workspace adapter](../../crates/oxideterm-gpui-app/src/workspace/remote_desktop.rs), [viewer/session entity](../../crates/oxideterm-gpui-remote-desktop/src/session.rs) | [Remote desktop](../../crates/oxideterm-remote-desktop/src) owns profiles, provider/helper contract and frame admission; [PCM audio](../../crates/oxideterm-pcm-audio/src) owns native audio I/O. Protocol implementations ship out of tree as RDP, VNC and SPICE plugins. | | Host tools | [Host tools entity](../../crates/oxideterm-gpui-host-tools/src/entity.rs), [host capture/command boundary](../../crates/oxideterm-gpui-host-tools/src/bridge.rs) | [Connection monitor](../../crates/oxideterm-connection-monitor/src) owns commands, discovery and parsing for Docker, Podman, nerdctl, WSL container CLI (`wslc`) and Redis. [`oxideterm-docker`](../../crates/oxideterm-docker/src) instead supports the separate [standalone container connection path](../../crates/oxideterm-gpui-app/src/workspace/standalone_connections.rs). | | Plugin installation and discovery | [Desktop plugin lifecycle](../../crates/oxideterm-gpui-app/src/workspace/plugin_lifecycle), [discovery workspace adapter](../../crates/oxideterm-gpui-app/src/workspace/discovery.rs) | [Manifest](../../crates/oxideterm-plugin-manifest/src), [registry](../../crates/oxideterm-plugin-registry/src), [host API](../../crates/oxideterm-plugin-host-api/src), [process protocol](../../crates/oxideterm-plugin-protocol/src) and [WASM runtime](../../crates/oxideterm-plugin-wasm-runtime/src) have distinct roles. [Discovery](../../crates/oxideterm-discovery/src) owns the discovered catalog and origin model; discovery results are not automatically saved profiles. | | AI, ACP and Public MCP | [AI feature UI](../../crates/oxideterm-gpui-ai/src), [Public MCP workspace dispatch](../../crates/oxideterm-gpui-app/src/workspace/public_mcp.rs) | [AI](../../crates/oxideterm-ai/src) and [AI tasks](../../crates/oxideterm-ai-tasks/src) own model and run coordination; [ACP host tools](../../crates/oxideterm-acp-host-tools/src) and [Public MCP host](../../crates/oxideterm-public-mcp-host/src) are separate adapters. [Public MCP](../../crates/oxideterm-public-mcp/src) owns the public service, authorization, broker and opaque handles. | | Settings, storage and sync | [Settings views](../../crates/oxideterm-gpui-settings-view/src), [cloud-sync surface](../../crates/oxideterm-gpui-cloud-sync/src), [live-owner delivery](../../crates/oxideterm-gpui-app/src/workspace/cloud_sync/delivery.rs) | [Settings](../../crates/oxideterm-settings/src) owns persisted values and [settings model](../../crates/oxideterm-settings-model/src) supplies view-facing settings models. [Secret store](../../crates/oxideterm-secret-store/src) owns credentials; [cloud sync](../../crates/oxideterm-cloud-sync/src) owns synchronization and publication. | | Localization, design and audit | [Locale catalogs](../../crates/oxideterm-i18n/locales), [theme tokens](../../crates/oxideterm-theme/src), [audit views](../../crates/oxideterm-gpui-audit/src) | [I18n](../../crates/oxideterm-i18n/src) handles lookup and interpolation; [audit](../../crates/oxideterm-audit/src) and [terminal recording](../../crates/oxideterm-terminal-recording/src) are separate storage contracts. | ## Find the supporting crate ### Connection setup and transports | Crate | Responsibility | | --- | --- | | [`oxideterm-session-adapter`](../../crates/oxideterm-session-adapter/src/lib.rs) | Converts saved connection records and settings into runtime configuration, including SSH authentication, SSH/RDP proxy settings, and SFTP session settings. Loads saved secrets when the runtime needs them. | | [`oxideterm-local-command`](../../crates/oxideterm-local-command/src/lib.rs) | Runs user-authored local pre-connect commands with timeout and cancellation. | | [`oxideterm-backend-classification`](../../crates/oxideterm-backend-classification/src/lib.rs) | Maps I/O kinds and backend error messages to shared error categories for SSH-adjacent features. | | [`oxideterm-security-key`](../../crates/oxideterm-security-key/src/lib.rs) | Owns the bounded private signing protocol and client between SSH authentication and the FIDO provider. | | [`oxideterm-mosh`](../../crates/oxideterm-mosh/src/lib.rs) | Bootstraps Mosh over dedicated SSH, then owns the plugin process for the UDP session. | | [`oxideterm-ble`](../../crates/oxideterm-ble/src/lib.rs) | Enumerates native Bluetooth LE adapters, discovers and resolves devices, and inspects GATT services. The [terminal runtime](../../crates/oxideterm-terminal/src/session/ble.rs) owns the terminal session. | | [`oxideterm-x11-forwarding`](../../crates/oxideterm-x11-forwarding/src/lib.rs) | Resolves X11 displays and authority, handles setup authentication, and bridges streams to local X servers. [SSH transport](../../crates/oxideterm-ssh/src/transport/x11.rs) owns channel wiring. | | [`oxideterm-wsl-graphics`](../../crates/oxideterm-wsl-graphics/src/lib.rs) | Handles `wsl.exe` commands and WSLg detection, and manages backend processes for WSL app and desktop sessions. | ### Terminal text and stream protocols | Crate | Responsibility | | --- | --- | | [`oxideterm-terminal-encoding`](../../crates/oxideterm-terminal-encoding/src/lib.rs) | Decodes terminal output incrementally, encodes input, and detects likely encoding mismatches. | | [`oxideterm-terminal-unicode`](../../crates/oxideterm-terminal-unicode/src/lib.rs) | Groups terminal cells into grapheme clusters and maps logical columns to and from bidirectional display order. | | [`oxideterm-terminal-semantic`](../../crates/oxideterm-terminal-semantic/src/lib.rs) | Validates and compiles semantic schemes and classifies terminal text into byte spans and roles. The renderer chooses the colors. | | [`oxideterm-terminal-triggers`](../../crates/oxideterm-terminal-triggers/src/lib.rs) | Stores versioned trigger rules, scans decoded output with bounded buffering, and expands matched action templates. The runtime dispatches actions. | | [`oxideterm-environment`](../../crates/oxideterm-environment/src/lib.rs) | Supplies working-directory inference and local/SSH probe logic for Git, project metadata, and archive tools. Callers own command execution. | | [`oxideterm-tmux`](../../crates/oxideterm-tmux/src/lib.rs) | Parses tmux control-mode events, output, and layouts; the existing PTY or SSH channel retains transport ownership. | | [`oxideterm-modem-transfer`](../../crates/oxideterm-modem-transfer/src/lib.rs) | Detects and processes X/Y/ZMODEM transfers on raw terminal bytes without direct filesystem I/O. | | [`oxideterm-trzsz`](../../crates/oxideterm-trzsz/src/lib.rs) | Handles trzsz protocol transfers, guarded local file I/O, and cleanup of owner-scoped transfer handles. | ### Desktop features and rendering | Crate | Responsibility | | --- | --- | | [`oxideterm-desktop-presence`](../../crates/oxideterm-desktop-presence/src/lib.rs) | Owns the Windows notification-area icon and macOS menu-bar status item. The app routes window and menu actions. | | [`oxideterm-gpui-background`](../../crates/oxideterm-gpui-background/src/lib.rs) | Owns GPUI background layout, the static image cache, previews, and native-window playback. | | [`oxideterm-gpui-onboarding`](../../crates/oxideterm-gpui-onboarding/src/lib.rs) | Owns the first-run view, step layout and transitions, and localized refreshes. | | [`oxideterm-gpui-quick-commands`](../../crates/oxideterm-gpui-quick-commands/src/lib.rs) | Owns the quick-command dock, manager, and editor. The host handles terminal execution and native input. | | [`oxideterm-render-policy`](../../crates/oxideterm-render-policy/src/lib.rs) | Resolves a render profile against detected graphics capabilities to set effects, image budgets, and terminal drain limits. | | [`oxideterm-notification-center`](../../crates/oxideterm-notification-center/src/lib.rs) | Owns bounded in-memory notification and runtime event-log state, including filtering and read status. | ### Storage and content services | Crate | Responsibility | | --- | --- | | [`oxideterm-app-lock`](../../crates/oxideterm-app-lock/src/lib.rs) | Persists and checks the workspace lock password verifier and exposes platform biometric authentication. | | [`oxideterm-atomic-file`](../../crates/oxideterm-atomic-file/src/lib.rs) | Provides durable atomic file writes and replacement, plus durable removal and directory sync. Callers own data formats. | | [`oxideterm-preview`](../../crates/oxideterm-preview/src/lib.rs) | Owns file preview classification, asset lifetimes, and media backend state shared by SFTP and the local file manager. | | [`oxideterm-skills`](../../crates/oxideterm-skills/src/lib.rs) | Parses Agent Skills and owns native skill discovery, cataloging, and bounded content loading. | ## Trace the boundary that failed 1. Find the identity that scopes the operation: pane, node, file endpoint, project, desktop session, or Public MCP handle. A tab title and the currently focused pane are not substitutes. 2. Follow the callback to the feature entity or host adapter, then to the service that owns the operation. Find the cancellation path and the identity/version check on result delivery before editing either end. 3. Locate the smallest check that exercises that contract. For instance, a stale IDE save belongs near [save completion](../../crates/oxideterm-gpui-ide/src/surface/editor_actions.rs); a stale frame belongs near the [frame queue](../../crates/oxideterm-remote-desktop/src/frame_queue.rs). A slow terminal draw starts at the [shared paint path](../../crates/oxideterm-gpui-terminal-view/src/element/paint.rs), not at SSH authentication. Use `cargo tree -p ` when dependency direction is unclear. For long-running work, see [runtime ownership](runtime-ownership.md); for choosing a check, see [verification](verification.md).