Monorepo
Re-Shell is a single pnpm monorepo (pnpm-workspace.yaml: packages/*, apps/*,
site) built from a small set of layered packages, so the wire shapes crossing every
process boundary are defined once and shared everywhere. Repository:
UmutKorkmaz/re-shell.
The packages
Section titled “The packages”| Package | Source version for this release line | Role |
|---|---|---|
@re-shell/cli (packages/cli) |
0.33.0 |
The CLI you install globally. Bundles the dashboard SPA, the hub server and the template registry. |
@re-shell/contracts (packages/contracts) |
0.3.2 |
The single source of truth: zod schemas and types for every shape that crosses a process boundary: CLI wire payloads and adapters, hub transport, the command allow-list, collaboration, graph, theme and white-label. |
@re-shell/mcp (packages/mcp) |
0.3.1 |
The MCP server for AI agents. |
@re-shell/ui (packages/ui) |
0.7.0 |
The shadcn-based React component system (tokens, primitives, domain components), with Storybook 10.6. |
@re-shell/control-plane (packages/control-plane) |
0.2.0, private |
The hosted control plane with collaboration. Verified in local staging; not publicly hosted. |
@re-shell/dashboard (apps/web) |
0.1.0, private |
The React dashboard (12 screens) that re-shell ui serves, the hub server, and the Tauri desktop app shell. |
re-shell (apps/vscode-extension) |
0.3.0, private |
The VS Code extension, built as a .vsix. |
@re-shell/site (site) |
private | This documentation site (Astro Starlight) and the hosted workspace-v2.json schema. |
The previous release line used CLI 0.32.0, contracts 0.3.1, MCP 0.3.0 and UI 0.6.1. Source versions above do not establish publication. Consult GitHub releases and the npm CLI entry, or see Install.
experimental/ contains only a README: the control plane graduated out of it and
nothing else lives there.
@re-shell/contracts ← schemas + types (zod) ▲ ▲ ▲ ▲ │ │ │ └─ @re-shell/control-plane (HTTP, workers, collaboration) │ │ └────── @re-shell/mcp, VS Code extension │ └─────────── @re-shell/ui ──► dashboard app (apps/web) ──► desktop shell └──────────────── @re-shell/cli ──── re-shell ui (serves the bundled SPA + the hub)One contract, many consumers
Section titled “One contract, many consumers”The CLI emits the typed JSON envelope; the
dashboard, the MCP server and the VS Code extension consume it, and all validate
against the same zod schemas from
@re-shell/contracts. The CLI is
conformance-tested against the wire schemas on every build, and docs/CLI-CONTRACTS.md
is generated from them.
What an install contains
Section titled “What an install contains”npm install -g @re-shell/cli@latestThat one package contains:
- The full CLI (585 command paths in 46 top-level commands at 0.31.0).
- The 204-template backend scaffolding registry (plus frontend and architecture templates).
- The prebuilt dashboard SPA and the static server (
re-shell ui), placed in the tarball by theprepackhook. - The token-authenticated hub server.
The MCP server, VS Code extension, desktop app and control plane are separate and optional. There is no network dependency beyond the registry download; the CLI is offline-first.
How a request flows
Section titled “How a request flows”- You run
re-shell ui. The CLI serves the bundled dashboard on127.0.0.1and starts the hub with a per-launch token. - In the browser, the Command Builder builds an allow-listed command (
commandId+ opaqueparams), never raw argv. - The hub resolves it against the shared registry and spawns the CLI without a shell.
- The CLI emits the JSON envelope; output streams back over SSE/WS, validated against the contract on both ends.
Building from source
Section titled “Building from source”npx pnpm@9.15.9 install --frozen-lockfilenpx pnpm@9.15.9 -r buildnode packages/cli/dist/index.js --helpnpx pnpm@9.15.9 --filter @re-shell/site build # this siteCI (.github/workflows) builds, typechecks and tests every package, enforces size
budgets, checks that docs/CLI-CONTRACTS.md matches the CLI, runs Playwright end-to-end
and axe accessibility audits, runs a Storybook test gate, smoke-tests the packed
tarballs in a clean install, and (separately) builds templates with their own toolchains:
all 204 passed in the historical pull request #395 runs (commit 3a06508).
Those runs do not validate every later source revision. Local verification and gates
are recorded on the Roadmap.
See also
Section titled “See also”- Contracts Package: the shared schemas.
- Secure Hub: the CLI to UI bridge.
- Control Plane
- Dashboard
- Core Concepts