# 2fastlabs/agent-squad

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/2fastlabs-agent-squad).**

7,667 stars · 722 forks · Python · Apache-2.0

## Links

- GitHub: https://github.com/2FastLabs/agent-squad
- Homepage: https://2fastlabs.github.io/agent-squad/
- awesome-repositories: https://awesome-repositories.com/repository/2fastlabs-agent-squad.md

## Description

Agent Squad is an LLM multi-agent orchestration framework designed to coordinate specialized agents to solve complex tasks. It functions as a system for managing agent teams and supervisors, utilizing a supervisor-led orchestration model to decompose large problems into manageable steps.

The framework distinguishes itself through a combination of intent-based query routing and human-in-the-loop automation. It employs a hierarchical routing system to direct requests to the most appropriate agent or model, while integrating asynchronous messaging queues to route complex cases to human operators for manual intervention.

The system covers comprehensive capabilities for conversational state management, including multi-tier memory to maintain coherence across multi-turn dialogues. It also provides a tool integration layer that transforms natural language into structured formats for connecting agents to external APIs, databases, and knowledge bases.

The architecture supports real-time response streaming and hybrid communication modes to handle both instant messaging and asynchronous interactions.

## Tags

### Artificial Intelligence & ML

- [Multi-Agent Orchestrators](https://awesome-repositories.com/f/artificial-intelligence-ml/multi-agent-orchestrators.md) — Coordinates teams of specialized AI agents to solve complex, multi-step tasks through a lead agent. ([source](https://2fastlabs.github.io/agent-squad/agents/built-in/supervisor-agent))
- [Knowledge Base Retrieval](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-rag-development/knowledge-base-retrieval.md) — Links agents to external knowledge bases for accurate product specifications and data lookups. ([source](https://github.com/2fastlabs/agent-squad/tree/main/examples/ecommerce-support-simulator))
- [AI Agent Orchestrators](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/agent-orchestration-multi-agent/coordination-and-routing/ai-agent-orchestrators.md) — Organizes and coordinates groups of specialized agents using structured workflows to complete complex projects.
- [Human-in-the-Loop Oversight](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/agentic-workflows/human-in-the-loop-oversight.md) — Routes complex cases to human operators via asynchronous messaging queues for manual intervention. ([source](https://github.com/2fastlabs/agent-squad/tree/main/examples/ecommerce-support-simulator))
- [Multi-turn Interaction Managers](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/conversational-voice-interaction/conversational-ai-agents/conversational-turn-detection/multi-turn-interaction-managers.md) — Manages stateful multi-turn conversations and memory to ensure coherence when switching between agents.
- [Multi-Agent Orchestration Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/integration-deployment/agent-frameworks/agent-orchestrators/multi-agent-orchestration-frameworks.md) — Provides a framework that coordinates multiple specialized autonomous agents to execute complex collaborative tasks.
- [AI Agent Tool Integrations](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-integrations/ai-agent-tool-integrations.md) — Provides interfaces that connect AI agents to external software, databases, and APIs for functional task execution.
- [External API Tool Exposures](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-integrations/ai-agent-tool-integrations/external-api-tool-exposures.md) — Connects agents to external APIs and databases to perform real-time data retrieval and actions. ([source](https://github.com/2fastlabs/agent-squad/tree/main/examples/ecommerce-support-simulator))
- [Conversation Context Tracking](https://awesome-repositories.com/f/artificial-intelligence-ml/conversation-context-tracking.md) — Tracks and shares interaction history across multiple agents to ensure coherent multi-turn dialogues. ([source](https://2fastlabs.github.io/agent-squad/))
- [Multi-Tier Memory Stores](https://awesome-repositories.com/f/artificial-intelligence-ml/conversation-memory-stores/multi-tier-memory-stores.md) — Implements multi-tier memory stores to preserve context across complex, multi-level agent workflows. ([source](https://2fastlabs.github.io/agent-squad/agents/built-in/supervisor-agent))
- [Conversation State Management](https://awesome-repositories.com/f/artificial-intelligence-ml/conversation-state-management.md) — Tracks context and interaction history across multi-turn dialogues to maintain coherence between AI agents.
- [Human-in-the-Loop Workflows](https://awesome-repositories.com/f/artificial-intelligence-ml/human-in-the-loop-workflows.md) — Integrates manual intervention into automated workflows using asynchronous messaging queues.
- [LLM Integration Layers](https://awesome-repositories.com/f/artificial-intelligence-ml/llm-integration-layers.md) — Implements standardized interfaces that connect generative AI models to external application logic and data sources.
- [Supervisor Agent Configurations](https://awesome-repositories.com/f/artificial-intelligence-ml/supervisor-agent-configurations.md) — Uses a lead agent as a central controller to decompose complex tasks among specialized subordinate agents.
- [Tool Calling Integration Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/tool-calling-integration-frameworks.md) — Transforms natural language into structured JSON to interface with external APIs and databases.
- [Agent Provider Integrations](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-provider-integrations.md) — Connects multiple different model providers and bot services into a single coordinated system. ([source](https://github.com/2fastlabs/agent-squad#readme))
- [Agent Registrations](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-registrations.md) — Provides mechanisms for registering and managing specialized agents within the orchestration framework. ([source](https://2fastlabs.github.io/agent-squad/))
- [Streaming Chat Responses](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-chat-clients/streaming-chat-responses.md) — Sends generated output to users incrementally to reduce perceived latency in chat interfaces. ([source](https://github.com/2fastlabs/agent-squad/tree/main/examples/text-2-structured-output))
- [Human-in-the-Loop Systems](https://awesome-repositories.com/f/artificial-intelligence-ml/human-in-the-loop-systems.md) — Implements a system for integrating human review and conditional escalation into automated AI workflows.
- [Model Routing](https://awesome-repositories.com/f/artificial-intelligence-ml/model-routing.md) — Directs user inputs to the optimal model based on patterns to improve performance and reduce costs. ([source](https://github.com/2fastlabs/agent-squad/tree/main/examples/bedrock-prompt-routing))
- [Natural Language Structuring](https://awesome-repositories.com/f/artificial-intelligence-ml/natural-language-structuring.md) — Transforms natural language queries into structured formats like JSON for API and database requests. ([source](https://github.com/2fastlabs/agent-squad/tree/main/examples/text-2-structured-output))

### Networking & Communication

- [Hierarchical Agent Routing](https://awesome-repositories.com/f/networking-communication/hierarchical-agent-routing.md) — Directs queries through a classifier to appropriate specialized agent teams based on request type. ([source](https://2fastlabs.github.io/agent-squad/agents/built-in/supervisor-agent))
- [AI Response Streams](https://awesome-repositories.com/f/networking-communication/email-reply-generation/streaming-reply-generators/collaborative-ai-output-streams/ai-response-streams.md) — Streams AI-generated text to clients in real time to reduce perceived latency in chat interfaces.

### Software Engineering & Architecture

- [Multi-Agent Workspace Contexts](https://awesome-repositories.com/f/software-engineering-architecture/shared-memory-management/shared-context-segments/multi-agent-workspace-contexts.md) — Synchronizes interaction history and state across multiple agents to maintain coherence.

### Web Development

- [Intent-Based Agent Routings](https://awesome-repositories.com/f/web-development/network-transport-customizers/transport-customizers/request-routing/intent-based-agent-routings.md) — Analyzes natural language intent to route requests to the most appropriate agent or human operator. ([source](https://2fastlabs.github.io/agent-squad/cookbook/examples/ecommerce-support-simulator/))

### Development Tools & Productivity

- [Concurrent Agent Messaging](https://awesome-repositories.com/f/development-tools-productivity/parallel-execution/custom-parallel-task-execution/parallel-task-orchestrators/concurrent-agent-messaging.md) — Dispatches messages to multiple specialized agents simultaneously to increase throughput and combine diverse outputs. ([source](https://2fastlabs.github.io/agent-squad/agents/built-in/supervisor-agent))

### Part of an Awesome List

- [AI Agent Frameworks](https://awesome-repositories.com/f/awesome-lists/ai/ai-agent-frameworks.md) — Framework for managing multiple agents and complex conversations.
