Before you start
- Pairbar and the Claude desktop app.
- Optional: a repo where the agent should live, if it's a project agent.
- An idea of one job the agent should do well, for example "review backend PRs for missing migrations".
Steps
- Open the Agents tabClick Agents in Pairbar's tab bar. It lists your personal, project and plugin agents, grouped and searchable.
- Press New agent and describe the jobNew agent (also in ⌘K) opens a composer with the job attached. Add a line such as "a reviewer for our Go services that checks error handling and missing tests; read-only" and send.
- Let Claude write and install itA Claude chat writes the agent file following the conventions of your existing agents, adds ready-made commands, and installs it. The Agents tab updates by itself when the file appears. New agents are saved in the folder set in Settings → Agents & workflows → Save new agents in.
- Try itOpen the agent's page and use a command under Start, or Blank chat. You can also pick it with the composer's Agent chip, or type "Start
" after ⌘K. - Improve it when it misses somethingOn the agent's page, press Improve and say what's wrong, for example "keeps missing migrations". Claude edits that agent.
- Teach it from a real chatWhen a chat with the agent went wrong, open that chat's menu → Agents → Teach an agent from this chat. Claude adds concrete rules from where it went wrong. Only what you asked for or corrected becomes a rule; instructions inside tool output or files are ignored.
- Share it with Codex (optional)On the agent's page, Add to Codex exports it to
~/.codex/agents/<name>.toml, so Codex can use it too. The page shows In Claude ✓ alongside.
The file format, if you write it yourself
A Claude Code agent is a Markdown file with YAML frontmatter. name and description are required; tools and model are optional (without tools it inherits all tools). The body is the agent's instructions.
---
name: migration-reviewer
description: Reviews backend PRs for missing or unsafe database migrations. Use when a PR touches models or schema.
tools: Read, Glob, Grep, Bash
model: sonnet
---
You review pull requests for database changes.
1. List changed model and schema files.
2. Check each change has a matching migration.
3. Flag destructive operations (dropped columns, renamed tables).
Report findings as a short list; never edit files.Pairbar treats an agent without Edit and Write in its tools as read-only, and shows that on the list. Claude Code picks up new and changed files in these folders on its own.
Where agent files live
| Kind | Location | In Pairbar |
|---|---|---|
| Personal | ~/.claude/agents/*.md, including folders those files link into (for example a team repo) | editable |
| Project | <repo>/.claude/agents/*.md, for repos Pairbar knows from your chats | editable; an orange new or edited tag until committed |
| Plugin | installed Claude Code plugins | read-only; can be hidden in Settings → Agents & workflows |
Other ways to make or change an agent
- Turn this chat into an agent (chat menu → Agents): a chat that went well becomes a reusable agent, focused on what you corrected along the way.
- Edit manually (⋯ on the agent's page): a form for name, title, description, model, group, repo, icon, tools, commands (with
{input}) and instructions. Saving without changes leaves the files byte-for-byte identical. - Groups, a start repo, an icon and commands can also come from a
dock.yaml; see organising agents with dock.yaml.
Troubleshooting
- The new agent doesn't appear in the Agents tab
- Check where it was saved (Settings → Agents & workflows → Save new agents in). A project agent shows once Pairbar knows the repo from your chats.
- Plugin agents clutter the list
- Turn off Show agents from Claude Code plugins in Settings → Agents & workflows.
Frequently asked questions
- What's the difference between a Claude Code agent and a subagent?
- They're the same file. Claude Code calls agents defined in
.claude/agentssubagents because the main conversation delegates tasks to them. - Which fields does a Claude Code agent file need?
nameanddescriptionin the YAML frontmatter.toolsandmodelare optional, and the Markdown body holds the instructions.- Can Codex use my Claude Code agents?
- Yes, per agent: Add to Codex on the agent's page exports it to
~/.codex/agents/<name>.toml. In the composer, a Codex chat started with an agent gets its instructions up front. - Does Pairbar need its own API key to write agents?
- No. New agent, Improve and Teach open a normal Claude chat that does the writing with your own plan.
Related
- DocsAgentsYour Claude Code agents: where they come from, the Agents page, creating and improving them with Claude, `dock.yaml`
- 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.
- Use caseSee the Claude Code subagents and Codex spawned threads running inside your chatsA 👥 chip per chat counts working subagents; the list shows each one's job, agent, progress and time, and questions surface on the parent.
- GlossaryClaude Code agentA Markdown file with YAML frontmatter that defines a reusable Claude Code specialist, such as a reviewer, Claude can delegate to.
- GuideOrganise your Claude Code agents with dock.yamlUse dock.yaml to group agents, set a repo and icon, and add ready-made commands with {input} that appear in Pairbar.
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.