Agent skill

Agent Squad for TypeScript

by 2FastLabs in 2FastLabs/agent-squad

Guide to building Node.js and TypeScript apps on the agent-squad package: orchestrator, agent types, classifier routing, storage, retrievers and MCP tools.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Agent Squad for TypeScript

skills CLI
$ npx skills add 2FastLabs/agent-squad --skill agent-squad-typescript -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install 2FastLabs/agent-squad agent-squad-typescript --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/2FastLabs/agent-squad.git skills-src && mkdir -p .claude/skills && cp -r skills-src/typescript .claude/skills/agent-squad-typescript && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agent-squad-typescript
GitHub stars
7.8k
Token cost
~4.3k tokens
SKILL.md length
1,412 words
Files
85
Skills in repo
3
Repo updated
First seen
Licence
Apache-2.0

At a glance

Guide to building Node.js and TypeScript apps on the agent-squad package: orchestrator, agent types, classifier routing, storage, retrievers and MCP tools.

  • Building a multi-agent chatbot with an orchestrator and a classifier
  • SKILL.md covers When to use what, How to install, How a turn works and The pieces, plus 3 more sections
  • Runs TypeScript and JavaScript scripts from its folder; calls npm; needs DAKERA_API_KEY
  • Choosing between ChainAgent, SupervisorAgent and GroundedAgent

What it does

The skill is a map of the agent-squad multi-agent framework, not an API reference; exact signatures live in the source. A when-to-use list matches needs to building blocks: a single Agent for one assistant, several specialists behind a classifier, GroundedAgent when answers must not drift from data, ChainAgent for fixed pipelines, SupervisorAgent for a lead model calling sub-agents, MCPToolProvider for external tools, and a Retriever for RAG context.

It covers installation with npm, optional peer dependencies such as the MCP SDK and the Dakera client, and how a turn works: routeRequest classifies the input, dispatches to the selected agent, saves the exchange and returns either a string or a Node.js Transform stream. Classifiers can use Bedrock, Anthropic or OpenAI, storage can be in-memory, DynamoDB or SQL, and retrievers include Amazon Knowledge Bases.

When your agent uses it

  • Building a multi-agent chatbot with an orchestrator and a classifier
  • Choosing between ChainAgent, SupervisorAgent and GroundedAgent
  • Adding MCP tools or a retriever to an agent
  • Switching conversation storage to DynamoDB or SQL

Example prompts

  • “Set up an AgentSquad orchestrator with a Bedrock classifier and two specialist agents.”
  • “Make the pricing agent a GroundedAgent so its answers come only from tool results.”
  • “Store conversation history in DynamoDB instead of memory.”

Requirements

  • Node.js and the agent-squad npm package
  • Credentials for the chosen model provider

What it can do on your machine

Read from SKILL.md and the folder at commit 729d5f5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript and JavaScript, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • DAKERA_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agent Squad for TypeScript loads about 4.3k tokens when it runs. Until then it costs about 93 tokens; SKILL.md has 1,412 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~93
When it runs · the whole SKILL.md, loaded when a task matches
~4.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from 2FastLabs/agent-squad at commit 729d5f5, republished under its Apache-2.0 licence (© 2FastLabs). 1,412 words, ~4,257 tokens.

