A modern TypeScript-first copilot framework built with React components and AI agents.
- Node.js 18+
- pnpm 9+
pnpm install# Build all packages
pnpm turbo run build
# Build specific package
pnpm turbo run build --filter=@copilotkitnext/react# Run tests
pnpm turbo run test
# Run tests in watch mode
pnpm turbo run test:watch
# Type checking
pnpm turbo run check-types
# Linting
pnpm turbo run lint# Start Storybook development server
pnpm turbo run storybook:dev --filter=storybook
# Build Storybook for production
pnpm turbo run storybook:build --filter=storybookpackages/core- Core utilities and typespackages/react- React components and hookspackages/runtime- Server-side runtime handlerspackages/shared- Common utilitiesapps/storybook- Component documentation and examples
packages/web-inspector- Lit-based<web-inspector>custom element that attaches to a liveCopilotKitCoreto mirror runtime status, agents, tools, context, and AG-UI events (caps 200 per agent / 500 total). Includes persistence helpers for layout/dock state.packages/devtools-inspector- Proof-of-concept host that depends on@copilotkitnext/web-inspector, registers the element, and injects a remote core/agent shim so streamed data can render inside DevTools.packages/devtools-extension- Chrome DevTools MV3 extension scaffold (background/content/page scripts, devtools panel) that relays CopilotKit data from the inspected page to thedevtools-inspectorhost and renders a “CopilotKit” panel.