Deprecate Teams feature due to fundamental issues#1221
Merged
Conversation
The Teams feature (including Team, Swarm, RoundRobinTeam, and RandomTeam) has critical issues: 1. **Infinite delegation loops**: Swarm and other delegation-based teams get stuck in endless loops, generating hundreds of "Multiple EndTurn tools detected" warnings. 2. **No actual collaboration**: Basic Team doesn't enable agents to work together - only the first agent does any work. 3. **Broken documentation**: The HierarchicalTeam example in docs doesn't even work due to incorrect handling of the required `members` field. 4. **Incomplete implementation**: The feature appears to have been rushed for release without proper testing or validation. This commit: - Adds deprecation warnings to all Team classes (removal targeted for Feb 2026) - Fixes the broken documentation example - Adds clear warnings in docs about the deprecated status - Creates a deprecation utility module based on Prefect's patterns Users are advised to use individual Agents with explicit coordination instead of Teams. Fixes issues reported by community members struggling with non-functional examples. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Set removal date to Sep 2025 (1 month from now, not 6) - Remove meaningless Sphinx directive from docstring - Fix documentation to show correct timeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR deprecates the entire Teams feature (Team, Swarm, RoundRobinTeam, RandomTeam) due to critical, unfixable issues that make it unsuitable for production use.
The Problems
1. Infinite Delegation Loops 🔄
Evidence:
2. No Actual Collaboration 🚫
3. Broken Documentation 📚
HierarchicalTeamexample in docs doesn't even work4. Half-Baked Implementation 🍞
What This PR Does
✅ Adds deprecation warnings to all Team-related classes
✅ Fixes documentation
HierarchicalTeamexample✅ Creates deprecation utilities
marvin._internal.deprecationmoduleUser Impact
Users like Watts in our community have been struggling with these broken features. This deprecation:
Recommendation
Use individual Agents with explicit coordination instead of Teams.
The Agent class works well on its own. For multi-agent scenarios, users should orchestrate Agents explicitly in their application logic rather than relying on the broken Teams abstraction.
Testing
Related Issues
Addresses concerns raised by community members trying to use the teams feature as documented.
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com