create-agent-tui
Scaffolds a complete agent TUI in TypeScript using @openrouter/agent — like create-react-app for terminal agents.
Skill by x402agent
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/x402agent-create-agent-tui
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
create-agent-tui- Description
- 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.
- License
- MIT
- Instructions
- 595 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- body: 595 lines (spec recommends under 500)
Files (46)
- README.md
- SKILL.md
- metadata.json
- input-styles.md · references/
- loader.md · references/
- modules.md · references/
- server-entry-points.md · references/
- slash-commands.md · references/
- system-prompt.md · references/
- tool-display.md · references/
- tools.md · references/
- tui.md · references/
- .gitignore · sample/
- package-lock.json · sample/
- package.json · sample/
- banner.png · sample/screenshots/
- input-style-block.png · sample/screenshots/
- input-style-bordered.png · sample/screenshots/
- input-style-plain.png · sample/screenshots/
- loader-gradient.png · sample/screenshots/
- loader-minimal.png · sample/screenshots/
- loader-spinner.png · sample/screenshots/
- tool-display-emoji.png · sample/screenshots/
- tool-display-grouped.png · sample/screenshots/
- tool-display-minimal.png · sample/screenshots/
- agent.ts · sample/src/
- banner.ts · sample/src/
- cli.ts · sample/src/
- commands.ts · sample/src/
- config.ts · sample/src/
- loader.ts · sample/src/
- renderer.ts · sample/src/
- screenshot-demos.ts · sample/src/
- session.ts · sample/src/
- terminal-bg.ts · sample/src/
- custom.ts · sample/src/tools/
- file-edit.ts · sample/src/tools/
- file-read.ts · sample/src/tools/
- file-write.ts · sample/src/tools/
- glob.ts · sample/src/tools/
- grep.ts · sample/src/tools/
- index.ts · sample/src/tools/
- list-dir.ts · sample/src/tools/
- shell.ts · sample/src/tools/
- test-tui.md · sample/
- tsconfig.json · sample/
SKILL.md (first lines)
# 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 - **Clawd 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_KEY` from [openrouter.ai/settings/keys](https://openrouter.ai/settings/keys) - For full SDK reference, see the `openrouter-typescript-sdk` skill --- ## 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](references/tools.md), present tool checklist only | | Add a harness module | Read [references/modules.md](references/modules.md), generate the module | | Add an API server entry point | Read [references/server-entry-points.md](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 | | 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 dangerous tools behind user confirmation | | 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](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](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 display** — how tool calls appear during execution. See [references/tool-display.md](references/tool-display.md): | Style | Default | Description | |-------|---------|-------------| | `grouped` | ON | Bold action labels with tree-branch output | | `emoji` | | Per-call `⚡`/`✓` markers with args and timing | | `minimal` | | Aggregated one-liner summaries | | `hidden` | | No tool output | | Other | | User describes what they want — implement a custom display | **Loader animation** — shown while waiting for model response. See [references/loader.md](references/loader.md): | Style | Default | Description | |-------|---------|-------------| | `spinner` | ON | Braille dot spinner (⠋⠙⠹…) to the left of the text | | `gradient` | | Scrolling color shimmer over the loader text | | `minimal` | | Trailing dots (`Working···`) | | Other | | User describes what they want — implement a custom animation | Also ask for the **loader text** (default: `"Working"`).
From x402agent/openclawd-ts, MIT.
More from x402agent/openclawd-ts
- 0.359score
cookie-sync
x402agent
Sync cookies from local Chrome to a Browserbase persistent context so the browse CLI can access authenticated sites.
SkillDFreshness: DClaude Code +9 - 0.355score
browser
x402agent
Automate web browser interactions using natural language via CLI commands.
SkillDFreshness: DClaude Code +9 - 0.355score
browserbase-cli
x402agent
Use the Browserbase CLI (`bb`) for Browserbase Functions and platform API workflows.
SkillDFreshness: DClaude Code +9 - 0.355score
functions
x402agent
Deploy serverless browser automation as cloud functions using Browserbase.
SkillDFreshness: DClaude Code +9 - 0.338score
1password
x402agent
Set up and use 1Password CLI (op).
SkillDFreshness: DClaude Code +9 - 0.333score
bluebubbles
x402agent
Use when you need to send or manage iMessages via BlueBubbles (recommended iMessage integration).
SkillDFreshness: DClaude Code +9 - 0.333score
fetch
x402agent
Use this skill when the user wants to retrieve a URL without a full browser session: fetch HTML or JSON from static pages, inspect status codes or headers…
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Apr 26, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/x402agent/openclawd-ts
- Website
- openclawd.biz
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from x402agent
- 0.487score
dex-screener-scanner
x402agent
Automate DexScreener Solana token discovery and screening via browser automation.
SkillCFreshness: C★ 25Claude Code +9 - 0.483score
dflow-kalshi-trading
x402agent
Buy, sell, or redeem YES/NO outcome tokens on Kalshi prediction markets via DFlow.
SkillCFreshness: C★ 25Claude Code +9 - 0.483score
dflow-kalshi-market-data
x402agent
Read market data for a known Kalshi prediction market on DFlow — orderbook, trades, top-of-book prices, candlesticks, forecast-percentile history, and Kalshi…
SkillCFreshness: C★ 25Claude Code +9 - 0.483score
dflow-kalshi-market-scanner
x402agent
Find Kalshi prediction markets on DFlow that match a criterion — arbitrage (YES+NO<$1), cheap long-shots, near-certain short-dated plays, biggest movers…
SkillCFreshness: C★ 25Claude Code +9 - 0.483score
dflow-kalshi-portfolio
x402agent
View what a wallet holds on DFlow's Kalshi prediction markets — current positions, unrealized mark-to-market, realized P&L, activity history, and redeemable…
SkillCFreshness: C★ 25Claude Code +9 - 0.483score
dflow-platform-fees
x402agent
Monetize a DFlow integration by collecting a builder-defined fee on trades your app routes through the Trade API — either a fixed percentage (spot + PM) via…
SkillCFreshness: C★ 25Claude Code +9
Cite this page
create-agent-tui skill. Agent Mart. https://agentmart.dev/skills/x402agent-create-agent-tui (last updated 2026-10-24)