claude-code - 💡(How to fix) Fix Agent Teams: adopt existing sessions into a team after the fact [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48105Fetched 2026-04-15 06:33:03
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1

Agent Teams (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1) currently requires teammates to be spawned by the lead from the start. There's no way to pull two (or more) already-running, independent Claude Code sessions into a team after the fact.

Root Cause

Agent Teams (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1) currently requires teammates to be spawned by the lead from the start. There's no way to pull two (or more) already-running, independent Claude Code sessions into a team after the fact.

RAW_BUFFERClick to expand / collapse

Summary

Agent Teams (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1) currently requires teammates to be spawned by the lead from the start. There's no way to pull two (or more) already-running, independent Claude Code sessions into a team after the fact.

Motivation

The need for cross-session collaboration often isn't predictable at session start. A common pattern:

  • Session A has spent an hour accumulating deep context on subsystem X
  • Session B has done the same on subsystem Y
  • Mid-work, it becomes clear they should reconcile a design decision

Today the only options are (a) lossy hand-off via exported briefs, or (b) third-party bridges like PatilShreyas/claude-code-session-bridge (1:1) and yakub268/claude-multi-agent-bridge (N-way HTTP hub). That community demand suggests a real gap.

Request

A way to "join" or "adopt" a running session into a team — e.g., /team join <id> from one side and /team invite <id> from the lead — so each participant keeps its accumulated context window and gains access to the existing mailbox/task-list primitives.

Nice-to-haves

  • N>2 participants
  • Works whether the joiner started as a standalone session or was previously part of another team

extent analysis

TL;DR

Implementing a /team join and /team invite command to allow running sessions to join a team, preserving their accumulated context.

Guidance

  • Investigate the feasibility of introducing a unique session identifier to facilitate joining and inviting sessions to a team.
  • Design a protocol for sessions to communicate with each other, potentially using an existing messaging system or a new API.
  • Consider the implications of handling multiple participants (N>2) and sessions with prior team affiliations.
  • Evaluate the potential for integrating with existing third-party bridges, such as PatilShreyas/claude-code-session-bridge and yakub268/claude-multi-agent-bridge, to leverage their functionality.

Example

No code example is provided due to the lack of specific technical details in the issue.

Notes

The implementation details of the /team join and /team invite commands are not specified, and the existing architecture of the Agent Teams feature is not fully understood. Therefore, the provided guidance is high-level and focused on exploring potential solutions.

Recommendation

Apply a workaround by exploring the use of existing third-party bridges, such as PatilShreyas/claude-code-session-bridge and yakub268/claude-multi-agent-bridge, to enable cross-session collaboration until a native solution is implemented. This approach allows for some level of functionality while the native feature is being developed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Agent Teams: adopt existing sessions into a team after the fact [1 comments, 2 participants]