A complete conversation pane
Streaming messages, rich prompt editing, tools, approvals, questions, queues, goals, history and model selection in one component.
Capability-driven Vue controls for applications powered by Codex, Claude, Cursor and Antigravity. Compose a complete pane or just the pieces you need.
Your trusted host runs a session through @korus-dev/multi-agent-sdk. The renderer binds a reactive snapshot and a handful of session-bound actions, then renders the pane:
<script setup lang="ts">
import { onBeforeUnmount, shallowRef } from 'vue';
import { ConversationPane, createSessionConversationController } from '@korus-dev/agent-ui-sdk';
import '@korus-dev/agent-ui-sdk/styles.css';
import { bridge } from './bridge'; // your typed window.bridge, see the quick start
const initial = await bridge.read();
const state = shallowRef(initial.state);
const off = bridge.subscribe(next => { state.value = next; });
const binding = createSessionConversationController({
conversationKey: 'conversation-1',
state,
capabilities: () => initial.capabilities,
client: bridge,
});
onBeforeUnmount(() => { off(); binding.dispose(); });
</script>
<template>
<ConversationPane :controller="binding.controller" />
</template>Provider handles, credentials, filesystem paths and Electron objects never cross into this code.
Provider-neutral Vue controls, session composition, themes, providers and document panels.
Renderer-safe contracts for attachments, clipboard, links and speech, plus prompt-option translation.
Typed IPC, window policy, native capabilities and the preload bridge for desktop hosts.
Trusted Apple SpeechAnalyzer and OpenAI dictation sessions.
Browser contracts, the Vue browser panel, and a guarded Electron browser manager.
| If you are building… | Start from… |
|---|---|
| A new agent application | Quick start |
| A pane inside an existing Vue app | Conversation pane and session binding |
| A custom layout from individual controls | Composer and messages and tools |
| An Electron desktop host | Electron host |
| A focused, branded chat | Presentation and theming and the Spark sample |
| A business application with model-driven operations | The Relay sample |
Design rule
The UI works from capabilities and session state. It never branches on a provider name. Applications supply wording such as permission labels, and the harness SDK supplies behavior.
The package is published to npm as @korus-dev/agent-ui-sdk under the Apache-2.0 license. The component lab needs no provider login: clone the repository, run npm ci and npm run dev:lab.
The SDK is pre-1.0 and these docs follow main; package releases may lag behind.