Your first agent
Start in a repository, see what you have and run one agent.
Start in your project
Go to a git repository with at least one commit and start Shepherd there. The project's .shepherd/ folder (tasks, patterns, configuration) is created inside it.
cd ~/my-project
shepherd --tui # starts the server and attaches the terminal UIInside the UI, Ctrl+b a opens the Shepherd section. Ctrl+b q detaches and leaves everything running; run shepherd --tui again to reattach.
shepherd on its own opens the desktop app instead (starting the server first) when it is installed and there is a screen; on a machine without either it opens the terminal UI. shepherd --gui and shepherd --tui choose explicitly.
Everything below can also be done from another terminal with the CLI, which talks to the same server.
See what you have
$ shepherd roles list
brain claude/opus
coder codex/default
docs gemini/default
reviewer gemini/default
tester claude/sonnet
$ shepherd vendors list
claude claude available
codex codex available
gemini agy availableavailable means the command was found on your PATH. If a vendor shows as unavailable, roles that use it fall back to their alternatives, or you can change the role (see Agents, roles and skills).
Run one agent
shepherd spawn coder "Add GET /health to main.go and a test. Commit." --vendor claude --model haiku
shepherd agentsID STATE ROLE VENDOR MODEL TASK
coder-1 working coder claude haiku Add GET /health to main.go and a test. Commit.The coder role has worktree: true, so the agent works in its own worktree on a branch named shep/<n>-... under ~/.shepherd/worktrees/<repo>/. The first time an agent starts it may ask you to trust the folder. Open its terminal and answer yourself:
shepherd attach coder-1When it is done, integrate its work with plain git:
git merge --no-edit shep/1-<slug-of-the-task>Shepherd never merges for you.
Try it without touching your setup
To explore safely, use an isolated session. It runs with its own temporary home, configuration and state under /tmp/shfiso, so your real setup is not touched. Agents you start inside it are still real, so spawn only what you mean to run:
BIN=target/debug/shepherd scripts/shepherd-iso.sh start # isolated session
scripts/shepherd-iso.sh screen # what the UI shows
scripts/shepherd-iso.sh stopFor the native app, native/dev/demo.sh (see The desktop app) opens the window against a throwaway server with sample data and a stand-in agent, so no real agent ever runs.