agent-squad-typescript

agent-squad-typescript is a skill for Claude Code, Codex from 2FastLabs/agent-squad. It costs 87 tokens per session (4,310 once invoked), scanned A, original, Apache-2.0.

A guide for using the `agent-squad` package in Node.js and TypeScript applications. The package coordinates multiple AI agents, including specialists, routed agents, chained workflows, and supervising agents.

In plain words
What is it for?
Use it to build single- or multi-agent applications, route requests, connect storage and retrieval systems, use MCP tools, and keep answers tied to collected data.
Why use it?
It helps you choose an arrangement that fits the job, such as one assistant, several specialists, a fixed sequence, or answers grounded in tool results.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to build single- or multi-agent applications, route requests, connect storage and retrieval systems, use MCP tools, and keep answers tied to collected data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/2fastlabs/agent-squad/typescript
About the project

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.

2FastLabs/agent-squad · 7,789 stars · on GitHub · 2fastlabs.github.io

Install

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.

Any agent
npx skills add 2FastLabs/agent-squad --skill typescript
Clone the repo
git clone --depth 1 https://github.com/2FastLabs/agent-squad

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for agent-squad-typescript

README.md
[![agentmods](https://agentmods.dev/badge/skills/2fastlabs/agent-squad/typescript/github.svg)](https://agentmods.dev/skills/2fastlabs/agent-squad/typescript)
Your own site
<a href="https://agentmods.dev/skills/2fastlabs/agent-squad/typescript"><img src="https://agentmods.dev/badge/skills/2fastlabs/agent-squad/typescript/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.

agentmods 80×15 button for agent-squad-typescript

Your own site · 80×15
<a href="https://agentmods.dev/skills/2fastlabs/agent-squad/typescript"><img src="https://agentmods.dev/badge/skills/2fastlabs/agent-squad/typescript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,310 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.04310
Opus 5.5 $0.00035 $0.01724
Sonnet 5.5 $0.00017 $0.00862
Haiku 4.5 $0.00009 $0.00431

Measured 1mo ago against content hash 3e19394a998a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 1mo ago.

The scan reads SKILL.md. This mod also ships 56 executable files (eslint.config.mjs, jest.config.js, src/agentOverlapAnalyzer.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

typescript/SKILL.md · 355 lines

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 Agent subclass + AgentSquad with no routing. Or skip the orchestrator entirely and call agent.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 Retriever to any agent that supports retriever? 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.

Read the full file on GitHub · 355 lines

Files

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.

Changes

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.

  1. 1mo ago First seen · 355 lines · 87 tokens per session scan A 3e19394a998a

Subscribe to this mod's changes

agent-squad-typescript is a skill published in the GitHub repository 2FastLabs/agent-squad (7,789 stars, last pushed 9d ago), licensed Apache-2.0. It adds 87 tokens to every session and 4,310 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

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.

awslabs/nx-plugin-for-aws · 46 tokens

sandy

Run TypeScript scripts in sandboxed microVMs or Docker containers with AWS SDK access via IMDS. Use when investigating AWS resources, running read-only queries, or executing TypeScript automation that needs AWS credentials.

jamestelfer/sandy · 45 tokens

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…

whitewhiteqq/aws-test-plugin · 147 tokens

wraps-workflows

Build email and SMS automation workflows using the @wraps.dev/client TypeScript DSL. Covers triggers, steps, branching, cascades, and the full defineWorkflow API.

wraps-team/wraps · 39 tokens

typescript-patterns

TypeScript patterns and conventions for safer, more maintainable code. Covers narrowing, discriminated unions, satisfies, unknown vs any, type guards, and when to keep types simple.

Amery2010/open-builder · 40 tokens

aws-cdk-builder

AWS CDK infrastructure builder using TypeScript with L2/L3 constructs and Well-Architected patterns. Activate on: AWS CDK, CDK construct, CDK stack, CDK pipeline, AWS infrastructure as code TypeScript, L2 construct, CDK patterns. NOT for: Terraform IaC (use terraform-module-builder), Kubernetes manifests (use…

curiositech/windags-skills · 94 tokens