v0.1.0-beta.2Early Alpha

A fast, native home for all your coding agents.

Run Claude Code, Codex, Antigravity, OpenCode, and any local ACP binary side-by-side in isolated Git worktrees — with live diffs, tool approvals, embedded terminals, and native browser previews.

Download for macOSView Source
KingsCode — kingscode / fix/worktree-lock
Real KingsCode desktop app in dark mode showing multi-project sidebar, Claude Opus thread, and expanded Rust diff panel

Multi-project sidebar, live tool timeline, and expanded Rust diff panel.

Real KingsCode desktop capture · Tauri v2

Bring the agents you already pay for

Claude CodeCodexAntigravityOpenCodeAny Local ACPRust 2024Tauri v2SQLiteportable-ptyGitHub CLIAgent Client Protocol
Claude CodeCodexAntigravityOpenCodeAny Local ACPRust 2024Tauri v2SQLiteportable-ptyGitHub CLIAgent Client Protocol
0
Agent runtimes

Claude Code, Codex, Antigravity, OpenCode & any ACP

0
Tokens proxied

Your own CLIs and subscriptions. Zero markup.

0 KiB
PTY scrollback

Per embedded terminal, on OS threads

0%
Local-first

Threads live in SQLite on your machine

Interactive Workflows

Built for parallel agents you can actually trust.

Try the exact workflows KingsCode runs locally — live tool approvals, isolated Git worktrees, owner-only MCP secret cards, and automatic resume after usage limits.

Guardrails & Runtime Modes

Inspect every tool call before it touches your repo.

Set per-thread autonomy between Full access, Auto-accept edits, and Supervised. Approve once, save persistent command-prefix rules, and keep edits inside .git always gated.

Prompts on every edit and command · .git always locked

KEkingscode/Fix worktree lock teardown race
Approval
Run cargo test -p kingscode-git -- worktree_lock
Raw input
{
  "command": "cargo test -p kingscode-git -- worktree_lock"
}
Project rule pattern: execute: cargo test -p kingscode-git -- worktree_lock
(command prefix — allows extra arguments)
Waiting for approval — try clicking an action
Locked Git Worktrees~/.kingscode/worktrees

Every thread gets an isolated worktree and live diff watcher — switch between branches without stashing or colliding.

