@ai-zen/agents-core MIT
Kernel
An agent is one process-local object: an input queue, an outer loop that takes entries in batches, an inner loop that sends a request and runs tools, input and output switches, one event stream and a set of plugin hooks. It reads no configuration, writes no disk and touches no credentials.
TypeScriptevent-driven
@ai-zen/agents-sdk MIT
Capability face and runtime
Assembles definition files, built-in tools, user tools, skills, sub-agents and MCP into a runnable agent: one Scope per directory, four-dimension permission whitelists, three-level model resolution, two context thresholds and handoff. The runtime wakes resident agents, tracks who is alive, and lets sessions post to each other.
TypeScriptMCPpeer sessions
@ai-zen/agents-host MIT
Resident host
One SQLite file holds session rows and messages, the input queue, workspaces, credentials, notices, questions and a full-text index. The surface is tRPC procedures grouped by domain plus one event stream; agents-host serve starts one on loopback port 8790.
TypeScriptSQLitetRPC
@ai-zen/agents-client MIT
Connection layer
A tRPC client over one WebSocket: it finds a host through the discovery and credential files, launches one when nothing answers, then mirrors events and reconnects. It is not published — cli and desktop each inline it into their own build.
TypeScripttRPCWebSocket
@ai-zen/cli MIT
Terminal client (interface + pipeline)
One executable, two ways to use it: an interactive interface on a TTY, and in a pipe ai "…" writes only the answer to stdout with logs on stderr and a three-band exit code. It launches a host through npx when nothing answers locally, and connects when one does.
TypeScriptInktRPC
@ai-zen/air
Minimal CLI assistant
One shell tool and nothing else: the AI remembers through the filesystem and migrates context when it fills up. "Do 99% of things with 1% of the features" is the trade-off it makes.
TypeScript
@ai-zen/async-queue MIT
Async queue
A queue that implements Symbol.asyncIterator, consumed entry by entry with for await, by one consumer or several. It is the input queue inside the agents kernel: batch-taking and the input/output switches are built on it.
TypeScriptasync iterator
@ai-zen/event-bus MIT
Event management
A lightweight event library with on, emit, once, promise and gather. Every kernel event in agents goes through it; subscriber exceptions are caught by the kernel side.
TypeScript
@ai-zen/lazy-promise MIT
Lazy promise
The executor runs only when then, catch or finally is called: with no consumer, nothing happens at all.
TypeScript
@ai-zen/node-fetch-event-source MIT
SSE client
An EventSource built on fetch: you control headers, POST bodies, cancellation and reconnect logic, without the restrictions of the browser EventSource. Forked from Azure/fetch-event-source.
TypeScriptServer-Sent Events
@ai-zen/socket-pty MIT
A terminal you can host
Starts a real terminal process (bash, vim, a node REPL) and exposes it as a network endpoint over JSON-RPC 2.0 on a socket, so any client speaking that protocol can read and write it. The screen is rendered by xterm-headless, with a separate ./mcp entry for MCP.
TypeScriptJSON-RPC 2.0MCPnode-pty
@ai-zen/pdf-parse-mcp MIT
Take PDFs apart for agents
An stdio MCP server that reports coordinates and sizes for text, vector shapes and bitmaps, and rasterises pages on demand — so an agent can reconstruct a design from a PDF instead of receiving a pile of text.
TypeScriptMCPpdfjs
@ai-zen/desktop
Desktop workbench
A multi-workspace, multi-session workbench in Electron and Vue 3. Agents run on the resident host and the app persists only its connection settings, so sessions survive a host restart or a different machine.
ElectronVue 3TypeScript
@ai-zen/live2d-copilot In progress
AI desktop companion
A Tauri + Vue desktop companion rendered with Live2D that holds a conversation, built on @ai-zen/agents-core and @ai-zen/async-queue. Planned for Steam; still in development.
TauriVue 3Live2D
Coming to Steam