This is a Next.js web application that demonstrates the capabilities of the Claude Agent SDK. It provides an interactive chat interface where you can communicate with Claude AI, which has the ability to execute various development tools directly on your local machine.
This project creates a conversational AI assistant with real-world capabilities:
-
Interactive Chat Interface: A modern, responsive chat UI built with React and Next.js
-
Tool Execution: Claude can execute various development tools including:
Bash- Run shell commandsRead- Read files from the filesystemWrite- Create or modify filesEdit- Make precise edits to existing filesGlob- Search for files using patternsGrep- Search for content within files- And more...
-
Session Management: Maintains conversation context across multiple messages
-
Real-time Streaming: Server-Sent Events (SSE) for smooth, real-time responses
-
Tool Visibility: Visual feedback showing which tools Claude is using and their results
- Built with Next.js 16 and React 19
- Modern UI components using shadcn/ui and Tailwind CSS
- TypeScript for type safety
- Dark mode interface
- Suggested prompts to get started quickly
- Server-side streaming with SSE
- Abort capability for long-running requests
This playground is ideal for:
- Exploring the Claude Agent SDK capabilities
- Understanding how to integrate AI agents into web applications
- Learning how to build tool-enabled AI assistants
- Prototyping AI-powered development tools
- Framework: Next.js 16
- AI SDK: @anthropic-ai/claude-agent-sdk
- UI: React 19, Tailwind CSS, shadcn/ui
- Language: TypeScript
- Runtime: Node.js (required for tool execution)
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev