Agent Squad is a framework that routes each user request to an appropriate specialized AI agent while preserving conversation context. It is used to build multi-agent applications in Python, TypeScript, or Swift, with support for custom agents and pre-built integrations.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add 2FastLabs/agent-squad --skill pythongit clone --depth 1 https://github.com/2FastLabs/agent-squadWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/2fastlabs/agent-squad/python)<a href="https://agentmods.dev/skills/2fastlabs/agent-squad/python"><img src="https://agentmods.dev/badge/skills/2fastlabs/agent-squad/python/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/2fastlabs/agent-squad/python"><img src="https://agentmods.dev/badge/skills/2fastlabs/agent-squad/python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00113 | $0.04697 |
| Opus 5.5 | $0.00045 | $0.01879 |
| Sonnet 5.5 | $0.00023 | $0.00939 |
| Haiku 4.5 | $0.00011 | $0.00470 |
Grade A, and why
agent-squad-python scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 410 lines — stays where its author put it; the contents beside it link to each section on GitHub.
agent-squad Python — assistant guide
Async-first, dependency-optional multi-agent orchestration framework (Python 3.11+). This is a
guide and a map — not an API reference. Read exact signatures from the source
(python/src/agent_squad/) and the docs site (docs/src/content/docs/); this file tells you
what to use, when, and what to watch out for.
When to use what
- One assistant — a single
Agentsubclass; no orchestrator needed, callprocess_requestdirectly. - Several specialists — multiple agents + an
AgentSquadorchestrator; the classifier routes each turn to the right agent automatically. - Answers must not drift from data (prices, balances, live stock) —
GroundedAgent: a gatherer LLM calls tools and sees raw results but never speaks to the user; an isolated presenter LLM writes the reply grounded only on curated facts. - Fixed pipeline —
ChainAgent: routes the output of one agent as the input to the next, sequentially. - Team coordination —
SupervisorAgent: a leadBedrockLLMAgentorAnthropicAgentdelegates to a team of sub-agents via an internal tool loop, maintaining shared context. Can itself be registered in anAgentSquad. - External tool servers —
MCPToolProvider(requiresagent-squad[mcp]) connects any number of MCP servers (stdio or SSE) and makes their tools available to any agent.
How to install
All third-party integrations are optional extras — never forced on users who don't need them.
pip install agent-squad # core only (no LLM runtime)
pip install "agent-squad[aws]" # + boto3 — BedrockLLMAgent, BedrockClassifier, DynamoDbChatStorage, etc.
pip install "agent-squad[anthropic]" # + anthropic SDK — AnthropicAgent, AnthropicClassifier
pip install "agent-squad[openai]" # + openai SDK — OpenAIAgent, OpenAIClassifier
pip install "agent-squad[sql]" # + libsql-client — SqlChatStorage (Turso/libSQL)
pip install "agent-squad[strands-agents]"# + strands-agents — StrandsAgent
pip install "agent-squad[dakera]" # + dakera — DakeraRetriever
pip install "agent-squad[mcp]" # + mcp — MCPToolProvider
pip install "agent-squad[all]" # everything except strands-agents
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .gitignore 3.2 KB
- CONTRIBUTING.md 2.3 KB
- Makefile 237 B
- pyproject.toml 92 B
- README.md 12 KB
- ruff.toml 3.3 KB
- setup.cfg 1022 B
- setup.py 37 B runs code
- src/agent_squad/__init__.py 224 B runs code
- src/agent_squad/agent_overlap_analyzer.py 5.6 KB runs code
- src/agent_squad/agents/__init__.py 2.9 KB runs code
- src/agent_squad/agents/agent.py 11 KB runs code
- src/agent_squad/agents/amazon_bedrock_agent.py 7.3 KB runs code
- src/agent_squad/agents/anthropic_agent.py 20 KB runs code
- src/agent_squad/agents/bedrock_flows_agent.py 4.3 KB runs code
- src/agent_squad/agents/bedrock_inline_agent.py 14 KB runs code
- src/agent_squad/agents/bedrock_llm_agent.py 24 KB runs code
- src/agent_squad/agents/bedrock_translator_agent.py 5.6 KB runs code
- src/agent_squad/agents/chain_agent.py 3.7 KB runs code
- src/agent_squad/agents/comprehend_filter_agent.py 6.5 KB runs code
- src/agent_squad/agents/grounded_agent.py 14 KB runs code
- src/agent_squad/agents/lambda_agent.py 3.6 KB runs code
- src/agent_squad/agents/lex_bot_agent.py 2.5 KB runs code
- src/agent_squad/agents/openai_agent.py 8.2 KB runs code
- src/agent_squad/agents/strands_agent.py 17 KB runs code
- src/agent_squad/agents/supervisor_agent.py 14 KB runs code
- src/agent_squad/classifier_test_tool.py 10 KB runs code
- src/agent_squad/classifiers/__init__.py 1.2 KB runs code
- src/agent_squad/classifiers/anthropic_classifier.py 5.0 KB runs code
- src/agent_squad/classifiers/bedrock_classifier.py 6.4 KB runs code
- src/agent_squad/classifiers/classifier.py 8.2 KB runs code
- src/agent_squad/classifiers/jev_classifier.py 12 KB runs code
- src/agent_squad/classifiers/openai_classifier.py 4.1 KB runs code
- src/agent_squad/orchestrator.py 16 KB runs code
- src/agent_squad/retrievers/__init__.py 369 B runs code
- src/agent_squad/retrievers/amazon_kb_retriever.py 2.1 KB runs code
- src/agent_squad/retrievers/dakera_retriever.py 3.7 KB runs code
- src/agent_squad/retrievers/retriever.py 1.9 KB runs code
- src/agent_squad/shared/__init__.py 0 B runs code
- src/agent_squad/shared/user_agent.py 6.8 KB runs code
- src/agent_squad/shared/version.py 50 B runs code
- src/agent_squad/storage/__init__.py 759 B runs code
- src/agent_squad/storage/chat_storage.py 4.5 KB runs code
- src/agent_squad/storage/dynamodb_chat_storage.py 8.1 KB runs code
- src/agent_squad/storage/in_memory_chat_storage.py 4.5 KB runs code
- src/agent_squad/storage/sql_chat_storage.py 11 KB runs code
- src/agent_squad/storage/summarizing_chat_storage.py 6.6 KB runs code
- src/agent_squad/tools/__init__.py 211 B runs code
- src/agent_squad/tools/mcp_tool_provider.py 24 KB runs code
- src/agent_squad/types/__init__.py 928 B runs code
- src/agent_squad/types/types.py 2.7 KB runs code
- src/agent_squad/utils/__init__.py 468 B runs code
- src/agent_squad/utils/helpers.py 1.1 KB runs code
- src/agent_squad/utils/logger.py 3.9 KB runs code
- src/agent_squad/utils/tool.py 11 KB runs code
- src/agent_squad/utils/ui.py 1.9 KB runs code
- src/tests/__init__.py 0 B runs code
- src/tests/agents/__init__.py 0 B runs code
- src/tests/agents/test_agent.py 7.3 KB runs code
- src/tests/agents/test_amazon_bedrock_agent.py 6.6 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 410 lines · 113 tokens per session scan A c16cc751be30
agent-squad-python is a skill published in the GitHub repository 2FastLabs/agent-squad (7,789 stars, last pushed 8d ago), licensed Apache-2.0. It adds 113 tokens to every session and 4,697 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
aws-integration-testing
Generate comprehensive integration tests for AWS Python Lambda functions, Batch jobs, and services that interact with S3, DynamoDB, RDS/PostgreSQL, SQS, SNS, EventBridge, Kinesis, and other AWS services. Uses moto for in-process AWS mocking and testcontainers for real database testing. Reads the handler source code to…
python-env
Setting up or installing into a Python environment. One rule applies whether or not you read the body - the environment belongs with the project, so create it inside the project directory (.venv) or let uv manage it, and never in a scratch directory like /tmp and never by forcing an install into the system…
python-repl
Interactive Python REPL automation with common helpers and best practices.
nx-plugin-for-aws
Scaffold and build cloud-native applications on AWS using @aws/nx-plugin generators. Use when the user wants to create workspaces, generate projects, or scaffold infrastructure with the Nx Plugin for AWS.
code_runner
Execute Python code snippets safely in an isolated subprocess with timeout protection. Use when: the user asks to run, test, or evaluate Python code, calculate expressions, or prototype logic. NOT for: running shell commands, executing other languages, or code that needs filesystem/network access.
python-project-setup
Sets up Python projects with modern tooling including pyproject.toml, linting with ruff, formatting, type checking with mypy or pyright, testing with pytest, and pre-commit hooks. Triggers on: "setup Python project", "create Python package", "python project structure", "pyproject.toml".