Arcen Agent v1.0.0
⌘K
⌘K

TUI internals

The TUI replaces the classic prompt-toolkit interface with an Ink-based terminal application.

Process model

arcen --tui
  Node Ink UI
    stdio JSON-RPC
  Python tui_gateway
    AIAgent, tools, sessions, slash commands

TypeScript owns rendering and input. Python owns sessions, model calls, tools, and command dispatch.

Key surfaces

SurfaceTypeScriptGateway
Chat streamingui-tui/src/app.tsxprompt.submit events
Tool activitythinking.tsxtool.start, tool.progress, tool.complete
Approvalsprompts.tsxapproval.respond
Session pickersessionPicker.tsxsession.list, session.resume
Slash commandslocal handler plus fallbackslash.exec, command.dispatch

Development commands

cd ui-tui
npm install
npm run dev
npm run type-check
npm test