Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:23blocks OS Ai maestro xterm js

From Leeroopedia
Knowledge Sources
Domains Terminal, Client
Last Updated 2026-10-26 18:00 GMT

Overview

xterm.js: the browser terminal emulator used to render agent tmux sessions in the AI Maestro UI and to run a headless terminal on the server.

Description

AI Maestro uses xterm.js for in-browser terminal rendering (`hooks/useTerminal.ts`, `contexts/TerminalContext.tsx`) and a headless server-side xterm for off-screen rendering and transcript capture (`lib/headless-terminal.mjs`). Per the terminal rules: `convertEol: false`; load addons, then `open()`, then `fitAddon.fit()`; initialise once on mount (empty dependency array); inactive tabs use `visibility: hidden` (not `display: none`) because zero-size breaks xterm.

Usage

Use this environment for terminal rendering and headless terminal capture. Follow the xterm lifecycle rules in CLAUDE.md.

System Requirements

Category Requirement Notes
Browser Any modern browser With Canvas/WebGL addon support

Dependencies

  • `@xterm/xterm`
  • `@xterm/addon-fit`
  • `@xterm/addon-canvas` / `@xterm/addon-webgl`

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment