@korus-dev/multi-agent-sdk
v0.29.0
Published
Unified native coding-agent harness interface and adapters.
Maintainers
Readme
Multi Agent SDK
A unified TypeScript interface for building apps on Codex, Claude, Cursor, and Antigravity. Send prompts, stream conversation state, answer approvals, and restore native conversations through one Node.js API.
Documentation → · Getting started · API reference · Contributing
Public types can be imported directly from @korus-dev/multi-agent-sdk with import type.
Each adapter preserves its provider's conversation state and settings. Capabilities describe what that provider supports; usage fields remain unknown when the runtime does not report them.
npm install @korus-dev/multi-agent-sdkRequires Node.js 22.19+ and an installed, authenticated provider runtime. This is an ESM package.
import { createHarness } from '@korus-dev/multi-agent-sdk';
const harness = createHarness('codex', { client: { name: 'my-app' } });
const session = harness.open({ id: 'review', folder: process.cwd() });
try {
const run = harness.run(session, 'Explain this project');
for await (const event of run.events) {
if (event.type === 'tool.updated') console.log(event.tool.kind, event.tool.status);
}
const { status, error, messages } = await run.result; // completed, failed or interrupted
console.log(status, error, messages);
} finally {
await harness.close();
}From the repository root, run the complete chat example:
node --experimental-strip-types examples/chat.ts codex 'Explain this project'| Need | Start here | | --- | --- | | Install, sign in and check the account | Setup · First conversation | | Restore chats and load history | Sessions and history | | Permissions, approvals, MCP, and scoped work | Tools and permissions | | Streaming, requests, and accounting | State and events | | Every operation, entry and type | API reference | | Build a conversation UI | Agent UI SDK | | Integrate the raw Codex protocol | Codex SDK |
The host owns storage, application workflows, authorization, and attachment retention. The SDK owns provider integration and conversation projection. See the detailed consumer contract.
Development
npm ci --ignore-scripts
npm run check
npm run dev:docsSee the development guide for local dependency source mode, tests, package validation, and release preparation.
