Separate clide windows are isolated (own process, per-root IPC socket, per-repo deterministic session id), so parallel repos in separate windows were already fine. But switching the workspace in place (Open Project / Open Folder) only emitted ProjectOpened — nothing rebound the Claude session, so the primary pane kept the PREVIOUS repo's conversation. Two compounding causes, fixed in layers: - ClaudeSessionOrchestrator.spawn() was idempotent on the literal key 'primary' without checking cwd, so it handed the old repo's session to the new repo. It now reuses a cached session only when its cwd matches the spec; a mismatch tears the stale one down and spawns fresh. - The primary ClaudePane is built once behind a GlobalKey and spawns once, so it never re-resolved. It now listens for ProjectOpened and rebinds: close its orchestrator entry, drop the cached session id + repo root, and respawn against the now-active repo. Secondaries don't self-rebind. - ClaudeSessionHost drops the old repo's secondary/fork tabs on a switch, so a switched workspace starts like a fresh launch (lone primary). - The extension closes any remaining sessions whose cwd != the new root, catching team/non-pane sessions no pane owns. Tested at the orchestrator: cwd-aware idempotency (reuse on cwd match, teardown + respawn on mismatch). Pane/host widget coverage is intentionally deferred — claude_pane.dart has no widget-test harness yet and pulling it into coverage piecemeal would drop the gate; tracked separately. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
clide
An IDE for Claude Code CLI. Native rendering, terminal-first interaction, pql-powered queries, canvas and graph surfaces. Linux and macOS.
Architecture
Single Flutter package at the repo root. The app hosts everything in-process: IPC server, subsystem handlers (pane, files, editor, git, pql), and the extension framework. tmux owns Claude session persistence (D-41).
lib/— all Dart code. Core subsystems (lib/src/), kernel services (lib/kernel/), UI widgets (lib/widgets/), built-in extensions (lib/builtin/), the extension framework (lib/extension/).- PTY —
lib/src/pty/spawns child processes via Dart FFIposix_openpt()+posix_spawn()directly; no external helper binary. native/— vendored native libraries (libtree-sitter.sowith wasmtime embedded). Linux only today.- pql — external supporter tool. Clide wraps it for every query surface; never re-implements it.
Claude drives the UI through a clide CLI surface (Bash, not MCP). Every CLI subcommand has a UI affordance and every UI action has a CLI equivalent (D-6).
Built-in extensions
canvas, claude, claude_control, decisions, diff, editor, extensions_ui, files, git, graph, grammars_core, ipc_status, keybindings_ui, markdown, pql, problems, settings_ui, terminal, theme_picker, tickets, todos, welcome.
Building
Requires Flutter (stable channel) and pql
on the host. pql is a hard dependency — the pre-push gate runs pql decisions validate and the governance + ticket workflow is built on it (see its repo for
install). One-time setup:
make hooks && flutter pub get
pql init # once, in the repo root — wires up the pql skill + perms
Then:
make run # launch the desktop app
make test # fast suite: analyze + format + unit + widget + golden
make test-core # core subsystem tests (IPC, PTY, git, pane registry)
make test-a11y # accessibility contract tests
make test-integration # real app boot integration tests
make build-linux # flutter build linux
make build-macos # flutter build macos
make push-check # pre-push gate: decisions + core + fast + a11y + coverage + changelog
Status
Pre-v2.0 (2.0.0-dev). Interaction model and panel system landed. The Python Textual v1.2.0 predecessor is archived under legacy/.
Documentation
docs/architecture.md— current architecture (read this first).CONTRIBUTING.md— how to clone, build, test, file tickets, and write D-records.docs/initial-plan.md— historical design doc; preserved as a snapshot of the 2026-04 plan, much of it now superseded.governance/decisions/— confirmed decisions (D-NNN), open questions (Q-NNN), rejected alternatives (R-NNN).CLAUDE.md— Claude-addressed working notes (guardrails, repo layout).
License
MIT. See LICENSE.