Download SKILL.mdSave it as .claude/skills/agent-squad-typescript/SKILL.md (or your agent's skills folder). This skill also uses 84 other files; get the full folder from GitHub.
name
agent-squad-typescript
description
Use when building or modifying a Node.js / TypeScript app that uses the agent-squad npm package — multi-agent orchestration: orchestrator, agents (all built-in types + GroundedAgent), classifier routing (Bedrock / Anthropic / OpenAI), storage (in-memory / DynamoDB / SQL), retrievers (Amazon KB / Dakera), and tools (AgentTools + MCPToolProvider).

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

bash
npm install agent-squad

Optional peer dependencies — install only what you use:

PackageUsed by
@aws-sdk/client-bedrock-runtimeBedrockLLMAgent, BedrockClassifier (already a hard dep in current releases)
@anthropic-ai/sdkAnthropicAgent, AnthropicClassifier (already a hard dep)
openaiOpenAIAgent, OpenAIClassifier (already a hard dep)
@modelcontextprotocol/sdkMCPToolProvider — lazy await import() at connect time
@dakera-ai/dakeraDakeraRetriever — 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.

How a turn works

routeRequest is the single entry point. It classifies the input, dispatches to the selected agent, saves the exchange, and returns an AgentResponse. The response is either a plain string or a Node.js Transform stream:

typescript
import { AgentSquad, BedrockLLMAgent, BedrockClassifier } from 'agent-squad';

const orchestrator = new AgentSquad({
  classifier: new BedrockClassifier(),   // default when omitted
  // storage: new DynamoDbChatStorage(...),
  // config: { LOG_AGENT_CHAT: true, MAX_MESSAGE_PAIRS_PER_AGENT: 50 },
});

orchestrator.addAgent(new BedrockLLMAgent({
  name: 'Tech Support',
  description: 'Handles technical questions about software and hardware',
  streaming: true,
}));

const response = await orchestrator.routeRequest(
  userInput,
  userId,
  sessionId,
  additionalParams   // optional Record<string, any>
);

if (response.streaming) {
  // response.output is an AccumulatorTransform (Node.js Transform)
  for await (const chunk of response.output) {
    process.stdout.write(chunk);
  }
} else {
  // response.output is a string
  console.log(response.output);
  // response.thinking? is set when the agent used extended thinking
}

// response.metadata: { agentId, agentName, userId, sessionId, userInput, additionalParams }

routeRequest never throws — it catches all errors and returns them as a non-streaming AgentResponse with the error string in output (configurable via GENERAL_ROUTING_ERROR_MSG_MESSAGE).

The pieces

Orchestrator: AgentSquad
typescript
new AgentSquad(options?: OrchestratorOptions)

Key OrchestratorOptions fields:

FieldDefaultNotes
classifiernew BedrockClassifier()Any Classifier subclass
storagenew InMemoryChatStorage()Any ChatStorage subclass
defaultAgentundefinedUsed when classifier returns no match and USE_DEFAULT_AGENT_IF_NONE_IDENTIFIED is true
config.USE_DEFAULT_AGENT_IF_NONE_IDENTIFIEDtrueFall back to defaultAgent or return NO_SELECTED_AGENT_MESSAGE
config.MAX_MESSAGE_PAIRS_PER_AGENT100Per-agent history cap (pairs = user+assistant)
config.MAX_RETRIES3Classifier retries on bad XML response
config.LOG_AGENT_CHATfalse

Useful methods: addAgent(agent), setDefaultAgent(agent), getDefaultAgent(), getAllAgents(), analyzeAgentOverlap(), classifyRequest(...), agentProcessRequest(...).

The classifier is exposed as a public field (orchestrator.classifier) so its system prompt can be overridden after construction.

Agents

All agents extend Agent and require at minimum { name, description } in their options.

agent.id is derived automatically from name: non-alphanumeric stripped, spaces → hyphens, lowercased. "Tech Support" → "tech-support". This is the key used for storage and classifier matching — it must be stable across restarts.

ClassOptions typeNotes
BedrockLLMAgentBedrockLLMAgentOptionsBedrock Converse API; supports streaming, modelId, inferenceConfig, guardrailConfig, reasoningConfig, retriever, toolConfig, customSystemPrompt, client, callbacks
AnthropicAgentAnthropicAgentOptionsDirect Anthropic SDK; similar options shape
OpenAIAgentOpenAIAgentOptionsOpenAI Chat Completions
AmazonBedrockAgentAmazonBedrockAgentOptionsAmazon Bedrock Agents (pre-built agents, not Converse)
BedrockInlineAgentBedrockInlineAgentOptionsBedrock inline agents
BedrockFlowsAgentBedrockFlowsAgentOptionsBedrock Flows
LambdaAgentLambdaAgentOptionsInvokes a Lambda function as an agent
LexBotAgentLexBotAgentOptionsAmazon Lex V2 bot
ChainAgentChainAgentOptionsFixed pipeline; agents: Agent[], defaultOutput?
SupervisorAgentSupervisorAgentOptionsLead + team; leadAgent must be BedrockLLMAgent or AnthropicAgent; lead must have no toolConfig (SupervisorAgent manages tools)
GroundedAgentGroundedAgentOptions2-LLM anti-hallucination; gatherer, presenter, tools, curator?, presenterPrompt?

AgentOptions base fields: name (required), description (required), saveChat? (default true), logger?, LOG_AGENT_DEBUG_TRACE?.

BedrockLLMAgent toolConfig shape:

typescript
toolConfig: {
  tool: AgentTools | Tool[],   // AgentTools instance or raw Bedrock Tool array
  useToolHandler: (response: any, conversation: ConversationMessage[]) => any,
  toolMaxRecursions?: number,
}

When using MCPToolProvider, pass it as toolConfig.tool and omit useToolHandler — the provider overrides toolHandler internally.

GroundedAgent

Two-LLM anti-hallucination pattern. The gatherer calls tools; the presenter receives only the curated facts (never raw tool output, never chat history from the gatherer):

typescript
import {
  GroundedAgent, DataBlockCurator, PerToolCurator, PresenterPrompt,
  BedrockLLMAgent, AgentTools, AgentTool,
} from 'agent-squad';

const tools = new AgentTools([
  new AgentTool({ name: 'get_price', description: '...', func: async ({ sku }) => fetchPrice(sku) }),
]);

const gatherer = new BedrockLLMAgent({ name: 'Gatherer', description: '...', toolConfig: { tool: tools, useToolHandler: ... } });
const presenter = new BedrockLLMAgent({ name: 'Presenter', description: '...' });

const agent = new GroundedAgent({
  name: 'Price Agent',
  description: 'Answers pricing questions grounded in live data',
  gatherer,
  presenter,
  tools,
  curator: new DataBlockCurator(),          // default; or PerToolCurator for per-tool formatting
  presenterPrompt: PresenterPrompt.default(), // generic grounding prompt; or per-tool map
});

A no-tool turn (chit-chat) is answered by the gatherer directly, skipping the presenter.

Classifiers
ClassOptions typeNotes
BedrockClassifierBedrockClassifierOptionsDefault when no classifier is passed to AgentSquad
AnthropicClassifierAnthropicClassifierOptions
OpenAIClassifierOpenAIClassifierOptions

All classifiers support setSystemPrompt(template?, variables?) to override the routing prompt. Template variables use {{VAR_NAME}} syntax; AGENT_DESCRIPTIONS and HISTORY are always injected automatically.

Storage
ClassNotes
InMemoryChatStorageDefault; non-persistent; fine for dev and tests
DynamoDbChatStorageRequires @aws-sdk/client-dynamodb and @aws-sdk/lib-dynamodb (hard deps)
SqlChatStorageRequires @libsql/client (hard dep); works with Turso or local libsql
SummarizingChatStorageWraps any storage; compresses history via a user-supplied ChatSummarizer callable when fetchChat returns more than triggerAt * 2 messages; cache-based save-back

Storage is keyed by (userId, sessionId, agentId). fetchAllChats(userId, sessionId) is used by the classifier to get cross-agent history for context.

Retrievers
ClassOptions typeNotes
AmazonKnowledgeBasesRetrieverAmazonKnowledgeBasesRetrieverOptionsAmazon Bedrock Knowledge Bases
DakeraRetrieverDakeraRetrieverOptionsDakera memory server; optional peer dep @dakera-ai/dakera

DakeraRetrieverOptions: namespace (required), apiKey? (falls back to DAKERA_API_KEY env), url? (falls back to DAKERA_URL then http://localhost:3000), topK? (default 10), filter?.

Attach to a BedrockLLMAgent via retriever: option. The agent calls retriever.retrieveAndCombineResults(inputText) to augment its system prompt.

DakeraRetriever.retrieveAndGenerate() always throws — Dakera is retrieval-only.

Tools: AgentTools and AgentTool
typescript
import { AgentTools, AgentTool } from 'agent-squad';

const myTools = new AgentTools([
  new AgentTool({
    name: 'search_web',
    description: 'Search the web for current information',
    properties: {
      query: { type: 'string', description: 'The search query' },
    },
    required: ['query'],
    func: async ({ query }) => webSearch(query),
  }),
]);

AgentTool constructor will auto-extract parameter names from func if properties is omitted — but this is fragile with minification. Always pass explicit properties and required.

Show full SKILL.md (610 more words)Show less
MCPToolProvider

MCPToolProvider extends AgentTools. Always use the async factory — never new MCPToolProvider(...) directly — so that tool definitions are fetched before the agent makes its first API call:

typescript
import { MCPToolProvider } from 'agent-squad';

const provider = await MCPToolProvider.create([
  { type: 'stdio', command: 'uvx', args: ['my-mcp-server'] },
  { type: 'sse', url: 'http://localhost:3000/sse', headers: { Authorization: 'Bearer tok' } },
]);

const agent = new BedrockLLMAgent({
  name: 'MCP Agent',
  description: 'Agent with MCP tools',
  toolConfig: { tool: provider },
});

// Clean up when done (closes stdio processes and SSE connections)
await provider.disconnect();

MCPServerConfig.type is "stdio" or "sse". For stdio: command is required, args? and env? are optional. For sse: url is required, headers? is optional.

MCPToolProvider overrides toBedrockFormat(), toAnthropicFormat(), and toOpenAIFormat() to pass MCP inputSchema through unchanged rather than re-serializing it.

Requires npm install @modelcontextprotocol/sdk. The SDK is imported lazily via await import() inside ensureConnected() — installing agent-squad without the SDK is safe as long as you don't instantiate MCPToolProvider.

Custom implementations

Extend the abstract base class and pass your type where the built-in goes.

SeamBase classMethod to implementSource
AgentAgentprocessRequest(inputText, userId, sessionId, chatHistory, additionalParams?) returns Promise<ConversationMessage | AsyncIterable<any>>typescript/src/agents/agent.ts
ClassifierClassifierprocessRequest(inputText, chatHistory) returns Promise<ClassifierResult>typescript/src/classifiers/classifier.ts
StorageChatStoragesaveChatMessage, fetchChat, fetchAllChatstypescript/src/storage/chatStorage.ts
RetrieverRetrieverretrieve, retrieveAndCombineResults, retrieveAndGeneratetypescript/src/retrievers/retriever.ts

ClassifierResult shape: { selectedAgent: Agent | null, confidence: number }.

Classifier base class provides setAgents, setHistory, setSystemPrompt, and getAgentById(agentId) — use getAgentById in your processRequest to look up the selected agent from the classifier's registered map.

Gotchas

  • agentId is derived from name at construction time: non-alphanumeric stripped, spaces replaced with -, lowercased. Changing an agent's name changes its id, which breaks chat history lookups in storage. Keep names stable across deployments.

  • Streaming response is a Node.js Transform stream, not an async generator. Check response.streaming before iterating. The transform accumulates the full response internally; for await (const chunk of response.output) works because Transform implements AsyncIterable. Do not call response.output.read() manually.

  • routeRequest never throws. Errors are returned as non-streaming AgentResponse with the error string in output. If you need to distinguish errors from real responses, check response.metadata.errorType === 'classification_failed' or inspect metadata.agentId.

  • MCPToolProvider.create(...) must be awaited before the agent is used. The constructor alone does not connect; calling processRequest before create resolves means tool definitions are empty and the agent will behave as if it has no tools.

  • BedrockClassifier is the default. If boto3/AWS credentials are not configured and you don't pass an explicit classifier, AgentSquad will construct a BedrockClassifier that will fail at runtime. Pass classifier: new AnthropicClassifier(...) or new OpenAIClassifier(...) if you're not on AWS.

  • Optional peer deps use lazy import/require. MCPToolProvider uses await import(...) inside ensureConnected(); DakeraRetriever uses require(...) inside the constructor. Neither adds a top-level import, so a missing peer dep is only discovered at instantiation time — not at module load. Throw the missing-dep error early, before user input arrives.

  • SupervisorAgent restrictions: leadAgent must be BedrockLLMAgent or AnthropicAgent; the lead agent must have no toolConfig set (SupervisorAgent wires its own tool loop). Pass additional native tools via extraTools.

  • saveChat defaults to true. Every agent persists both sides of each exchange after the turn completes. Set saveChat: false on agents that should not write to storage (e.g. a presenter inside a GroundedAgent that is managed externally).

  • additionalParams flows through routeRequest → dispatchToAgent → agent.processRequest. Use it to pass per-request context (tenant ID, request ID, feature flags) without touching agent options. The values end up in response.metadata.additionalParams.

  • AgentTools auto-extracts parameter names from func via .toString(). This breaks with minification and TypeScript arrow functions with destructured arguments. Always supply explicit properties and required arrays to AgentTool.

  • ThinkingResponse: when a BedrockLLMAgent is configured with reasoningConfig, the non-streaming path may return response.thinking (a string) alongside response.output. The streaming path does not surface thinking tokens separately.

Go deeper

  • Prose & recipes — docs/src/content/docs/ (run the site from docs/ with npm run dev): orchestrator/overview, agents/built-in/bedrock-llm-agent, agents/built-in/grounded-agent, classifiers/overview, storage/overview, retrievers/overview, tools/mcp.
  • Exact signatures — typescript/src/ (orchestrator.ts, agents/, classifiers/, storage/, retrievers/, tools/mcpToolProvider.ts, utils/tool.ts, types/index.ts).
  • Tests — typescript/tests/ for usage patterns and mock strategies (virtual mocks for optional peer deps via jest.mock(..., { virtual: true })).
  • Barrel — typescript/src/index.ts is the definitive list of every public symbol.

© 2FastLabs, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 84 other files in typescript of 2FastLabs/agent-squad.

  • SKILL.md
  • .npmignore
  • README.md
  • eslint.config.mjs
  • jest.config.js
  • package-lock.json
  • package.json
  • src/agentOverlapAnalyzer.ts
  • src/agents/agent.ts
  • src/agents/amazonBedrockAgent.ts
  • src/agents/anthropicAgent.ts
  • src/agents/bedrockFlowsAgent.ts
  • src/agents/bedrockInlineAgent.ts
  • src/agents/bedrockLLMAgent.ts
  • src/agents/bedrockTranslatorAgent.ts
  • src/agents/chainAgent.ts
  • src/agents/comprehendFilterAgent.ts
  • src/agents/groundedAgent.ts
  • src/agents/lambdaAgent.ts
  • … and 66 more

Open the folder on GitHubat commit 729d5f5

Compare with similar skills

Agent Squad for TypeScript next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agent Squad for TypeScript compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Squad for TypeScript this skill2FastLabs/agent-squad7.8k—~4.3kAutomated safety check: PassApache-2.0
Neurolink Guidejuspay/neurolink143—~1.4kAutomated safety check: PassMIT
Agent Inspectrajudandigam/agent-inspect165—~424Automated safety check: PassMIT
Mastramajiayu000/claude-skill-registry6661 repos~3.2kAutomated safety check: PassMIT
Ydc Openai Agent SDK IntegrationLeoYeAI/openclaw-master-skills2.2k—~4.4kAutomated safety check: NotesMIT
Trigger.dev Agent Patternspapermark/papermark9.2k—~2kAutomated safety check: PassCustom licence

Similar skills

  • Neurolink Guide

    juspay/neurolink

    Guide for using the NeuroLink SDK and CLI. An agent skill from juspay/neurolink.

    143 GitHub stars~1.4k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Agent Inspect

    rajudandigam/agent-inspect

    Local evidence debugger and trajectory-test toolkit for TypeScript AI agents.

    165 GitHub stars~424 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Mastra

    majiayu000/claude-skill-registry

    A skill your agent uses when working with Mastra - the TypeScript AI framework for building agents, workflows, tools, and AI-powered applications.

    666 GitHub starsUsed in 1 repo~3.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Ydc Openai Agent SDK Integration

    LeoYeAI/openclaw-master-skills

    Integrate OpenAI Agents SDK with You.com MCP server - Hosted and Streamable HTTP support for Python and TypeScript.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check: notes
  • Trigger.dev Agent Patterns

    papermark/papermark

    Patterns for building LLM agents on Trigger.dev tasks: prompt chaining, routing, parallel workers, orchestrator-workers, evaluator loops and human approval gates.

    9.2k GitHub stars~2k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Dive Into LangGraph

    luochang212/dive-into-langgraph

    A Chinese-language guide and reference for building agents with LangGraph 1.0, from a first ReAct agent through middleware, memory, MCP, RAG and web search.

    457 GitHub stars~837 tokensUpdated 26 days ago
    AI & LLM EngineeringAuto-check: notes

More from 2FastLabs/agent-squad

  • Agent Squad Python Guide

    2FastLabs/agent-squad

    Map of the agent-squad Python framework for async multi-agent orchestration: which agent, classifier, storage and tool provider to pick, and the pitfalls to avoid.

    7.8k GitHub stars~4.7k tokensUpdated today
    Auto-check passed
  • AgentSquad for Swift

    2FastLabs/agent-squad

    Guides building on-device multi-agent apps in Swift with the AgentSquad framework: which agent, orchestrator, classifier, storage or voice type fits each situation.

    7.8k GitHub stars~3.5k tokensUpdated today
    Auto-check passed

Questions about Agent Squad for TypeScript

What does Agent Squad for TypeScript do?

Guide to building Node.js and TypeScript apps on the agent-squad package: orchestrator, agent types, classifier routing, storage, retrievers and MCP tools. The skill is a map of the agent-squad multi-agent framework, not an API reference; exact signatures live in the source. A when-to-use list matches needs to building blocks: a single Agent for one assistant, several specialists behind a classifier, GroundedAgent when answers must not drift from data, ChainAgent for fixed pipelines, SupervisorAgent for a lead model calling sub-agents, MCPToolProvider for external tools, and a Retriever for RAG context.

When should I use Agent Squad for TypeScript?

Agent Squad for TypeScript fits situations like: building a multi-agent chatbot with an orchestrator and a classifier; choosing between ChainAgent, SupervisorAgent and GroundedAgent; adding MCP tools or a retriever to an agent; switching conversation storage to DynamoDB or SQL.

How do I install Agent Squad for TypeScript in Claude Code?

Run `npx skills add 2FastLabs/agent-squad --skill agent-squad-typescript -a claude-code`. Or copy the skill folder (typescript in 2FastLabs/agent-squad) into .claude/skills/agent-squad-typescript in your project. Claude Code loads it when a task matches its description.

How do I install Agent Squad for TypeScript in Codex?

Run `npx skills add 2FastLabs/agent-squad --skill agent-squad-typescript -a codex`. Or copy the skill folder (typescript in 2FastLabs/agent-squad) into .agents/skills/agent-squad-typescript in your project. Codex loads it when a task matches its description.

Can I use Agent Squad for TypeScript in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add 2FastLabs/agent-squad --skill agent-squad-typescript -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-squad-typescript, .gemini/skills/agent-squad-typescript, .github/skills/agent-squad-typescript and .opencode/skills/agent-squad-typescript in your project.

What does Agent Squad for TypeScript need to run?

Going by SKILL.md and its folder, Agent Squad for TypeScript needs TypeScript and JavaScript for the scripts in its folder, the command-line tools its instructions call (npm) and credentials named DAKERA_API_KEY. Our summary lists: Node.js and the agent-squad npm package; Credentials for the chosen model provider.

Does Agent Squad for TypeScript access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Agent Squad for TypeScript safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agent Squad for TypeScript use?

Agent Squad for TypeScript is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agent Squad for TypeScript use?

About 4.3k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Agent Squad for TypeScript?

Skills that share tags, products or a category with Agent Squad for TypeScript: Neurolink Guide (juspay/neurolink, 143 stars), Agent Inspect (rajudandigam/agent-inspect, 165 stars), Mastra (majiayu000/claude-skill-registry, 666 stars) and Ydc Openai Agent SDK Integration (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Squad for TypeScript?

2FastLabs (a GitHub organization) maintains it in 2FastLabs/agent-squad, which has 7,787 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 7, 2026.

Source: 2FastLabs/agent-squad on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.