create-agent-tui
Installation
SKILL.md
Create Agent TUI
Scaffolds a complete agent TUI in TypeScript targeting OpenRouter. The generated project uses @openrouter/agent for the inner loop (model calls, tool execution, stop conditions) and provides the outer shell: a customizable terminal interface, configuration, session management, tool definitions, and an entry point.
Architecture draws from three production agent systems:
- pi-mono/coding-agent — three-layer separation, JSONL sessions, pluggable tool operations
- Claude Code — tool metadata (read-only, destructive, approval), system prompt composition
- Codex CLI — layered config, approval flow with session caching, structured logging
Prerequisites
- Node.js 18+
OPENROUTER_API_KEYfrom openrouter.ai/settings/keys- For full SDK reference, see the
openrouter-typescript-sdkskill