Desktop app
A native window over the same server: eleven views, no state of its own.
Shepherd also ships a desktop window, built with iced in native/. It is a client of the same server the terminal UI and the CLI use, so it shows the same agents, tasks, runs and patterns. Nothing you do there is stored separately.
The window has two modes, and a switch at the top moves between them:
- Terminal: your workspaces, tabs and panes, rendered with a monospace grid, with the tab bar, status bar and frame of a terminal.
- Shepherd: the orchestration panel with eleven views.
Press Ctrl+Shift+S to switch between the two, or click the Terminal | Shepherd switch in the top bar.
Install and run
Install
The installer puts the app next to the core, as shepherd-native in ~/.local/bin, and adds a launcher with its icon: a menu entry on Linux, Shepherd.app in ~/Applications on macOS:
curl -fsSL https://raw.githubusercontent.com/Rivaldito/shepherd/main/install.sh | shUse SHEPHERD_NO_GUI=1 to skip it (for example on a server without a screen). The app needs a desktop session (Wayland or X11 on Linux) and, on Linux, glibc 2.35 or newer (Ubuntu 22.04, Debian 12, Fedora 36 or later). It uses the GPU when there is one.
There is no desktop app for Windows yet: Windows has the terminal UI and the CLI. To build it from source instead, from its own Cargo workspace:
cd native
cargo build --release -p shepherd-native # the binary is native/target/release/shepherd-nativeAgainst your own server
Run shepherd (or shepherd --gui): it starts the server if it is not running and then opens the app. Without a screen, or without the app installed, shepherd opens the terminal UI instead, and shepherd --gui says why it cannot open and points to shepherd --tui.
shepherd # the app (the terminal UI where the app cannot open)
shepherd --gui # the app, or an error with the way out
shepherd --tui # the terminal UISHEPHERD_NO_GUI=1 shepherd opens the terminal UI even where the app is installed. Saved SSH machines are attached to from the terminal UI, so shepherd opens it as well while you have any.
You can also start the server yourself (shepherd server in the background) and run shepherd-native directly. It finds the running server by itself: it asks shepherd status server (the shepherd binary from SHEPHERD_BIN, or the one on your PATH) and uses the client socket next to the API socket. If you open it before the server is up, it keeps trying every few seconds and connects once the server starts.
To point it somewhere else, set SHEPHERD_CLIENT_SOCKET_PATH (the client socket, shepherd-client.sock) or SHEPHERD_SOCKET_PATH (the API socket). The Sessions row at the top switches between named sessions.
Against a throwaway demo server
native/dev/demo.sh starts a separate server with sample workspaces, a sample task and a sample pattern run, using a stand-in script instead of a real agent. It touches nothing of yours and removes everything when you close the window.
./cargo-fork.sh build # the server binary, once
(cd native && cargo build --release -p shepherd-native)
native/dev/demo.shUseful variables for demo.sh: MODE=shepherd starts on the Shepherd panel, TAB=agents|tasks|monitor picks a view, LAUNCH=1 opens the pattern launcher, and SHOT=/tmp/x.png saves a picture of the window and exits. SERVER and APP point at the two binaries if they are not in the default places.
The window
Top bar and sessions
The top bar holds the Terminal | Shepherd switch. A row of sessions lists the servers known to the shepherd binary. From it you can:
- switch to another session,
- create a new one with
+(it starts a named server), - close one with
×: the first click warns, the second stops it, and on a stopped session it deletes it.
Closing and deleting always take two clicks, because the app has no pop-up dialogs.
Shortcuts
| Keys | Action |
|---|---|
Ctrl+Shift+S | Switch between Terminal and Shepherd |
Ctrl+Shift+P | Open the command palette |
Ctrl+B | Show or hide the sidebar |
Ctrl+1..Ctrl+5 | Workspace views: Overview, Runs, Agents, Tasks, Patterns |
Ctrl+6..Ctrl+9 | Inspect views |
The command palette runs any action by name: type to filter, Up and Down to move, Enter to run, Esc to close.
The eleven views
Workspace
| View | What you can do |
|---|---|
| Overview | See what is running, what is blocked, and a message when nothing needs you |
| Runs | Every pattern run with state, agents and topics. Stop a run, delete one, clean finished runs. Approve or reject a gate (rejecting can carry a reason) and cancel a task's run |
| Agents | Each agent with role, vendor, model and state. Terminal jumps to its pane. + New agent launches one: role, workspace, vendor and model from lists, the skills to install (the role's are ticked; a global skill is always on), task and optional worktree. + New role opens the role editor. Resume idle and Clean finished. The Skills card of an agent turns each skill on or off for that agent and adds one it does not have (Add a skill...) |
| Tasks | Create, edit and delete tasks (title, specification, acceptance criteria), import a GitHub issue, archive finished ones, run a task with an agent or a pattern |
| Patterns | A gallery and a graph editor for the topology: select a node to edit an agent (role, vendor and model come from lists, the persona is a text box), read the validation messages, switch to the read-only YAML view, launch a run. A built-in pattern shows an About this pattern card: what it is, when to use it and an example |
Inspect
| View | What you can do |
|---|---|
| Activity | Live state of the agents with lag bars per consumer group |
| Skills | A text editor with line numbers to create, edit and delete skills; assign skills to roles; make a skill global |
| Git | Branches and worktrees with their agents. + Branch, + Worktree, and remove a worktree. The main checkout, a worktree with uncommitted changes and one an agent works in are refused |
| Events | The event bus as a feed: time, sender, a colour per emitter. + Topic creates a topic (name and partitions) and Send message sends one to the open topic |
| Models | The agents and models installed on this computer, grouped by vendor; pick a vendor and model for each role from lists |
| Snapshots | The saved copies of each agent's worktree: Capture now, see the files each one changed, Compare with the worktree now, Restore worktree, Delete snapshot, Prune older ones |
Roles, skills and patterns in the app
The three things you write yourself can all be made without leaving the window. The pieces of Shepherd says what each one is for; the recipe builds one of each.
- A role: Agents > + New role. The editor takes a name, vendor and model (from lists of what is installed), fallbacks, a vendor it must differ from, skills and a prompt.
- A skill: the Skills view has an editor with line numbers. Make it global to give it to every agent, assign it to roles, or tick it when you launch an agent. On a running agent, Add a skill... in its Skills card; it applies at the next start.
- A pattern: Patterns, pick a built-in one (read its About this pattern card), Duplicate, edit the agents and topics in the graph, Save and look for the valid badge, then Run this pattern. Built-in patterns are read-only; the copy is saved in the project.
Settings of the window (the theme and the two zoom sizes) are kept in native-view.json in the state folder; everything about agents, tasks and runs stays in the server.
The gear menu
The gear at the bottom of the sidebar opens a small menu. Theme picks Dark (the default), Light or Minimal. Light keeps the terminal dark, because agents print colours made for a dark background. Minimal keeps the dark colours but drops the animation: a flat top strip, a still logo and a timer that ticks once a second. Size zooms the interface and the terminal. Server has Restart server and Stop server; both close every terminal and agent of that server, so each takes two clicks.
Things worth knowing
- Per-agent skills apply at the next start. Changing an agent's skills saves the change; the skills installed for a running agent are not touched.
- Restore keeps a copy. Restoring a snapshot first saves what is there as a
pre-restoresnapshot, and files the snapshot does not have are kept. - A reason when rejecting. The gate strip on a run has a text box; a blank one sends no reason.
- Everything goes through the server. What you change here appears in the terminal UI and the CLI at once, and the other way around.
See Practical examples for complete flows and the terminal UI for the same functions on the keyboard.