GENERATED FROM THE CURRENT SOURCE TREE · 2026-09-23
API reference
Every page in this section is generated at build time from the package's public modules, their JSDoc contracts, live tool schemas, and real import edges — never from copied prose. Pick a module below, or browse architecture, contracts, the tool catalog, and the settings schema.
Markdown
lib/markdown.js
lib/markdown.js — Markdown: markdown STRUCTURE for any render target, presentation-free.
Context
lib/context.js
lib/context.js — Context: the shared conversation data model.
Env
lib/env.js
lib/env.js — Env: the sole global environment object.
IO
lib/io.js
lib/io.js — IO: provider IO/schema conversion, nothing else.
Agent
lib/agent.js
lib/agent.js — Agent: owns context, provider/model selection, the tool loop, and persistence.
CLI
lib/cli.js
lib/cli.js — shared process-facing command helpers.
Jobs
lib/jobs.js
Portable, folder-only project Jobs.
TUI
lib/tui.js
lib/tui.js — the TUI: the human front end of ai.
GTUI
lib/gtui/gtui.js
GTUI public façade for synchronous terminal applications.
index
lib/index.js
Primary library entry point.