Deprecate Teams feature due to fundamental issues #1221
Merged
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 [email protected]