Contribute
Local setup
Clone, install, and run the AgentsKit monorepo locally in under 2 minutes.
Clone, install, run. Monorepo uses pnpm workspaces + Turborepo.
#Prerequisites
- Node.js 22+
- pnpm 9+ (
corepack enable) - Git
#Clone + install
git clone https://github.com/AgentsKit-io/agentskit.git
cd agentskit
pnpm install#Everyday commands
pnpm build # build all packages (turborepo-cached)
pnpm test # run every package's vitest suite
pnpm lint # tsc --noEmit across the workspace
pnpm dev # watch mode β rebuilds packages on save#Hot reload
pnpm dev runs tsup --watch across every package in parallel. When you save a source file:
- The changed package rebuilds in < 1s (incremental).
- Any app consuming it (docs-next, example-react, example-ink) hot-reloads automatically β Next.js HMR for
docs-next/example-react, tsx watch forexample-ink. - No manual rebuild, no restart.
Tip: run two terminals:
# terminal 1 β rebuild packages on save
pnpm dev
# terminal 2 β run the app you're iterating on
pnpm --filter @agentskit/example-react dev
# or
pnpm --filter @agentskit/docs-next devEdit packages/react/src/useChat.ts β example-react re-renders in ~1s. No config needed.
#Single package
pnpm --filter @agentskit/core test
pnpm --filter @agentskit/react build
pnpm --filter @agentskit/adapters test -- --watch#Run the docs site locally
pnpm --filter @agentskit/docs-next devOpen http://localhost:3000.
#Run the React playground
pnpm --filter @agentskit/example-react dev#Monorepo layout
packages/
core/ β zero-deps foundation (10KB)
adapters/ β OpenAI, Anthropic, Gemini, β¦
react/ β React hooks + UI
ink/ β terminal UI
cli/ β `agentskit` binary
runtime/ β standalone agent runtime
tools/ skills/ memory/ rag/ sandbox/
observability/ eval/ templates/
apps/
docs-next/ β this site (Next.js + Fumadocs)
example-react/ β React playground
example-ink/ β Ink playground
example-runtime/ β runtime-only example#Troubleshooting
Cannot find module '@agentskit/core'β runpnpm buildfirst. Linting depends on builtdist/types.- Lockfile conflicts β delete
node_modules+pnpm-lock.yaml, runpnpm install. - Node version errors β make sure
node -vreports 22+.