Launch a full-screen interactive browser for exploring and installing agents. The TUI (Terminal User Interface) provides visual navigation, search, and batch installation.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dmicheneau/opencode-template-agent/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Auto-launch
If you run the CLI without any command and your terminal supports TTY, the TUI launches automatically:Features
Visual Navigation
- Category tabs — Browse agents by category with keyboard or mouse
- Color-coded — Each category has a unique color for quick identification
- Agent cards — Name, description, tags, and install status
- Status indicators — ✓ installed, ⚠ outdated, ○ not installed
Keyboard Controls
| Key | Action |
|---|---|
↑ / ↓ | Navigate agent list |
← / → | Switch category tabs |
Tab | Next category tab |
Space | Toggle agent selection |
Enter | Install selected agents |
/ | Open search |
p | View pack details |
q / Esc | Quit or cancel |
h / ? | Show help |
Mouse Support
- Click tabs — Switch categories
- Click agents — Select for installation
- Scroll — Navigate long lists
- Click buttons — Install, cancel, quit
Search Mode
Press/ to enter search:
- Type your query (e.g.,
docker,typescript,security) - Results appear in real-time
- Navigate with
↑/↓ Spaceto select,Enterto installEscto return to browse mode
Pack Explorer
Pressp to view predefined packs:
- Browse packs with
↑/↓ Enterto view pack details (agent list)Spaceto select entire packEnteragain to install all agents in packEscto return to main view
Installation States
Each agent shows its current state:| Icon | State | Description |
|---|---|---|
| ✓ | Installed | File exists and hash matches lock |
| ⚠ | Outdated | File exists but hash mismatch |
| ○ | Not installed | File does not exist |
| ? | Unknown | File exists but no lock entry |
Flags
Overwrite existing agent files during installation. By default, the TUI skips already-installed agents.
Workflow Example
1. Launch TUI
2. Browse categories
3. Select agents
PressSpace to toggle selection (✓ indicator appears next to agent name).
4. Install
PressEnter to install all selected agents. The TUI shows progress:
5. Search mode
Press/ and type docker:
Color Palette
Each category has a distinct color:| Category | Color |
|---|---|
| Languages | Blue |
| AI | Purple |
| Web | Cyan |
| Data & API | Green |
| DevOps | Orange |
| DevTools | Yellow |
| Security | Red |
| MCP | Magenta |
| Business | Teal |
| Docs | Gray |
Requirements
- Node.js 20+ — Required for native ESM and built-in modules
- TTY terminal — The TUI requires an interactive terminal (not pipes or redirects)
- UTF-8 encoding — For box-drawing characters and emoji icons
- ANSI support — For colors and cursor control
The TUI automatically detects TTY support. If your terminal doesn’t support interactive mode, the CLI falls back to showing help text.
Architecture
The TUI is built with zero npm dependencies using Node.js built-ins:- index.mjs — Lifecycle orchestration, main loop, signal handling
- screen.mjs — Terminal I/O (raw mode, flush, resize, input handling)
- input.mjs — Byte stream parser (raw bytes → ~20 action types)
- state.mjs — State machine (browse, search, confirm, installing, done, quit)
- renderer.mjs — Frame builder (state → ANSI string)
- ansi.mjs — ANSI codes, colors, box drawing, palettes