A Linux and macOS desktop app for running multiple parallel coding-agent sessions, each isolated in its own git worktree. Every session gets its own worktree, branch, and PTY, so several agents can work at once without stepping on each other. Claude Code, OpenCode, and Pi are all supported.
Windows isn't supported yet — the app still assumes a Unix process model (Unix-socket hooks, symlinked
.claudedirs,/proc-based process tracking). Linux and macOS are the supported platforms for now.
GitHub features are optional. The PR tab, CI checks, and merge / mark-ready are driven by the
ghCLI: they needghinstalled and signed in (gh auth login) in a repo with a GitHub remote. corral never stores a GitHub token. Everything else — worktrees, agent sessions, Run/Setup, diffs, files, local merges — works withoutgh; when it's missing or signed out, GitHub surfaces simply stay unavailable rather than blocking the app.
Worktrees live at
<worktrees_root>/<project>/<feature>on branchfeat/<feature>. The root defaults to~/corraland is configurable.
Search with Ctrl+K to jump between worktrees, then click a changed file to
review its diff.
| Review a branch diff | Jump between worktrees |
|---|---|
![]() |
![]() |
Screenshots use a throwaway demo project.
Download the latest .deb, .rpm, or .AppImage (Linux) from the
Releases page.
macOS builds (.dmg, arm64) are attached by hand when there is one — they
aren't produced by the release workflow, because macOS CI runners are the one
standard runner GitHub doesn't make free on a public repo. Those builds are
unsigned unless signed with the relevant secrets, so the first launch may need
right-click → Open to get past Gatekeeper.
Build one yourself from a checkout on a Mac:
pnpm install
just bundle
# target/release/bundle/dmg/*.dmgThe default build is host-arch (arm64 on Apple Silicon), and its dmg lands in
target/release/bundle/dmg/. For an Intel Mac, use just universal — it
produces a fat app and a fat bundled CLI, which is required: a universal app
with an arm64-only CLI still launches under Rosetta and then fails every status
hook with bad CPU type in executable. A universal build uses a different
target directory, so its dmg is at
target/universal-apple-darwin/release/bundle/dmg/ (the recipe prints the
path). just universal also runs lipo -archs over every nested executable so
you can confirm each one is x86_64 arm64.
The .dmg ships the corral CLI inside the app at
Corral.app/Contents/MacOS/corral. Agents launched by corral get it on their
PATH automatically; to use it from your own shell:
sudo mkdir -p /usr/local/bin
sudo ln -sf /Applications/Corral.app/Contents/MacOS/corral /usr/local/bin/corralRe-run the symlink if you move the app.
On macOS, corral reads your login shell's environment once at startup — the
same way Terminal.app does — so Homebrew/nvm/pnpm binaries and anything you
export from .zprofile/.zshrc are available to agent sessions and Run
commands.
corral/
├── Cargo.toml # workspace
├── crates/
│ ├── corral-core/ # shared lib: worktrees, git, merge/PR, agent sessions, settings
│ └── corral-cli/ # the `corral` CLI binary
├── src-tauri/ # Tauri v2 desktop app (uses corral-core)
└── src/ + index.html # React 19 + Zustand + Tailwind v4 frontend (Vite)
Requirements: Rust, Node + pnpm, and — on Linux — the WebKitGTK stack
(webkit2gtk-4.1, libsoup-3.0). macOS needs only Xcode's command-line tools.
git, your agent CLI (claude and/or opencode), and your editor's CLI
(zeditor on Linux, zed on macOS) should be on PATH. gh is optional — it's
only needed for the GitHub features described at the top of this README.
pnpm install # frontend deps + Tauri CLI
just run # build the frontend once, then run the desktop appjust --list shows the full task set (builds, checks, tests, formatting).
Prefer just run over pnpm tauri dev: the dev server leaves the terminal in
the DEC line-drawing charset on exit, so typing afterwards comes out as
gibberish.
cargo run -p corral-cli -- list # or build & use `corral` directly
corral new <project> <feature> # create worktree + launch the agent
corral new <project> <feature> --no-agent # create worktree only
corral list # show all worktrees + git status
corral open <feature> # open the worktree in Zed
corral rename "<title>" # rename the current worktree (slugified from the title)
corral done <feature> # remove worktree + delete branch
corral done <feature> --keep-branch # remove worktree, keep the branch
corral project add <path> # register an existing git repo (or an empty folder)
corral project new <name> --parent <dir> # create + git-init a brand-new project (default parent: ~/source)
corral config get # print the resolved worktrees root
corral config set <path> # override the worktrees root
corral config reset # revert to the default (~/corral)
corral awake -- <command> # run a command under a sleep/idle inhibitor
corral doctor # paste-able machine/state snapshot for bug reportscorral doctor prints a read-only snapshot of the machine as corral sees it:
resolved agent/git/gh executables and versions, desktop + WebKit versions,
config/data health, and a warnings list for anything that looks wrong (the
active harness's binary missing, an unparseable settings.json, no sleep
inhibitor, …). Use --json for machine-readable output or --markdown for a
code block ready to paste into an issue. It never touches the network, never
writes to disk, and reports state as counts with ~-abbreviated paths — no
project names, file contents, or prompts. The GUI's Settings → Copy
diagnostics button produces the same report plus the tail of the app's log
(~/.local/share/corral/logs/).
corral awake is the portable sleep guard agents use for long-running
background work (scans, test suites, dev servers, watchers). It holds
systemd-inhibit on Linux, caffeinate on macOS, or
SetThreadExecutionState on Windows for exactly the wrapped command's
lifetime, so the machine stays awake even if the process outlives the agent
session.
Install the CLI to your PATH:
cargo install --path crates/corral-cliThe .deb and .rpm release bundles also ship it as /usr/bin/corral
(the AppImage contains it at usr/bin/corral, but AppImages don't put
anything on your PATH). The macOS .dmg ships it at
Corral.app/Contents/MacOS/corral — see the Install note above for the
/usr/local/bin symlink.
Implemented:
- 3-pane shell: a left sidebar of projects → worktrees, a center pane with
Agent / Run / Diff / File / PR tabs, and a right Changes pane with
click-to-view diffs against the branch base. Keyboard-driven:
Ctrl+Kopens a command palette,Ctrl+1–9jumps between worktrees, andCtrl+Tabcycles the center-pane tabs. - Worktree management (list / create / rename / remove) across the GUI and CLI, with per-worktree git status (branch, ahead/behind, dirty counts), per-project provisioning rules (files to copy + a one-shot setup command), and a filesystem watcher so changes made outside the GUI show up live. Start a new project from within corral: it creates the folder, initializes it as a git repo with one empty commit, and opens the first worktree for an agent to scaffold in (or register an existing empty folder the same way).
- Agent sessions: run Claude Code, OpenCode, or Pi in a PTY inside a worktree, stream it to an embedded xterm.js terminal (scrollback re-attach, GPU-rendered), type into it, and stop/restart. Claude Code hooks, OpenCode's SSE stream, and Pi's bundled extension report real waiting-vs-working status back to the sidebar, an idle timeout auto-stops long-idle sessions, and a session auto-resumes its last conversation.
- Run panel: a long-lived per-worktree run command (e.g.
pnpm dev) in its own tab, with best-effort auto-detection of the project's dev command. - Git/PR integration: fast-forward merge a worktree's branch into its
base, or push and open/update a GitHub PR via
gh(optional — see the note at the top), with live CI checks in the PR tab. - Linear tickets + attachments: look up a ticket by ID or title (recently updated tickets are listed by default) from the header or the command palette, and attach its body to the running agent. Drop files on the terminal to attach their paths.
- File browsing: a File tab with image, SVG, and Markdown preview.
- Per-project settings, per-worktree free-text notes, and desktop notifications.
See AGENTS.md for architecture details.



