2FastLabs/agent-squad

Flexible and powerful framework for managing multiple AI agents and handling complex conversations

What it solves

Agent Squad provides a lightweight framework for orchestrating multiple specialized AI agents. It solves the problem of routing user queries to the most appropriate agent while maintaining a coherent conversation context across different agents and sessions.

How it works

The framework uses an orchestrator that follows a specific flow: first, a Classifier analyzes the user input and conversation history to select the best agent for the task. Then, the selected Agent processes the request, utilizing tools if necessary. Finally, the Orchestrator saves the exchange and returns the response to the user. This process is supported across three runtimes: Python, TypeScript, and a native Swift runtime for on-device orchestration on Apple platforms.

Who it’s for

Developers building multi-agent AI applications who need a flexible way to manage agent routing, context management, and cross-platform deployment (cloud or on-device).

Highlights

  • Multi-Runtime Support: Available in Python, TypeScript, and Swift (for iOS/macOS).
  • Intelligent Routing: Includes the JevClassifier for fast, typed decision routing using a decision model instead of a full LLM.
  • Anti-Hallucination Pattern: The GroundedAgent uses a gatherer-presenter architecture to ensure responses are strictly based on fetched data.
  • Team Coordination: The SupervisorAgent allows a lead agent to coordinate multiple specialized sub-agents in parallel.
  • On-Device Capabilities: The Swift runtime supports local-first chat storage, realtime voice, and MCP tool integration.

Related

  • Project
  • Project
  • Project
  • Project
  • Project