PR #142 · Idempotent worktree lock teardowngh checks passing
crates/git/src/worktree.rs~/.kingscode/worktrees/kc-84f2
pub fn release_worktree_lock(root: &Path) -> Result<(), GitError> {
- if fs::metadata(&lock_path).is_ok() { fs::remove_file(&lock_path)?; }
+ match fs::remove_file(&lock_path) {
+ Ok(()) => Ok(()),
+ Err(e) if e.kind() == ErrorKind::NotFound => Ok(()),
+ Err(e) => Err(GitError::LockRelease(e)),
+ }

Private MCP Secret Cards

Agents call KingsCode's built-in MCP server to ask for secrets in a private card saved to an owner-only 0600 file — never into chat history.

STRIPE_WEBHOOK_SECRETchmod 0600
whsec_live_9f8a••••••3c1e

Auto-Resume After Limits

Hit a provider usage limit? KingsCode shows the reset time, snoozes the thread, and resumes automatically when the window resets — even across restarts.

feat/auth-refactorLimited · 14:20

Native Previews & PTY Drawer

Auto-discovers local dev servers started by terminals or agents inside isolated Tauri child webviews — complete with DevTools, zoom, and inline screenshots.

http://127.0.0.1:517311ms
512 KiB PTY scrollbackChild Webview
How it works

From prompt to pull request, without the chaos.

KingsCode wraps the agents you already use in the guardrails a real codebase needs: isolation, approvals, review, and a clean path to merge.

  1. 01

    Open a repo, pick an agent

    Claude Code, Codex, Antigravity, OpenCode, or any ACP binary on your PATH. Models, effort tiers, and slash commands are read live from your local CLI.

    new thread · claude-opus-4-6
  2. 02

    Work lands in a locked worktree

    Every thread gets its own isolated Git worktree, so parallel agents never stash over or collide with each other — or with you.

    ~/.kingscode/worktrees/kc-84f2
  3. 03

    Approve what actually matters

    Choose Supervised, Auto-accept edits, or Full access per thread. Save command-prefix rules once and stop re-approving the same test run.

    execute: cargo test -p kingscode-git
  4. 04

    Review diffs and live previews

    Syntax-highlighted diffs stream in from Rust file watchers, and local dev servers open in native child webviews beside the thread.

    http://127.0.0.1:5173
  5. 05

    Ship the pull request

    Commit, push, and open a PR through the GitHub CLI without leaving the thread. Checks stream back in as they finish.

    gh pr create · checks passing
Bring Your Own Agents

Switch agents mid-thread without losing context.

KingsCode proxies zero tokens and adds zero markup. It drives Claude Code natively over stream-json and connects to Codex, Antigravity, OpenCode, or any custom CLI through the Agent Client Protocol.

Click another agent to test handoff
Native stream-jsonagentclientprotocol.com

Claude Code

Runs directly over Claude CLI's stream-json protocol with zero adapter layer, full subagent cards, and native effort controls.

Local CLI on your PATH
$ npm install -g @anthropic-ai/claude-code && claude login
Live model & effort options: claude-opus-4-6 · effort: high
kingscode / fix/worktree-lockSQLite synced
Worktree
Claude Code
claude-opus-4-6 · effort: high

“Audited crates/git/src/worktree.rs, pinned the lock race, and generated a minimal patch with 4 regression tests.”

Ask anything. @ files, $ skills, / commandsHandoff ready
Rust + Tauri v2

Built for native speed. Zero Electron.

KingsCode pairs a hardened multi-crate Rust daemon with a lightweight Tauri v2 shell. Cold starts stay instant, terminals run on OS threads, and protocol types are drift-checked in CI.

Daemon
Rust 2024

Zero unwrap(), expect(), or ? via Clippy

Shell
Tauri v2

Native OS webviews, zero Electron bloat

Storage
Local SQLite

Atomic >64 KiB blob spilling & replay

License
MIT

Open source — inspect, fork, or build locally

Tauri v2 UI
127.0.0.1 Daemon (WS + Binary PTY)
apps/desktop
Crate Inspectorclippy -D warnings
apps/desktop

Tauri v2 Shell

Boots the local Rust daemon with per-session auth tokens, hosts native per-thread browser preview webviews with isolated IPC, and ships compact native installers.

Zero Electron RAMNative child webviewsAuto-update feeds
crates/protocol → packages/protocolts_drift checked

TypeScript wire bindings are exported straight from Rust and verified in CI via pnpm protocol:check.

Download KingsCode

Native builds for macOS, Windows, and Linux.

Grab prebuilt installers with SHA256SUMS.txt from GitHub Releases or build from source. Switch tracks anytime in Settings → Update track.

macOS 13.3+ · M1 / M2 / M3 / M4

macOS (Apple Silicon)

KingsCode-0.1.0-beta.2-macos-arm64.dmg
Unsigned alpha build (Gatekeeper)
$ xattr -dr com.apple.quarantine /Applications/KingsCode.app

Right-click KingsCode.app and choose Open on first launch, or clear the quarantine attribute with the command above.

First 60 Seconds

No account needed. Just your local CLIs.

  1. 1Install at least one agent on your PATH (Claude Code, codex-acp, agy, or opencode).
  2. 2Open any repository from the sidebar and check Settings → Providers to verify or sign in inside the app.
  3. 3Launch parallel worktree threads, inspect diffs and previews, and ship GitHub PRs from one fast native desktop app.
Automatic update checks · switch Beta/Stable anytime