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 agentmods add skills/2fastlabs/agent-squad/typescriptnpx skills add 2FastLabs/agent-squad --skill typescriptgit clone --depth 1 https://github.com/2FastLabs/agent-squadWhat 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 | $0.00087 | $0.04310 |
| Opus 5 | $0.00044 | $0.02155 |
| Sonnet 5 | $0.00017 | $0.00862 |
| Haiku 4.5 | $0.00009 | $0.00431 |
Grade A, and why
agent-squad-typescript 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 2d 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 — 355 lines — stays where its author put it; the contents beside it link to each section on GitHub.
agent-squad TypeScript — assistant guide
Node.js / TypeScript multi-agent orchestration framework (npm package agent-squad). All public
symbols are exported from a single barrel typescript/src/index.ts. This file is guidance and a
map — not an API reference. Read exact signatures from
typescript/src/ and worked recipes from 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 +AgentSquadwith no routing. Or skip the orchestrator entirely and callagent.processRequest(...)directly. - Several specialists → multiple agents registered with
orchestrator.addAgent(agent), a classifier routes each turn. - Answers must not drift from data (prices, balances, live lookups) →
GroundedAgent: a gatherer LLM calls tools, an isolated presenter LLM speaks only from the curated results. - Fixed pipeline →
ChainAgent: each agent's output is the next agent's input. - One lead LLM coordinating a team →
SupervisorAgent: the lead calls sub-agents as tools. - External tools via MCP →
MCPToolProvider(async factory pattern, optional peer dep). - RAG context → attach a
Retrieverto any agent that supportsretriever?in its options.
How to install
npm install agent-squad
Optional peer dependencies — install only what you use:
| Package | Used by |
|---|---|
@aws-sdk/client-bedrock-runtime |
BedrockLLMAgent, BedrockClassifier (already a hard dep in current releases) |
@anthropic-ai/sdk |
AnthropicAgent, AnthropicClassifier (already a hard dep) |
openai |
OpenAIAgent, OpenAIClassifier (already a hard dep) |
@modelcontextprotocol/sdk |
MCPToolProvider — lazy await import() at connect time |
@dakera-ai/dakera |
DakeraRetriever — lazy require() at construction time |
@modelcontextprotocol/sdk and @dakera-ai/dakera are the only two true optional peer deps;
everything else ships as a hard dependency at the moment.
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.
- .npmignore 659 B
- eslint.config.mjs 949 B runs code
- jest.config.js 200 B runs code
- package-lock.json 275 KB
- package.json 2.3 KB
- README.md 9.2 KB
- src/agentOverlapAnalyzer.ts 4.9 KB runs code
- src/agents/agent.ts 9.5 KB runs code
- src/agents/amazonBedrockAgent.ts 5.4 KB runs code
- src/agents/anthropicAgent.ts 17 KB runs code
- src/agents/bedrockFlowsAgent.ts 4.4 KB runs code
- src/agents/bedrockInlineAgent.ts 14 KB runs code
- src/agents/bedrockLLMAgent.ts 18 KB runs code
- src/agents/bedrockTranslatorAgent.ts 5.3 KB runs code
- src/agents/chainAgent.ts 4.0 KB runs code
- src/agents/comprehendFilterAgent.ts 9.6 KB runs code
- src/agents/groundedAgent.ts 12 KB runs code
- src/agents/lambdaAgent.ts 2.7 KB runs code
- src/agents/lexBotAgent.ts 3.4 KB runs code
- src/agents/openAIAgent.ts 7.1 KB runs code
- src/agents/supervisorAgent.ts 11 KB runs code
- src/classifiers/anthropicClassifier.ts 4.4 KB runs code
- src/classifiers/bedrockClassifier.ts 6.6 KB runs code
- src/classifiers/classifier.ts 11 KB runs code
- src/classifiers/openAIClassifier.ts 4.6 KB runs code
- src/common/src/awsSdkUtils.ts 3.7 KB runs code
- src/common/src/types/awsSdk.ts 553 B runs code
- src/common/src/version.ts 84 B runs code
- src/index.ts 3.0 KB runs code
- src/orchestrator.ts 19 KB runs code
- src/retrievers/AmazonKBRetriever.ts 4.9 KB runs code
- src/retrievers/DakeraRetriever.ts 4.5 KB runs code
- src/retrievers/retriever.ts 1.8 KB runs code
- src/storage/chatStorage.ts 1.2 KB runs code
- src/storage/dynamoDbChatStorage.ts 4.9 KB runs code
- src/storage/memoryChatStorage.ts 2.8 KB runs code
- src/storage/sqlChatStorage.ts 6.0 KB runs code
- src/storage/summarizingChatStorage.ts 4.2 KB runs code
- src/tools/mcpToolProvider.ts 19 KB runs code
- src/types/index.ts 1.7 KB runs code
- src/utils/chatUtils.ts 816 B runs code
- src/utils/helpers.ts 2.0 KB runs code
- src/utils/logger.ts 3.4 KB runs code
- src/utils/tool.ts 7.6 KB runs code
- src/utils/ui.ts 1.4 KB runs code
- tests/agents/Agents.test.ts 3.5 KB runs code
- tests/agents/groundedAgent.test.ts 16 KB runs code
- tests/agents/LambdaAgent.test.ts 6.8 KB runs code
- tests/agents/OpenAi.test.ts 4.0 KB runs code
- tests/classifiers/AnthropicClassifier.test.ts 4.7 KB runs code
- tests/classifiers/BedrockClassifier.test.ts 3.9 KB runs code
- tests/classifiers/Classifier.test.ts 7.8 KB runs code
- tests/classifiers/OpenAIClassifier.test.ts 6.3 KB runs code
- tests/mcpToolProvider.test.ts 26 KB runs code
- tests/mcpToolProviderV2.test.ts 6.3 KB runs code
- tests/mcpToolProviderV2Partial.test.ts 1.5 KB runs code
- tests/mock/mockAgent.ts 1.4 KB runs code
- tests/Orchestrator.test.ts 9.2 KB runs code
- tests/retrievers/DakeraRetriever.test.ts 2.7 KB runs code
- tests/retrievers/Retriever.test.ts 3.2 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.
- 2d ago First seen · 355 lines · 87 tokens per session scan A 3e19394a998a
agent-squad-typescript is a skill published in the GitHub repository 2FastLabs/agent-squad (7,752 stars, last pushed 5d ago), licensed Apache-2.0. It adds 87 tokens to every session and 4,310 once invoked, about $0.0004 per session on Opus 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-agentic-ai
AWS Bedrock AgentCore comprehensive expert for deploying and managing AI agents at scale. Use when working with any AgentCore service including Gateway, Runtime, Memory, Identity, Code Interpreter, Browser, Observability, Agent Registry, or Evaluations. Covers agent deployment, MCP tool integration, credential…
aws-sst-development
SST v4 (Ion) expert for managing AWS resources as code with the Pulumi-backed framework. Use when writing or editing sst.config.ts, building infra/ modules (sst.aws.Function/Bucket/Dynamo/Cron/Service/Router, sst.Secret, sst.Linkable, raw aws. Pulumi resources), wiring resource links, scoping IAM, or running sst…
schedule
Create, update, list, or run scheduled cloud agents (routines) that execute on a cron schedule.
crewai-multi-agent
Multi-agent orchestration framework for autonomous AI collaboration. Use when building teams of specialized agents working together on complex tasks, when you need role-based agent collaboration with memory, or for production workflows requiring sequential/hierarchical execution. Built without LangChain dependencies…
crewai
Expert in CrewAI - the leading role-based multi-agent framework used by 60% of Fortune 500 companies. Covers agent design with roles and goals, task definition, crew orchestration, process types (sequential, hierarchical, parallel), memory systems, and flows for complex workflows. Essential for building collaborative…
workflow-authoring
Reference for writing a Workflow tool script (script API and gotchas, resume, quality patterns, worked examples). Load before authoring a script for a workflow the user already opted into; it does not itself authorize running one.