Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

create-agent-tui

БесплатноЗапускает вложенные скриптыНе проверен

Scaffolds a complete agent TUI in TypeScript using @openrouter/agent — like create-react-app for terminal agents. Generates a customizable terminal interface…

OpenRouterTeamот OpenRouterTeam★ 334 звезды на GitHub

Об этом скилле

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


Decision Tree

User wants to... Action
Build a new agent from scratch Present checklist below → follow Generation Workflow
Add tools to an existing harness Read references/tools.md, present tool checklist only
Add a harness module Read references/modules.md, generate the module
Add an API server entry point Read references/server-entry-points.md

Interactive Tool Checklist

Present this as a multi-select checklist. Items marked ON are pre-selected defaults.

OpenRouter Server Tools (server-side, zero implementation)

Tool Type string Default Config
Web Search openrouter:web_search ON engine, max_results, domain filtering
Datetime openrouter:datetime ON timezone
Image Generation openrouter:image_generation OFF model, quality, size, format

Server tools go in the tools array alongside user-defined tools. No client code needed — OpenRouter executes them.

User-Defined Tools (client-side, generated into src/tools/)

Tool Default Description
File Read ON Read files with offset/limit, detect images
File Write ON Write/create files, auto-create directories
File Edit ON Search-and-replace with diff validation
Glob/Find ON File discovery by glob pattern
Grep/Search ON Content search by regex
Directory List ON List directory contents
Shell/Bash ON Execute commands with timeout and output capture; asks the user before each command
JS REPL OFF Persistent Node.js environment
Sub-agent Spawn OFF Delegate tasks to child agents
Plan/Todo OFF Track multi-step task progress
Request User Input OFF Structured multiple-choice questions
Web Fetch OFF Fetch and extract text from web pages
View Image OFF Read local images as base64
Custom Tool Template ON Empty skeleton for domain-specific tools

Harness Modules (architectural components)

Module Default Description
Session Persistence ON JSONL append-only conversation log
ASCII Logo Banner OFF Custom ASCII art banner on startup — ask for project name
Context Compaction OFF Summarize older messages when context is long
System Prompt Composition OFF Assemble instructions from static + dynamic context
Tool Permissions / Approval OFF Gate other dangerous tools behind user confirmation (the shell tool always asks)
Structured Event Logging OFF Emit events for tool calls, API requests, errors
@-file References OFF @filename to attach file content to next message
! Shell Shortcut OFF !command to run shell and inject output into context
Multi-line Input OFF Shift+Enter for multi-line (requires raw terminal mode)

Slash Commands (user-facing REPL commands)

Command Default Description
/model ON Switch model via OpenRouter API
/new ON Start a fresh conversation
/help ON List available commands
/compact OFF Manually trigger context compaction
/session OFF Show session metadata and token usage
/export OFF Save conversation as Markdown

When slash commands are enabled, generate src/commands.ts with a command registry. See references/slash-commands.md for specs.

Visual Customization (present as single-select for each)

Input style — how the prompt looks. See references/input-styles.md:

Style Default Description
block ON Full-width background box with › prompt, adapts to terminal theme
bordered Horizontal ─ lines above and below input
plain Simple > readline prompt, no escape sequences
Other User describes what they want — implement a custom input style

**Tool dis

Полный SKILL.md на GitHub

Установить create-agent-tui в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdmetadata.jsonreferences/input-styles.mdreferences/loader.mdreferences/modules.mdreferences/server-entry-points.mdreferences/slash-commands.mdreferences/system-prompt.mdreferences/tool-display.mdreferences/tools.mdreferences/tui.mdsample/.gitignoresample/package-lock.jsonsample/package.jsonsample/screenshots/banner.pngsample/screenshots/input-style-block.pngsample/screenshots/input-style-bordered.pngsample/screenshots/input-style-plain.pngsample/screenshots/loader-gradient.pngsample/screenshots/loader-minimal.pngsample/screenshots/loader-spinner.pngsample/screenshots/tool-display-emoji.pngsample/screenshots/tool-display-grouped.pngsample/screenshots/tool-display-minimal.pngsample/src/agent.tssample/src/banner.tssample/src/cli.tssample/src/commands.tssample/src/config.tssample/src/loader.tssample/src/renderer.tssample/src/screenshot-demos.tssample/src/session.tssample/src/terminal-bg.tssample/src/tools/custom.tssample/src/tools/file-edit.tssample/src/tools/file-read.tssample/src/tools/file-write.tssample/src/tools/glob.tssample/src/tools/grep.ts

FAQ

Что делает скилл create-agent-tui?

Scaffolds a complete agent TUI in TypeScript using @openrouter/agent — like create-react-app for terminal agents. Generates a customizable terminal interface with three input styles, four tool display modes, ASCII banners, streaming output, session persistence, and configurable tools. Use when building an agent, creating a TUI, scaffolding an agent project, or building a coding assistant.

Как установить скилл create-agent-tui?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл create-agent-tui запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить create-agent-tui с