The problem
A Claude Code agent is a Markdown file with a name, a description of when to use it, the tools it may use and its instructions. They're powerful, but they're scattered: some in ~/.claude/agents, some in each repo's .claude/agents, some shipped inside plugins. It's hard to remember which ones exist, which repo they belong to, and whether anyone actually uses them.
Writing a good one is also slow. The best instructions come from real chats where you corrected the agent, and turning those corrections into rules by hand is the step most people skip.
How Pairbar solves it
- Open the Agents tabEach agent shows its repo, whether it's read-only or edits code, its model, how many commands it has, and an orange new or edited tag when its file isn't committed yet.
- Create one with New agentClick New agent and describe it, e.g. "a reviewer that checks database migrations for missing indexes and down steps". A composer opens with the job attached; add a line and send. The Claude chat writes the agent, adds its commands and installs it.
- Fix what it keeps getting wrong with ImproveOn an agent's page, Improve takes a note like "keeps missing migrations" and Claude edits that agent.
- Learn from real chatsFrom a chat's menu, Agents › Turn this chat into an agent makes a reusable agent from a chat that went well, focusing on what you corrected. Teach an agent from this chat adds concrete rules to an existing agent from where it went wrong.
- Use itStart it from its page (Start runs a ready-made command, Blank chat starts empty), from the composer's Agent chip, from a chat's Agents › menu, or with ⌘K → "Start
". - Share it with CodexAdd to Codex exports the agent to
~/.codex/agents/<name>.tomlso Codex can use it too. It's on the agent's page, next to In Claude ✓.
Where agents come from
| Source | Location | Editable in Pairbar |
|---|---|---|
| Personal | ~/.claude/agents/*.md, including folders those files link into (e.g. a team repo) | yes |
| Project | <repo>/.claude/agents/*.md, for repos Pairbar learns about from your chats | yes |
| Plugins | installed Claude Code plugins | no, read-only (can be hidden in Settings → Agents & workflows) |
An agent's page
- A one-line summary with More about it, plus repo, model, access and tools.
- Activity: how often it ran in the last 30 days and the chats it ran in, from Claude's own record of subagent runs.
- Instructions, collapsed by default.
- ⋯ menu: Edit manually, Duplicate, Copy @mention, Open file in…, Reveal in Finder, Move to Trash.
Edit manually is a form for quick tweaks: name, title, description, model, group, repo and icon; tools (without Edit and Write the agent is read-only); commands with {input} placeholders; and the instructions. Saving an agent you haven't changed leaves its files byte-for-byte identical.
To give agents groups, icons, a starting repo and ready-made commands, add an optional dock.yaml next to your agent files. See organise agents with dock.yaml. New agents are saved where your agents already live; change that in Settings → Agents.
Without Pairbar
Claude Code has its own ways to manage agents:
- The
/agentscommand inside Claude Code lists agents and walks you through creating or editing one. - Write the Markdown yourself with YAML frontmatter (
name,description,tools,model) in~/.claude/agents/or.claude/agents/, following Anthropic's documented format. - Commit project agents to the repo so the whole team shares them through git.
Frequently asked questions
- Is a Claude Code agent the same as a subagent?
- Yes. Anthropic's docs call these definitions subagents: Markdown files that Claude Code can hand a job to. Pairbar's Agents tab lists the definitions; the 👥 chip on chats shows them running.
- Does Pairbar write agents without Claude?
- No. New agent, Improve, Turn this chat into an agent and Teach an agent from this chat each open a Claude chat that does the writing. Edit manually is a plain form for small changes.
- Can Codex use my Claude Code agents?
- Add to Codex exports an agent to
~/.codex/agents/<name>.toml. When you start a Codex chat with an agent from the composer, Codex gets the agent's instructions up front. - Can I edit agents that come from plugins?
- No. Plugin agents are read-only in Pairbar, and you can hide them in Settings → Agents & workflows.
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.
- 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.
- 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.
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.