@modelkit/bridge
v0.2.1
Published
Agent adapter bridge for the ModelKit framework. Connects LLM agents to the ModelKit Hub with workspace isolation and runtime launchers.
Downloads
299
Readme
@modelkit/bridge
Agent adapter bridge for the ModelKit framework. Connects LLM agents to the ModelKit Hub with workspace isolation and runtime launchers.
Install
npm install @modelkit/bridge @modelkit/coreUsage
import { createBridge } from '@modelkit/bridge';
import { ClaudeCodeRuntime } from '@modelkit/bridge';
import { ModelKitAdapter } from '@modelkit/bridge';
const bridge = createBridge({
adapter: new ModelKitAdapter({ hubUrl: 'http://localhost:3000' }),
runtime: new ClaudeCodeRuntime(),
agentDir: './agents',
instructionsDir: './instructions',
});What's Included
- Bridge — Main orchestrator for agent-hub communication
- Adapters — ModelKit Hub polling and Agent-to-Agent protocol adapters
- Runtimes — Claude Code CLI and generic subprocess launchers
- Formatters — START_PACKAGE formatter and DONE_PACKAGE parser
- Workspace — Ephemeral task workspace setup and cleanup
License
MIT
