Skip to content
robertjndwPublic

About

MacOS-native Agent Orchestrator with Arc style sidebar

Resources

Contributing

Security policy

Stars

5 stars

Watchers

1 watching

Forks

Repository files navigation

Archipel app icon

Archipel

A macOS app for running coding agents. Claude Code, Codex, OpenCode and plain shells run in embedded Ghostty terminals, each in its own git worktree, with an Arc style sidebar that shows what every agent is doing.

macOS 27 Swift Terminal License: MIT

Archipel with a Claude Code session next to a side-by-side diff, while the sidebar shows one agent working and one waiting for permission

Running three or four agents at once usually means a pile of terminal tabs, branches that get in each other's way and a lot of checking whether something is done yet. In Archipel every task gets its own worktree with its own sessions, and the sidebar shows which agents are working, waiting for you or done.

Features

Islands, projects and worktrees

  • Work is grouped as islands > projects > worktrees. Switch islands with Ctrl+1 to 9 or a two-finger swipe over the sidebar. Agents in other islands keep running, and the island gets a badge when one needs you. If "Switch to Desktop N" is turned on in the macOS keyboard settings, it takes those keys first; Ctrl⌘] and [ still work.
  • Add a worktree from one search field: pick an existing local or remote branch, or type a name to create a new one. Worktrees you made with git worktree yourself are picked up too. To start before you know what to call the branch, press Return on the empty field or use New Worktree (⌥⌘N). The branch gets a generated two-word name like quiet-harbor, publishing asks for the real name first, and Rename Branch works until the branch is published.
  • Switch the branch a worktree has checked out with ⇧⌘B, from its context menu or by clicking the branch name in the Changes panel. Pick a local or remote branch, or type a name to create one. Uncommitted changes come along, and you get a warning when an agent is still working in that worktree.
  • Islands and projects get an SF Symbol and a color. A project can also use an icon found in its repository (app icon, favicon or logo) or its owner's GitHub avatar.
  • Each project can have a setup script that runs in new worktrees (installing dependencies, copying .env) and a run script for ⌘R.

Sessions

  • Agents run in Ghostty terminals that use your Ghostty config and your login shell environment.
  • After a relaunch, agents resume the conversation they were in.
  • Press Space in the sidebar to peek at the session under the pointer without switching to it.
  • Drop files onto a session to paste their paths.
  • When an agent starts a dev server, its URL shows up as a link on the tab.

Notifications

  • A worktree row lights up when its agent finishes or asks for input.
  • Notifications have Allow, Deny and Reply buttons, so you can answer an agent without switching to Archipel. They are held back while you share your screen.
  • The Dock icon gets a badge, and the menu bar icon lists every session, the ones waiting for you first. ⇧⌘U jumps to the next one.
  • The bell in the sidebar header (⌥⌘U) narrows the sidebar to the worktrees that need you, from every island, and jumps to the next one. It gets a dot when something is waiting.
  • Claude sessions show how many subagents they are running.

Reviewing and committing

Light mode with an agent session, the file editor and the Files inspector

  • Split the window into panes, each with tabs for sessions, files and diffs.
  • Side-by-side diffs and an editor with syntax highlighting.
  • Leave comments on diff lines and send them to an agent in one go.
  • Stage, discard, commit, push and pull from the Changes panel. Pull only fast-forwards. With gh installed, the branch's pull request shows up there and in the sidebar.
  • Open a worktree or file in VS Code, Cursor, Zed, Xcode or another editor.

Status bar

  • Your Claude and Codex usage limits.
  • Stay Awake, which keeps the Mac (and optionally the display) from sleeping while agents work.
  • CPU and memory per terminal, including processes that kept running after their tab was closed.

Keyboard shortcuts

Action Shortcut
Go to island, worktree, session or command ⌘K
Open file quickly ⌘P
New worktree without choosing a branch ⌥⌘N
New session with your default agent ⌘T
New session with the other agents ⌥⌘T, ⇧⌘T
Switch to recent tab CtrlTab
Next / previous tab ⇧⌘] / ⇧⌘[
Split right ⌘\
Focus next / previous pane ⌘] / ⌘[
Switch island Ctrl1...9
Next / previous island Ctrl⌘] / Ctrl⌘[
Next session needing attention ⇧⌘U
Show only what needs me in the sidebar ⌥⌘U
Add worktree ⇧⌘N
Switch branch ⇧⌘B
Add project ⇧⌘O
Run project ⌘R
Commit ⌥⌘C
Save all files ⌥⌘S
Show Files / Changes / toggle inspector ⌥⌘1 / 2 / 0
Open in external editor ⇧⌘E

⌘K belongs to the palette everywhere, so it does not clear the terminal the way it does in other terminal apps. Use CtrlL for that.

Installation

Download Archipel-<version>.dmg from the releases and drag Archipel into Applications.

Or install it with Homebrew:

brew install --cask robertjndw/tap/archipel

Archipel updates itself, so brew upgrade leaves it alone unless you pass --greedy.

From source

Requirements: macOS 27, Xcode 27 and Zig 0.17 (brew install zig). You only need the agents you want to use: Claude Code and/or Codex and/or OpenCode, plus the GitHub CLI to see pull requests.

git clone https://github.com/robertjndw/archipel.git
cd archipel
./scripts/build-ghostty.sh   # once (delete Vendor/ghostty first after a tag bump)
./scripts/install.sh         # builds a Release copy into /Applications

Run ./scripts/install.sh again to update. It quits and relaunches an installed copy that is running, and leaves it untouched if the build fails. It replaces a copy installed from a DMG too. Copies built from source do not update themselves.

Copies installed from a DMG update themselves. Beta versions can be turned on under Settings > About.

How agent status works

Archipel starts each agent itself and injects what it needs per launch, so your own agent configuration is left alone. The one exception is opt-in: with "Full status in shell tabs" turned on in Settings > Agents > Claude Code, Archipel adds its hook entries to your Claude settings.json, so a Claude you start by hand in a shell tab reports its status too, and takes them out again when you turn it off. Claude Code gets hooks through --settings. Codex gets hooks through -c hooks.<Event> overrides, plus notify and approval notifications as a fallback. Hooks call archipel-hook, which forwards the event to the app over a Unix socket in ~/Library/Application Support/Archipel.

Codex only runs hooks you have trusted. The first time it starts with Archipel's hooks it shows a "Hooks need review" prompt: choose "Trust all and continue" (or trust them in /hooks). Codex remembers that in its own config.toml, keyed by the hook's command line, so Archipel points the hooks at a stable link in its support directory and asks again only if that path changes. Until the hooks are trusted, status comes from notify and Codex's approval notifications: finished turns and approvals work, but start of a turn and subagents are not reported. Once hooks report a session, notify is ignored for it so a turn is not finished twice. Settings > Agents > Codex shows whether the hooks are active.

OpenCode reports through a small plugin that Archipel adds to each OpenCode it starts, using OPENCODE_CLI_CONFIG_CONTENT. OpenCode replaces its plugin list with that value, so Archipel passes the plugins from your own cli.json along with its own; if that file cannot be read, the plugin is left out and the session is followed through its terminal title only. OpenCode keeps using your background service and providers. The plugin reports the conversation shown in its own tab (turns, permission requests, questions and errors) and ignores the other sessions the shared service knows about. Permission requests in OpenCode are answered in the terminal, so their notifications only bring the session forward. Sessions start with opencode --session=<id>, which makes resuming work after a relaunch.

Development

./scripts/build-ghostty.sh   # clones Ghostty at a pinned tag and builds GhosttyKit
open Archipel.xcodeproj      # then build and run the Archipel scheme

The script clones Ghostty into Vendor/ghostty and builds GhosttyKit.xcframework plus Ghostty's runtime resources. Both are ignored by git.

Signing

The project builds without an Apple Developer account: by default everything is signed ad-hoc ("Sign to Run Locally"). macOS then treats each rebuild as a new app and asks again for privacy permissions such as access to ~/Documents. To sign with your own team, copy Configs/Local.xcconfig.example to Configs/Local.xcconfig (ignored by git) and fill in your team ID and a bundle id prefix of your own.

Debug builds next to an installed copy

Debug builds are a separate app, "Archipel Dev" with the bundle id <bundle id>.debug. They keep their own settings and their own workspace and hook socket in ~/Library/Application Support/Archipel Dev, so they can run next to an installed release without touching its data.

Set ARCHIPEL_SUPPORT_DIR to run a build against a throwaway workspace file and hook socket instead. Keep the path short, because Unix socket paths are limited to about 100 bytes and agent status stops working beyond that.

open -n --env ARCHIPEL_SUPPORT_DIR=/tmp/archipel-dev path/to/Archipel.app

Project layout

  • Archipel/ - the SwiftUI app. Model/ is AppModel and AppSettings, Services/ wraps system APIs (notifications, sleep, process stats), and Views/ has a folder per feature. The Xcode groups follow the folders on disk, so new files are picked up without touching the project.
  • Packages/ArchipelKit - ArchipelCore (model, status logic, persistence), AgentKit (agent launch commands, hook decoding, hook socket server), GitKit (async wrapper over git: status, staging, diffs, branches, worktrees), InspectorUI (the Files and Changes sidebar), EditorUI (the file editor and the side-by-side diff view; syntax highlighting comes from highlight.js through the HighlighterSwift package), UISupport (view helpers those two share) and the archipel-hook helper that agents call. Run swift test here. editor-demo opens an editor or diff in a window of its own.
  • ArchipelUITests/ - end-to-end tests that drive the real app against a throwaway workspace and fixture git repositories. Run them with ./scripts/ui-tests.sh; see CONTRIBUTING.md.
  • Packages/TerminalKit - the only code that talks to Ghostty. Includes terminal-demo, a one-window harness for testing a surface in isolation.
  • scripts/ - build-ghostty.sh, install.sh, ui-tests.sh, and build-dmg.sh, notarize.sh and build-appcast.py, which the release workflows use. Releases and in-app updates (beta and stable channels) are described in docs/releasing.md.
  • Configs/ - shared build settings and the optional Local.xcconfig.

Contributing

Issues and pull requests are welcome, see CONTRIBUTING.md. Please report security issues privately, see SECURITY.md.

Acknowledgements

The terminals are Ghostty, updates come from Sparkle and syntax highlighting from highlight.js through HighlighterSwift. Their licenses are in THIRD_PARTY_NOTICES.md, Packages/TerminalKit/THIRD_PARTY_NOTICES.md and Packages/ArchipelKit/THIRD_PARTY_NOTICES.md.

License

Archipel is available under the MIT License.

About

MacOS-native Agent Orchestrator with Arc style sidebar

Resources

Contributing

Security policy

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages