Your first team
Run a team on a task, then find out where things live.
Run a team
Copy a template, check it and run it with an objective. There are ten to start from; which built-in to pick says when to use each one:
$ shepherd pattern list
NAME KIND SOURCE ...
agentcoder blackboard builtin
blackboard blackboard builtin
hierarchical hierarchical builtin
market market builtin
mutation-testing blackboard builtin
orchestrator-worker orchestrator-worker builtin
planner-workers-reviewer orchestrator-worker builtin
reflection-loop blackboard builtin
self-debug blackboard builtin
tdd blackboard builtin
$ shepherd pattern new webteam --from orchestrator-worker
created pattern 'webteam' at .shepherd/patterns/webteam.yaml
$ shepherd pattern validate webteam
pattern is validOpen .shepherd/patterns/webteam.yaml and set the vendor and model you want for each agent (the templates use each role's default). Then run it:
shepherd pattern run webteam --task "One worker adds GET /version with a test; another adds a logging middleware with a test. Each commits in its own worktree."
shepherd pattern runs # state of the run
shepherd agents # the agents it started
shepherd topic groups orders # how the work is split among workers
shepherd topic tail results # what the workers reportWhen the run reaches done, merge each worker's branch with git. Use shepherd pattern pause <id>, resume <id> or stop <id> --confirm to control a run. The full reference is in Patterns.
Create a task
Tasks hold a title, a specification and acceptance criteria. They live in .shepherd/tasks/ and can be linked to agents and runs.
$ shepherd task new "Add login" --description "A login form" --criteria "tests pass"
created task 1-add-login
$ shepherd task list
ID STATE TITLE ISSUE PR
1 new Add login - -Other task commands: shepherd task edit <id>, task archive <id>, task import <issue-number-or-url> (creates a task from a GitHub issue; needs gh) and task delete <id> --confirm (removes its folder for good; D in the terminal Tasks view).
Start a run for a task from the Tasks view, or begin a pattern objective with Task #1: so the run is linked to it.
To make your own role, skill and team, follow your own role, skill and pattern; the pieces of Shepherd explains what each one is for.
Where things live
| What | Where |
|---|---|
App configuration ([shepherd] section, keys, theme) | ~/.config/shepherd/config.toml, and <repo>/.shepherd/config.toml |
| Roles, vendors, skills, workflow | ~/.config/shepherd/config.yaml, and <repo>/.shepherd/config.yaml |
| Tasks | <repo>/.shepherd/tasks/ |
| Patterns | <repo>/.shepherd/patterns/ (project) or ~/.config/shepherd/patterns/ (user) |
| Project skills | <repo>/.shepherd/skills/<name>/SKILL.md |
| Agent state, event bus, registry | ~/.local/state/shepherd |
| Agent worktrees | ~/.shepherd/worktrees/<repo>/ |
| Snapshots | hidden git refs refs/shepherd/snapshots/... in your repo |
shepherd config path prints the exact locations on your machine. shepherd config validate checks your roles and vendors file.
Next steps
- Agents, roles and skills: tune roles, add skills.
- Patterns: design your own team.
- Topics and events: understand and watch the bus.
- The desktop app: the desktop app.