diff --git a/README.md b/README.md index 2fe46c28..cb6c842c 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,28 @@ # Morph Code -> **Formerly [Claudable](https://github.com/anymorph-ai/morph-code/tree/legacy/v3) — now rewritten from the ground up in SwiftUI + pure Go for v4.** +![Morph Code — Native macOS SwiftUI + Pure Go Coding Agent Studio](assets/hero.png) **Morph Code** is a fast, local-first native macOS coding agent studio powered by a single-binary pure-Go daemon (`morphcode`). -No Electron. No Node.js runtime required. Instant SQLite startup, native SwiftUI rendering, built-in live Web Preview, Git diff & worktree workflows, interactive PTY terminal, and first-class support for **Claude Code**, **OpenAI Codex**, **DeepSeek**, and any **OpenAI / Anthropic-compatible custom provider** (OpenRouter, Ollama, Groq, LM Studio, and more). +No Electron. No Node.js runtime required. Instant SQLite startup, native SwiftUI rendering, built-in Live Web Preview, Git diff & worktree workflows, interactive PTY terminal, and first-class support for **Claude Code**, **OpenAI Codex**, **DeepSeek**, and any **OpenAI / Anthropic-compatible custom provider** (OpenRouter, Ollama, Groq, xAI, LM Studio, and more). --- -## Why v4 (Claudable → Morph Code)? +## Why Morph Code? -Claudable v1–v3 explored AI app building as a Next.js + Electron workspace. As coding agents became our daily driver for real repositories—not just greenfield web apps—Electron's memory footprint and web-wrapper latency got in the way. +Most modern desktop coding-agent clients wrap a web app inside Electron and a Node.js backend. When you run multiple parallel agent threads across large repositories all day, Chromium memory overhead and web-wrapper latency add up fast. -For **v4**, we rebuilt the entire stack natively and renamed the project to **Morph Code**: +Morph Code is built natively from the ground up in **SwiftUI + AppKit** and **pure Go**: -- **Native macOS UI (SwiftUI + AppKit)** with local SQLite + FTS5 caching—instant navigation and smooth token streaming. -- **Single-binary pure-Go daemon (`morphcode`)** with zero CGO (`modernc.org/sqlite`), embedded directly inside `Morph Code.app/Contents/Helpers/morphcode`. -- **Built-in Live Web Preview** inside the workspace inspector (`⌘⇧P`) so web app building and visual iteration stay right next to your agent threads. -- **Looking for Claudable v3 (Next.js / Electron / Windows & Linux)?** The complete v3.2.1 codebase is preserved on the [`legacy/v3`](https://github.com/anymorph-ai/morph-code/tree/legacy/v3) branch and [`v3.2.1`](https://github.com/anymorph-ai/morph-code/releases/tag/v3.2.1) tag. +| Area | **Morph Code** | **Electron Clients (e.g. T3 Code)** | +|---|---|---| +| **UI Stack** | Native macOS SwiftUI + AppKit (120Hz ProMotion) | Electron / Chromium renderer | +| **Backend Daemon** | Single zero-CGO pure-Go binary (`~22 MB` RSS) | Node.js runtime & dependency tree | +| **Live Web Preview** | Built-in native `WKWebView` + viewports + Element Picker + Console/Network | Chromium WebView / external browser | +| **Execution Engine** | Built-in pure-Go **Morph Harness** + official `claude` / `codex` CLIs | External CLI wrapper | +| **Model Providers** | Claude, Codex, DeepSeek, OpenRouter, Ollama, Groq, xAI, any custom endpoint | CLI-bound providers | +| **Local Storage & Search** | Embedded SQLite WAL + FTS5 instant rendering | Web / Node state layer | +| **Parallel Orchestration** | Configurable Orchestrator + per-provider Worker harnesses & worktrees | Thread-level CLI execution | --- @@ -25,18 +30,17 @@ For **v4**, we rebuilt the entire stack natively and renamed the project to **Mo - **Bring Your Own CLI or API Keys** - Works out of the box with your locally installed **`claude`** (Claude Code) and **`codex`** (`codex app-server`) CLIs using your own local authentication. - - Or run directly through Morph Code's built-in pure-Go agent harness (**Morph Harness**) using your own `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `DEEPSEEK_API_KEY`, or custom OpenAI/Anthropic-compatible providers (OpenRouter, Ollama, Groq, etc.). -- **Parallel Multi-Thread Workspace** - - Run independent coding threads across multiple local repositories and Git worktrees in parallel. - - Queue follow-ups, steer active turns mid-run, fork threads, rewind/revert turns via automatic Git checkpoints, and compact long contexts. + - Or run directly through Morph Code's built-in pure-Go agent harness (**Morph Harness**) using `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `DEEPSEEK_API_KEY`, or custom OpenAI/Anthropic-compatible endpoints (OpenRouter, Ollama, Groq, xAI, etc.). +- **Parallel Multi-Thread & Worktree Workspace** + - Run independent coding threads across multiple local repositories and isolated Git worktrees in parallel. + - Queue follow-ups, steer active turns mid-run, fork threads, rewind/revert file changes via automatic per-turn Git checkpoints, and auto-compact long contexts. - **Built-In Developer Inspector** - - **Git Changes (`⌘⇧G`):** file diffs, stage/unstage, hunk discard, commit, branch checkout, worktrees, PR status, and CI logs (`gh`). - - **PTY Terminal (`⌘⇧T`):** full interactive shell inside each project or worktree. - - **Web Preview (`⌘⇧P`):** live local web preview panel alongside your coding agent. -- **Safety & Approval Controls** - - Choose `Default Permissions`, `Plan`, or `Full Access` per thread, with inline tool approval cards and reusable command allowlist rules. -- **Schedules, Local MCP & CLI Session Import** - - Schedule recurring agent runs with RRULE support, attach local MCP servers, and import existing local Claude Code / Codex CLI sessions (`⌘⇧I`). + - **Live Web Preview (`⌘⇧P`):** native `WKWebView` preview right beside your agent with Desktop/Tablet/Mobile viewports, theme toggle, Dev Server launcher, Element Picker, screenshot-to-composer, and Console/Network drawer. + - **Git Changes (`⌘⇧G`):** inline hunk diffs, stage/unstage, hunk discard, commits, branch switching, worktrees, and GitHub PR checks/logs (`gh`). + - **PTY Terminal (`⌘⇧T`):** full interactive shell inside each project or worktree with split panes and agent command history. +- **Safety, Permissions & Extensibility** + - Per-thread `Default Permissions`, `Plan`, or `Full Access` modes, inline tool approval cards, reusable command allowlists, `Allow / Ask / Deny` permission rules, lifecycle hooks (`PreToolUse`, `PostToolUse`, `Notification`, `Stop`), and network sandbox controls. + - Local MCP servers (`stdio` / `http`), global & project `AGENTS.md`, reusable `/skill` prompts, project scripts, RRULE scheduled runs, and local Claude Code / Codex CLI session import (`⌘⇧I`). --- @@ -44,12 +48,14 @@ For **v4**, we rebuilt the entire stack natively and renamed the project to **Mo ```text morph-code/ +├─ assets/ +│ └─ hero.png # README hero banner ├─ apple/ │ ├─ project.yml # XcodeGen specification (MorphCode macOS target) │ ├─ Packages/MorphCore/ # Swift 6 core package (SQLite + FTS5, models, sync, syntax highlighter) │ ├─ Apps/ │ │ ├─ Shared/ # Native SwiftUI workspace, sidebar, inspector, terminal, web preview -│ │ └─ MorphMac/ # macOS app entry point, menu commands, local daemon lifecycle +│ │ └─ MorphMac/ # macOS app entry point, menu bar extra, local daemon lifecycle │ └─ scripts/bundle-morphcode.sh # Builds and embeds pure-Go morphcode inside Morph Code.app └─ morphcode/ ├─ cmd/morphcode/ # CLI & local daemon (`serve`, `bridge`, `start`, `stop`, `status`, `doctor`) @@ -74,7 +80,7 @@ morph-code/ - **macOS 15.0+** and **Xcode 16.4+** - **Go 1.25+** - **XcodeGen** (`brew install xcodegen`) -- Optional: official [`claude`](https://docs.anthropic.com/en/docs/claude-code) and/or [`codex`](https://github.com/openai/codex) CLI installed locally, or API keys configured in **Settings → Providers**. +- Optional: official [`claude`](https://docs.anthropic.com/en/docs/claude-code) and/or [`codex`](https://github.com/openai/codex) CLI installed locally, or API keys configured in **Settings → Providers & Models**. ### 1. Run `morphcode` Daemon Tests & Build @@ -93,7 +99,7 @@ xcodegen generate open MorphCode.xcodeproj ``` -Or build from the command line (this automatically compiles and embeds `morphcode` inside `Morph Code.app/Contents/Helpers/morphcode`): +Or build from the command line (automatically compiles and embeds `morphcode` inside `Morph Code.app/Contents/Helpers/morphcode`): ```bash cd apple @@ -136,6 +142,10 @@ Configuration and state live locally under `~/.morph-code` (override with `MORPH --- +## Legacy v3 + +Looking for the previous Next.js / Electron v3 codebase (formerly Claudable)? It remains preserved on the [`legacy/v3`](https://github.com/anymorph-ai/morph-code/tree/legacy/v3) branch and [`v3.2.1`](https://github.com/anymorph-ai/morph-code/releases/tag/v3.2.1) tag. + ## License MIT — see [LICENSE](LICENSE). diff --git a/assets/hero.png b/assets/hero.png new file mode 100644 index 00000000..e20e5791 Binary files /dev/null and b/assets/hero.png differ