claude-agent-ts-sdk

Community

Build Claude agents in TypeScript.

Authorszweibel
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides patterns and scaffolding to build Claude agents using TypeScript with the claude-agent-sdk, including tool wrapping, streaming responses, and modular agent design.

Core Features & Use Cases

  • Tool wrapping patterns: create modular, reusable tools for agents.
  • MCP server integration: wrap tools into MCP servers when needed for queries.
  • Streaming & debugging: handle streaming responses, tool calls, and tool results with telemetry hooks.
  • Use Case: implement a CLI agent that reads a file, processes it with a tool, and streams the result to the terminal.

Quick Start

Initialize a new TypeScript project, install @anthropic-ai/claude-agent-sdk, and build a sample agent that wraps a basic tool.

Dependency Matrix

Required Modules

@anthropic-ai/claude-agent-sdkzod

Components

referencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: claude-agent-ts-sdk
Download link: https://github.com/szweibel/claude-skills/archive/main.zip#claude-agent-ts-sdk

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.