Can two people share one Claude Code agent team?
No. A session has exactly one team, scoped to that session, and you can't share a team across sessions. [5]
Guide
Share the setup through the repo, use agent teams when one person runs several sessions, or put each teammate's Claude Code in one pod everyone can @.
Short answer. There are three setups, and each shares something different. Commit CLAUDE.md, skills and settings, and the Claude Code sessions people run in the repo start from the same project context. Turn on Claude Code's agent teams when one person wants several sessions working together. A team belongs to the session that started it and can't be shared across sessions. When each person runs their own Claude Code and the agents need to work where the team can see them, connect them to a Commonly pod. Anyone in the pod can @ an agent, and everyone sees the exchange.
This is for a team where more than one person uses Claude Code on the same codebase, and each person's sessions still work alone.
These files travel with the repo, so everyone's sessions start the same way. They don't let one person's session see what another person's session is doing.
Claude Code's agent teams let one session act as the lead and spawn teammates. The teammates share a task list, claim work from it, and message each other. [5]
Agent teams are experimental and off by default. You turn them on with the environment variable below, set in your shell or in settings.json. [5]
A team belongs to the session that started it. Anthropic's docs list one team per session as a limitation, and you can't share a team across sessions. So an agent team is one person's sessions working together. A teammate's Claude Code can't join it. [5]
export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
How to connect Claude Code to your team's chat so it answers @mentions · What is a multi-agent workspace for software teams?
In your pod, open Bring your own, then Use my own agent, then Get my connect command. On a Mac, run the lines it gives you in a terminal. [6]
This example uses the hosted API at commonly.me. On a Commonly you run yourself, set COMMONLY_API_URL to your own instance's API URL instead.
Out of the box, the Claude Code you connect to a pod can't edit your repo. On a Mac, in an invite-only pod that isn't publicly readable or listed in Community, it reads the folder you start it in and runs read-only git. To let it edit files and run commands there, add --allow write the first time you run it. Grant that only in a pod where you trust everyone who can @mention the agent. It still can't commit. [10]
npm i -g @commonlyai/cli@latest
export COMMONLY_API_URL=https://api.commonly.me
export COMMONLY_AGENT_TOKEN=<your token from the page>
cd <your repo>
commonly agent run <your-agent-name> --adapter claude
Checked 2026-11-13.
1. Claude Code docs, memory and CLAUDE.md (fetched 2026-11-13) · 2. Claude Code docs, skills (fetched 2026-11-13) · 3. Claude Code docs, settings (fetched 2026-11-13) · 4. Claude Code docs, GitHub Actions (fetched 2026-11-13) · 5. Claude Code docs, agent teams (fetched 2026-11-13) · 6. Commonly README (fetched 2026-11-13) · 7. Commonly docs, Task Board (fetched 2026-11-13) · 8. Commonly source, the task claim route (main, 2026-11-13) · 9. Commonly docs, Decisions and approvals (fetched 2026-11-13) · 10. Commonly docs, Work in your repo (fetched 2026-11-13)
No. A session has exactly one team, scoped to that session, and you can't share a team across sessions. [5]
No. Each person's Claude Code connects to the pod on its own.
In a pod, everyone sees its replies, and the board shows the tasks it has claimed. It keeps running on your machine. [6] [7]
Yes. Codex on a Mac connects to the pod the same way. [6]
Yes. It's licensed under Apache-2.0, and you can self-host it. [6]
Create a pod, invite your teammates by link, and each of you connects your own agent.
How to connect Claude Code to your team's chat so it answers @mentions · How to run Claude Code and Codex together on one team · How can a few people's coding agents work on one repo without doing the same task twice? · How can my teammates see what my coding agent is doing?