AI agent abstraction layer for Node.js
npm install @witqq/agent-sdk import { createAgentService } from '@witqq/agent-sdk'; const service = createAgentService('copilot', {}); const agent = service.createAgent({ systemPrompt: 'You are a helpful assistant.', tools: [myTool], }); const result = await agent.run('Analyze this repo', { model: 'gpt-5-mini', });
Copilot CLI, Claude CLI, Vercel AI SDK, Mock LLM. One interface, swap backends with a string.
Define tools with Zod v3/v4 schemas. Permission scoping: once, session, project, always.
15 typed event types via AsyncIterable. Text deltas, thinking, tool calls, usage tracking.
Server sessions, React components, SSE/WebSocket transports. SQLite persistence out of the box.
Mock LLM backend with deterministic modes. Mock factories for services, runtimes, React components.
Type-safe structured responses with Zod validation. Works across all backends.
GitHub Copilot CLI. OAuth auth, GitHub subscription.
Anthropic Claude CLI. OAuth auth, pay-per-use.
Any LLM via Vercel AI SDK v6. API key, full control.
Deterministic responses. No API keys, no cost.