# Repository Briefing: Leonxlnx/sable
> Source: https://repoforai.com/repo/Leonxlnx/sable (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Leonxlnx/sable
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A (86/100 · Maintenance 35/35 · Adoption 11/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.2.66 (2026-12-03) — https://github.com/Leonxlnx/sable/releases
- **Review Snapshot**: 2026-12-03 (Note: v0.2.66 on 2026-12-03 shipped after this review; verify latest release notes)
- **Deployment / Stack Signals**: Self-Hosted
- **Momentum**: 59 ★ total (+1 24h / +7 7d) · 6 forks
- **Topics**: `ai-agents`, `claude-code`, `codex`, `electron`, `react`, `typescript`
- **When to Use**: Best for: Developers who already use Claude Code and Codex and need a common place for diffs, second opinions, parallel task runs, and Android approvals. Skip if: You need a supported Linux desktop, an editor-first workflow, or an offline model runtime rather than a local shell for provider tools.

## Overview
```text
### Architecture & Core Mechanics
Sable is an Electron desktop shell around a stateful local bridge, not a model runtime. The shell in `electron/` handles windowing, menus, updates, and keep-awake behavior. Vite serves the React 19 and TypeScript frontend, while `server/` owns sessions, accounts, queues, and services. The frontend uses Zustand for view state and communicates with the bridge over WebSocket at `/__sable`; RPC methods and types live in `shared/protocol.ts`.

Adapters connect to Claude through the Claude Agent SDK, Codex through `codex app-server`, and optional OpenCode through `opencode acp`. They normalize messages, tool activity, and turn state into a shared `TimelineItem` model, so the UI can render different providers in the same timeline. `server/core/runtime.ts` manages the timeline and queue. The Capacitor/React Android client connects through the bridge's phone service rather than launching providers itself.

### Key Capabilities & Differentiators
The timeline condenses a running turn into a live status line, with expandable command, tool, and edit steps. Claude Code and Codex can delegate to each other, switch within a chat with separate histories and a short handoff, or ask the other agent to review a completed diff read-only. `/race` runs the same task in separate repository copies so the user can compare results before choosing one. Optional lanes assign overlapping Git sessions separate worktrees and branches.

The workspace puts diffs and line comments beside a terminal and browser. `/until` repeats a task until a test, build, or lint check passes within round and usage limits. For output beyond prose, `show_widget` renders interactive views in a sandboxed frame without network, host-app, or file access; the conversation also supports Mermaid and HTML/SVG previews. The Android client can follow live progress, send messages, and answer permissions or questions.

### Trade-offs & Limitations
Compared with running a provider CLI directly, Sable adds a common review surface and cross-agent coordination, but it also adds an Electron runtime, a local bridge, and adapters that must keep pace with provider interfaces. Parallel runs and worktrees give changes separate places to land, at the cost of more checkout storage, concurrent project processes, and potentially more provider quota. An editor-native assistant is a better fit if the primary workflow is editing and navigating code rather than supervising agents.

Self-hosting applies to the desktop and bridge, not automatically to inference: model availability and account limits come from the configured agents, and offline behavior depends on the backend. Sable itself does not introduce a dedicated GPU sizing target. Organizations should evaluate installer trust and remote-approval access separately from provider data handling. The documented desktop paths cover Windows and experimental macOS, not Linux.

### Hardware & Deployment Guide
Windows 10 and 11 are supported through a per-user installer that is not code-signed. Experimental macOS builds cover Apple silicon and Intel; they are ad hoc signed and not notarized. Install and sign in to Claude Code or Codex before use; OpenCode is optional. Sable keeps its profile in `~/.sable`. Android 7 or newer can pair by QR code from a sideloaded APK. The desktop must stay awake; use the same Wi-Fi or Tailscale for remote reachability.

Source development requires Node 22 or newer and pnpm. `pnpm dev` uses the real profile; `node scripts/dev-test.mjs` uses a disposable one. Tests and type checking also need the mobile dependencies. Windows packaging uses `pnpm desktop:dist`; macOS packaging uses `pnpm desktop:dist:mac` on a Mac. In the v0.2.58–v0.2.60 sequence, Android advanced from 2.27 to 2.29 while updates refined limit-state reporting, model selection, and notification deduplication.
```

## Key Capabilities
```text
- Provider adapters: Claude Agent SDK, `codex app-server`, and optional `opencode acp` feed one `TimelineItem` stream.
- State ownership: `server/app.ts` hosts bridge RPC handling, while `server/core/runtime.ts` manages the session timeline and queue.
- Cross-agent review: Claude Code and Codex can delegate to each other or produce read-only findings that land in the composer.
- Git isolation: `/race` uses separate repository copies; optional lanes use worktrees and branches for overlapping chats.
- Inline rendering: `show_widget` runs interactive output in a sandboxed frame without network, Sable, or file access.
- Android control: QR pairing enables remote chat and approvals over local Wi-Fi or through Tailscale for off-LAN access.
```

## Quick Start / Clone
```bash
pnpm install
pnpm dev                  # http://localhost:5173, with the bridge attached
pnpm test                 # vitest
pnpm typecheck            # everything, the tests too
pnpm desktop:dist         # Windows installer in release/
pnpm desktop:dist:mac     # on a Mac: disk image and zip for this Mac's chip
```
