Before you start
- One or more Claude Code agents (see creating a Claude Code agent).
- A text editor.
- The names of the repos you want agents to start in.
Steps
- Create dock.yaml next to your agent filesPut a file named
dock.yamlin the same folder as the agent files it describes, for example besidecode-reviewer.mdin your team's agents folder. - Declare groupsUnder
groups:, list each group with anameand anicon. Groups decide how the Agents tab clusters your agents. - Describe each agentUnder
agents:, add an entry keyed by the agent's name. Setgroupto one of your groups,repoto where it should start (a repo name found in your code folders, or an absolute path) andicon. - Add commandsUnder the agent's
commands:, give each command alabel(what you click) andtext(what's sent). Put{input}where something you type should go, such as a PR link or a ticket number. - Check the Agents tabSave the file and open Agents. Each agent shows in its group, with its repo and command count. On its page, the commands are under Start; one with
{input}unfolds a field, and Enter starts the chat. - Override it for yourself (optional)If the shared
dock.yamllives in a team repo, put your own at~/.config/pairbar/dock.yaml. The personal one overrides the shared one, so you can change groups or commands without touching the team's file.
A complete example
Two groups, a reviewer that starts in a backend repo, and an investigator for incidents. The repo names and prompts are examples.
groups:
- name: Review
icon: checkmark.seal
- name: Investigate
icon: magnifyingglass
agents:
code-reviewer:
group: Review
repo: my-backend # a repo name found in your code folders, or an absolute path
icon: checkmark.seal
commands:
- label: Review a PR
text: "Review this PR: {input}"
- label: Review my branch
text: "Review the changes on the current branch against main."
incident-investigator:
group: Investigate
repo: /Users/me/code/ops
icon: magnifyingglass
commands:
- label: Investigate an alert
text: "Investigate this alert and find the likely cause: {input}"Where the commands show up
| Place | What you see |
|---|---|
| Agent page → Start | each command; one with {input} unfolds a field, Enter starts the chat. Blank chat starts one with no command |
| Chat menu → Agents | agents that fit the chat's repo first (reviewers first when the chat has a PR), with their commands filled with the chat's PR link, or its branch and folder; Just start runs the agent without a command |
| ⌘K | "Start |
| Composer | The Agent chip starts a new chat with the agent |
Troubleshooting
- An agent's repo isn't used
repomust be a repo name found in your code folders or an absolute path. Try the absolute path.- My changes to the shared dock.yaml don't show
- Check for a personal
~/.config/pairbar/dock.yaml: it overrides the shared one.
Frequently asked questions
- Is dock.yaml required?
- No. Without it, Pairbar still lists every agent with its model, access and tools.
dock.yamlonly adds groups, a start repo, icons and ready-made commands. - What does {input} do in a dock.yaml command?
- It marks where your input goes. The command unfolds a field on the agent's page; from a chat's menu it's filled with the chat's PR link, or its branch and folder.
- Where does a personal dock.yaml go?
- At
~/.config/pairbar/dock.yaml. It overrides the shareddock.yamlthat sits next to the agent files. - Does dock.yaml change how Claude Code runs the agent?
- No. It's read by Pairbar to present and start agents; the agent's own Markdown file is what Claude Code loads.
Related
- DocsAgentsYour Claude Code agents: where they come from, the Agents page, creating and improving them with Claude, `dock.yaml`
- GuideCreate a Claude Code agent (subagent) with Pairbar or by handMake a Claude Code agent with New agent, refine it with Improve and Teach, or write the Markdown file by hand; then export it to Codex.
- Use caseCreate, improve and manage Claude Code agents without editing Markdown by handThe Agents tab lists every Claude Code agent you have; New agent, Improve, Turn chat into agent and Teach start a Claude chat that writes the file.
- GlossaryClaude Code agentA Markdown file with YAML frontmatter that defines a reusable Claude Code specialist, such as a reviewer, Claude can delegate to.
- DocsSearchSearch inside conversations, ⌘K actions, ⌃⌥K quick search from any app
Try Pairbar free for 7 days
One sidebar for the Claude and Codex desktop apps. Everything on for 7 days, no card needed; then $49/year ($39 first year with LAUNCH), $9/month or $129 lifetime (first 200 buyers). macOS 26 or later, Apple silicon.