agent-tui
Skill107k starsChanged 7 months agoApache-2.0View on GitHub
Main Agents: Do NOT use this skill directly. If you need to test the TUI, invoke the `tui_tester` subagent. Drive terminal UI (TUI) applications programmatically for testing, automation, and inspection. Use when: automating CLI/TUI interactions, regression testing terminal apps, or verifying interactive behavior. Also use when: user asks "what is agent-tui", "what does agent-tui do", "demo agent-tui", "show me agent-tui", "how does agent-tui work", or wants to see it in action.
- Pipes a download into a shell
- Installs packages
1 other project uses a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- pproenca/agent-tuitheir own version, first seen Jan 24, 2026
Who's talking about google-gemini/gemini-cli
- A Hacker News story“It looks like the status/need-triage label was removed”Hacker News · Jan 22, 2026 · 303 points
- agentskills/agentskills“Proposal: include a standard folder where agent skills should be”GitHub · Dec 19, 2025 · 271 reactions
- A Hacker News story“Addressing Antigravity Bans and Reinstating Access”Hacker News · Feb 28, 2026 · 254 points
- @ntaylormullen.bsky.social“This is truly a proud moment for me. For the past few months we've pushed non-stop to build Gemini CLI. …”Bluesky · Jun 25, 2025 · 106 likes
- github/copilot-cli“IME candidate window is misplaced, invisible, or detaches in CJK (Japanese) input”GitHub · Feb 26, 2026 · 52 reactions
The biggest 5 of 93 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 93
Talked about on Bluesky, Hacker News and GitHub (93 times).
On Bluesky · 50
- Jun 25, 2025This is truly a proud moment for me. For the past few months we've pushed non-stop to build Gemini CLI. It's been a journey, and I couldn't… — @ntaylormullen.bsky.social106 likes and reposts · 11 replies
- Jul 18, 2025The OSS community around Gemini CLI has been incredible, SO many thoughtful PRs coming in so we've been exploring ways to scale triage.… — @ntaylormullen.bsky.social13 likes and reposts · 1 reply
- Jun 25, 2025Gemini-CLI: Claude Code but for Gemini you had me at “high usage limits at no cost” github.com/google-gemin... — @timkellogg.me12 likes and reposts · 2 replies
- Aug 21, 2025Shout-out to our amazing OSS Gemini CLI community! The number of PRs & issues has been incredible. This Friday the team is doing a triage… — @ntaylormullen.bsky.social8 likes and reposts
- Jun 25, 2025¡Google acaba de lanzar su agente de IA para terminal! ✓ CLI para Gemini 2.5 Pro ✓ Contexto de 1 millón de tokens ✓ 60 peticiones/min y… — @midu.dev8 likes and reposts
45 more on Bluesky
- Jun 25, 2025きたわね github.com/google-gemin... — @izumiz.blue8 likes and reposts · 1 reply
- Jun 26, 2025Installed locally, it ensures code and data execution in the local environment, offering higher security and privacy for developers… — @luok.ai5 likes and reposts
- Jun 25, 2025🔖 "GitHub - google-gemini/gemini-cli: An open-source AI agent that brings the power of Gemini directly into your terminal."… — @lacolaco.bsky.social5 likes and reposts
- Jul 4, 2025deno install --global -A npm:@google/gemini-cli github.com/google-gemin... — @kitsonkelly.com4 likes and reposts · 1 reply
- Jun 28, 2025Hab gestern damit in einem virtuellen Ubuntu gespielt und muss sagen, das funktioniert beeindruckend schnell und gut. (Hab Code für einen… — @richardibk.bsky.social4 likes and reposts · 2 replies
- Oct 24, 2026📦 google-gemini / gemini-cli ⭐ 107,604 (+38) 🗒 TypeScript An open-source AI agent that brings the power of Gemini directly into your… — @github-trending.bsky.social3 likes and reposts
- Nov 16, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 google-gemini / gemini-cli ⭐ 82,704 (+148) 🗒 TypeScript An open-source AI agent that brings the power… — @github-trending-js.bsky.social3 likes and reposts
- Aug 28, 2025Humbled by the incredible community engagement during last Friday's Gemini CLI deep dive on issues and PRs! Get ready for another session… — @ntaylormullen.bsky.social3 likes and reposts
- Jun 26, 2025昨日ちょっとニュースになっていましたが、GoogleからもCUI版のAIコードアシスタント Gemini CLI が出ました。 github.com/google-gemin... Gemini 2.5 Proの1000リクエスト/月が無料のキャンペーン付きですが、Claude… — @gakuueda.bsky.social3 likes and reposts
- Oct 5, 2026https://github.com/google-gemini/gemini-cli https://aistudio.google.com/ https://aistudio.google.com/app/apikey #omarchy #agent #gemini — @npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy.momostr.pink.ap.brid.gy2 likes and reposts
- Aug 24, 2026📦 google-gemini / gemini-cli ⭐ 106,638 (+35) 🗒 TypeScript An open-source AI agent that brings the power of Gemini directly into your… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- May 12, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 google-gemini / gemini-cli ⭐ 103,766 (+110) 🗒 TypeScript An open-source AI agent that brings the power… — @github-trending-js.bsky.social2 likes and reposts · 2 replies
- Apr 1, 2026Gemini source code "leaked" under Apache 2.0 open source license github.com/google-gemin... #opensource #geminicli — @mapopa.bsky.social2 likes and reposts
- Nov 25, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 google-gemini / gemini-cli ⭐ 84,414 (+211) 🗒 TypeScript An open-source AI agent that brings the… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Oct 29, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 google-gemini / gemini-cli ⭐ 80,788 (+201) 🗒 TypeScript An open-source AI agent that brings the… — @github-trending-js.bsky.social2 likes and reposts
- Aug 7, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 google-gemini / gemini-cli ⭐ 67,640 (+302) 🗒 TypeScript An open-source AI agent that brings the… — @github-trending-js.bsky.social2 likes and reposts
- Jun 27, 2025google-gemini/gemini-cli: An open-source AI agent that brings the power of Gemini directly into your terminal. #SuggestedRead #devopsish… — @chrisshort.net2 likes and reposts
- Jun 25, 2025Gemini CLI has been released. it’s open source and free to use (limits apply) Curious about how it feels like github.com/google-gemin...… — @pacovk.bsky.social2 likes and reposts
- Jun 25, 2025タイムリーに Gemini CLI が公開されたので、Gemini ユーザとしては Claude Code の代替とはなるのかも?ですね github.com/google-gemin... — @micheam.com2 likes and reposts · 1 reply
- Jun 25, 2025Gemini just announced their AI agent CLI, so I need someone to do a head to head w/ Claude Code, Amp Code, Factory, Codex, Augment,… — @sherveen.bsky.social2 likes and reposts
- Oct 25, 20267. Google Gemini CLI Open Source Terminal Agent LINK 8. Why is AI generated language so hard to understand? LINK — @hackobar.bsky.social1 likes and repost · 1 reply
- Jul 13, 2026📦 google-gemini / gemini-cli ⭐ 105,932 (+33) 🗒 TypeScript An open-source AI agent that brings the power of Gemini directly into your… — @github-trending-js.bsky.social1 likes and repost
- May 22, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 google-gemini / gemini-cli ⭐ 104,426 (+114) 🗒 TypeScript An open-source AI agent that brings the power… — @github-trending-js.bsky.social1 likes and repost
- Mar 30, 2026Using ‘Gemini Cli’ and Google’s ‘AntiGravity’ for programming, makes it a pretty easy programming ride on Linux. Github link Gemini Cli:… — @ralfsplace.bsky.social1 likes and repost
- Feb 20, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 google-gemini / gemini-cli ⭐ 95,015 (+174) 🗒 TypeScript An open-source AI agent that brings the power… — @github-trending-js.bsky.social1 likes and repost
- Feb 5, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 google-gemini / gemini-cli ⭐ 93,651 (+139) 🗒 TypeScript An open-source AI agent that brings the power… — @github-trending-js.bsky.social1 likes and repost
- Dec 10, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 google-gemini / gemini-cli ⭐ 86,631 (+172) 🗒 TypeScript An open-source AI agent that brings the power… — @github-trending-js.bsky.social1 likes and repost
- Dec 2, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 google-gemini / gemini-cli ⭐ 85,542 (+154) 🗒 TypeScript An open-source AI agent that brings the power… — @github-trending-js.bsky.social1 likes and repost
- Nov 29, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 google-gemini / gemini-cli ⭐ 85,060 (+155) 🗒 TypeScript An open-source AI agent that brings the power… — @github-trending-js.bsky.social1 likes and repost
- Nov 20, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 google-gemini / gemini-cli ⭐ 83,712 (+304) 🗒 TypeScript An open-source AI agent that brings the… — @github-trending-js.bsky.social1 likes and repost
- Oct 10, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 google-gemini / gemini-cli ⭐ 78,576 (+176) 🗒 TypeScript An open-source AI agent that brings the power… — @github-trending-js.bsky.social1 likes and repost
- Oct 1, 2025No, the CLI is only for use with Gemini. github.com/google-gemin... — @charlesloder.bsky.social1 likes and repost · 1 reply
- Sep 11, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 google-gemini / gemini-cli ⭐ 74,677 (+191) 🗒 TypeScript An open-source AI agent that brings the power… — @github-trending-js.bsky.social1 likes and repost
- Aug 28, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 google-gemini / gemini-cli ⭐ 72,380 (+259) 🗒 TypeScript An open-source AI agent that brings the… — @github-trending-js.bsky.social1 likes and repost
- Aug 22, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 google-gemini / gemini-cli ⭐ 71,143 (+257) 🗒 TypeScript An open-source AI agent that brings the… — @github-trending-js.bsky.social1 likes and repost
- Aug 16, 2025Filing an issue on github is the way I would go github.com/google-gemin... — @boredabdel.bsky.social1 likes and repost · 1 reply
- Jul 25, 2025🎉 Celebrating! 🎉 (500+ new stars) 📦 google-gemini / gemini-cli ⭐ 63,893 (+505) 🗒 TypeScript An open-source AI agent that brings the… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Jul 24, 2025重要な背景: github.com/google-gemin... > Prerequisites: Ensure you have Node.js version 20 or higher installed. — @fractionist.bsky.social1 likes and repost
- Jun 27, 2025google-gemini/gemini-cli: An open-source AI agent that brings the power of Gemini directly into your terminal. #SuggestedRead #devopsish… — @chrisshort.net1 likes and repost
- Jun 27, 2025google-gemini/gemini-cli: An open-source AI agent that brings the power of Gemini directly into your terminal. #SuggestedRead #devopsish… — @chrisshort.net1 likes and repost
- Jun 26, 2025Gemini CLI: an open-source Gemini AI into your terminal (max 60 request per minute, 1K request per day) github.com/google-gemin...… — @fronkongames.bsky.social1 likes and repost
- Jun 26, 2025github.com/google-gemini/g... GitHub - google-gemini/gemini-cli: An open-source AI agent that brings the power of Gemini direc... — @technews4869.bsky.social1 likes and repost
- Jun 26, 2025Gemini CLI(github.com/google-gemin...) ってパイプで渡せるのでどっかのバッファに質問書いてshell-command-on-regionでgeminiを実行したら回答が貰える. 面白い… — @jtry.bsky.social1 likes and repost
- Jun 26, 2025Gemini CLIは、コードベースの編集やアプリ生成、タスク自動化ができるAIツールらしい。大規模なコードやPDFも扱え、Google検索との連携も可能なようだ。 yug1224 starred google-gemini/gemini-cli… — @yug1224.com1 likes and repost
- Jun 26, 2025GeminiCLIの無料枠がエグすぎて、もうこれだけでいいのではと思ってきた。もちろん今だけなのだろうけど、これを無料で体験できるのは本当にありがたい。 https://github.com/google-gemini/gemini-cli — @satbunch.bsky.social1 likes and repost
On Hacker News · 23
- Jan 22, 2026It looks like the status/need-triage label was removed303 points · 82 comments
- Feb 28, 2026Addressing Antigravity Bans and Reinstating Access254 points · 216 comments
- Mar 19, 2026Gemini CLI: mitigating abuse and prioritizing traffic7 points
- Mar 25, 2026Google Gemini bans OAuth with third parties blocking most OpenClaw users6 points · 1 comment
- Sep 19, 2025MacOS14.8、15.7 update breaks TMPDIR environment variable5 points · 2 comments
18 more on Hacker News
- Mar 26, 2026Gemini CLI not working for many users4 points · 4 comments
- Oct 2, 2025Gemini CLI tried to RF -RF / on my system4 points · 3 comments
- Oct 1, 2025Gemini CLI tried to rm -rf / on my system4 points · 2 comments
- Jul 6, 2025Gemini CLI not recognizing Gemini Code Assist subscription4 points · 1 comment
- Apr 1, 2026Gemini CLI is an open-source AI agent that brings Gemini into your terminal3 points · 1 comment
- Mar 19, 2026Gemini CLI Shake-Up: Abuse Controls and Traffic Priorities3 points
- Mar 2, 2026Got suspended while using headless mode with custom system prompt3 points
- Jan 16, 2026Gemini CLI bot infinite loop3 points
- Jan 4, 2026Agent Skills are coming to Gemini CLI3 points
- Sep 26, 2025Permission denied to temp folder in macOS 15.7 shortly after boot3 points
- Jun 26, 2025Google's Making a Move Gemini CLI Is Open-Source and Free3 points · 4 comments
- Jan 17, 2026GitHub Gemini-CLI block in a loop2 points
- Nov 18, 2025Gemini 3 in Gemini CLI2 points
- Oct 21, 2025Gemini CLI Loading Phrases2 points
- Aug 24, 2025Gemini CLI2 points
- Jun 27, 2025Gemini CLI2 points
- Jun 25, 2025Gemini-CLI: An open-source AI agent that brings the power of Gemini directly in2 points
- Apr 30, 2026Gemini CLI not working for 100s of paying users for more than a month1 point
On GitHub · 20
- Dec 19, 2025Proposal: include a standard folder where agent skills should be — agentskills/agentskills271 reactions · 130 comments
- Feb 26, 2026IME candidate window is misplaced, invisible, or detaches in CJK (Japanese) input — github/copilot-cli52 reactions · 6 comments
- Aug 27, 2025History‑linked checkpoints and file state restore — openai/codex49 reactions · 5 comments
- Nov 19, 2025AI: Gemini CLI doesn't work anymore!!!(vesion 0.16+ Error: read_many_files tool not found.) — zed-industries/zed44 reactions · 17 comments
- Jan 28, 2026Support `notifications/tools/list_changed` — openai/codex32 reactions · 5 comments
15 more on GitHub
- Jul 24, 2025Support ACP (agentic coding protocol) — QwenLM/qwen-code23 reactions · 11 comments
- Jun 25, 2025[Package request] gemini-cli — NixOS/nixpkgs23 reactions · 5 comments
- Jun 19, 2026Gemini Code Assist Standard account cannot use Antigravity CLI without Vertex AI pay-as-you-go permissions — google-antigravity/antigravity-cli15 reactions · 4 comments
- Dec 11, 2025[FEATURE] Improve the model's ability to follow instructions — anthropics/claude-code15 reactions · 14 comments
- Sep 19, 2026Google + Claude subscription OAuth policy: make third-party auth safe by default — can1357/oh-my-pi13 reactions · 10 comments
- Mar 9, 2026BUG: "Keychain is not available" — gemini-cli-extensions/nanobanana12 reactions · 7 comments
- Jul 3, 2025gemini-cli: 0.1.7 -> 0.1.9 — NixOS/nixpkgs8 reactions · 18 comments
- Jun 25, 2025fix: handle null/undefined type fields in schema transformers — googleapis/js-genai7 reactions · 4 comments
- Jan 12, 2026gemini-cli-bin: 0.22.5 -> 0.24.4 and use `ripgrep` from nixpkgs — NixOS/nixpkgs4 reactions · 4 comments
- Aug 2, 2025feat: Refactor workflows to use custom commands — google-github-actions/run-gemini-cli3 reactions · 3 comments
- Jul 17, 2025Define "MCP Sandbox Interface" and implement `limactl mcp serve` — lima-vm/lima3 reactions · 14 comments
- Nov 17, 2026feat(providers): add agy-acp provider for Google Antigravity CLI — aaif-goose/goose2 reactions · 2 comments
- Jun 23, 2026Add bigquery-basics skill — Kilo-Org/kilo-marketplace2 reactions · 1 comment
- May 5, 2026Add Gemini and Rovo Dev session hooks — manaflow-ai/cmux2 reactions · 9 comments
- May 1, 2026fix(api-proxy): set GOOGLE_GEMINI_BASE_URL to route Gemini CLI through sidecar — github/gh-aw-firewall0 reactions · 21 comments
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- pproenca/agent-tui★ 119same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- async-pr-reviewSkill
- behavioral-evalsSkill
- ciSkill
- code-reviewerSkill
- docs-changelogSkill
- docs-writerSkill
- github-issue-creatorSkill
- pr-address-commentsSkill
- pr-creatorSkill
- review-duplicationSkill
- string-reviewerSkill
- tui-testerSkill
- greeterSkill
- antigravity-supportSkill
- skill-creatorSkill
- pirate-skillSkill
- code_explorerSkill
- effortSkill
- qualitySkill
- spec_generatorSkill
- critiqueSkill
- memorySkill
- metricsSkill
- prsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 6 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
When using agent-tui in this macOS environment, the default background daemonization process crashes, causing Connection refused (os error …
- Very specific: line 31
When agent-tui run returns JSON, it includes both a session_id and a pid.
- Very specific: line 33
If the daemon crashes (os error 61), the pseudo-terminal is destroyed.
- Very specific: line 37
When testing the Gemini CLI with agent-tui, there are several strict requirements to ensure deterministic and accurate behavior:
- Very specific: line 40
Bypass Trust Modals: Always pass GEMINI_CLI_TRUST_WORKSPACE=true in the environment.
- Very specific: line 41
Isolated Environments: If you need to test without real user credentials or existing agents interfering, isolate the global settings using …
- Very specific: line 42
Testing State Deltas (e.g., Reloads): If you are testing features that report deltas (e.g., /agents reload outputting "1 new local …
- Distinctive: line 43
Start the CLI *first* so it establishes its baseline registry.
- Very specific: line 44
Use a separate shell command (outside of agent-tui) to write the new agent .md/.toml file.
- Very specific: line 45
Use agent-tui type and press to trigger the /agents reload command inside the running session.
- Distinctive: line 64
If not installed, use one of:
- Very specific: line 83
If you used the install script, ensure ~/.local/bin is on your PATH.
- Distinctive: line 116
Every time you need to interact with the UI:
- Very specific: line 149
Use screenshot --format json when parsing automation output, or plain screenshot for human readable text.
- Distinctive: line 258
Before automating any TUI, gather this information:
- Distinctive: line 267
If any of these are unclear, ask before running.
- Distinctive: line 271
When a user asks what agent-tui is, wants a demo, or asks "show me how it works":
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
🚨 CRITICAL: macOS Daemon Workaround & Gemini CLI Usage 🚨
When using agent-tui in this macOS environment, the default background daemonization process crashes, causing Connection refused (os error 61) errors.
You MUST start the daemon manually shielded from TTY hangups before running any agent-tui commands. Using nohup is insufficient; you must use tmux to provide a fully isolated pseudo-terminal.
To support parallel runs, only restart the daemon if it is not currently running:
# Check if daemon is alive, start it in tmux if it is not
if ! agent-tui sessions >/dev/null 2>&1; then
tmux kill-session -t agent-tui 2>/dev/null || true
agent-tui daemon stop 2>/dev/null || true
rm -f /tmp/agent-tui*
tmux new-session -d -s agent-tui 'agent-tui daemon start --foreground > /tmp/agent-tui-daemon.log 2>&1'
sleep 1
fiSession ID vs PID (Crucial for Reconnection)
When agent-tui run returns JSON, it includes both a session_id and a pid. The pid is purely informational (the OS process ID of the child command). You do not use the pid to reconnect or issue commands. You must always use the session_id (e.g., --session <id>).
If the daemon crashes (os error 61), the pseudo-terminal is destroyed. Even if the child pid survives as an orphan, you cannot reconnect to it. You must restart the daemon using the workaround above and start a completely new session.
Testing the Gemini CLI
When testing the Gemini CLI with agent-tui, there are several strict requirements to ensure deterministic and accurate behavior:
- Build Before Running:
agent-tuiruns the built JS files, not TypeScript. You MUST runnpm run buildornpm run build:allafter making code changes and before launching the CLI withagent-tui. - Bypass Trust Modals: Always pass
GEMINI_CLI_TRUST_WORKSPACE=truein the environment. If you don't, any new project-level agents or extensions will trigger a full-screen "Acknowledge and Enable" modal. This modal steals focus, swallows automation keystrokes, and causesagent-tui waitcommands to time out. - Isolated Environments: If you need to test without real user credentials or existing agents interfering, isolate the global settings using
GEMINI_CLI_HOME=<some-test-dir>. - Testing State Deltas (e.g., Reloads): If you are testing features that report deltas (e.g.,
/agents reloadoutputting "1 new local subagent"), you MUST:- Start the CLI first so it establishes its baseline registry.
- Use a separate shell command (outside of
agent-tui) to write the new agent.md/.tomlfile. - Use
agent-tui typeandpressto trigger the/agents reloadcommand inside the running session. - (If you add the files before starting the CLI, they become part of the baseline and won't trigger the delta logic).
# Example: Standard isolated run (sandboxed config + bypass trust modals)
env GEMINI_CLI_TRUST_WORKSPACE=true GEMINI_CLI_HOME=test-gemini-home agent-tui run -d "$(pwd)" node packages/cli/dist/index.jsTerminal Automation Mastery
Prerequisites
- Supported OS: macOS or Linux (Windows not supported yet).
- Verify install:
agent-tui --versionIf not installed, use one of:
# Recommended: one-line install (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/pproenca/agent-tui/master/install.sh | sh# Package manager
npm i -g agent-tui
pnpm add -g agent-tui
bun add -g agent-tui# Build from source
cargo install --git https://github.com/pproenca/agent-tui.git --path cli/crates/agent-tuiIf you used the install script, ensure ~/.local/bin is on your PATH.
Philosophy: Why Terminal Automation Is Different
Terminal UIs are stateless from the observer's perspective. Unlike web browsers with a persistent DOM, terminal automation works with a constantly-refreshed character grid. This fundamental difference shapes everything:
| Web Automation | Terminal Automation |
| DOM persists across interactions | Screen buffer is redrawn constantly |
| Selectors are stable | Text positions may shift |
| Query once, act many times | Must re-verify before EVERY action |
| Network events signal completion | Must detect visual stability |
The Core Insight: agent-tui gives you vision without memory. Each screenshot is a fresh observation. Previous state means nothing after the UI changes. This isn't a limitation—it's the nature of terminal interaction.
Mental Model: The Feedback Loop
Think of terminal automation as a closed-loop control system:
┌──────────────────────────────────────────────┐
│ │
▼ │
OBSERVE ──► DECIDE ──► ACT ──► WAIT ──► VERIFY ───┘
│ │
│ │
└─────── NEVER skip ◄────────────────────┘Each phase is mandatory. Skipping verification is the #1 cause of flaky automation.
The "Fresh Eyes" Principle
Every time you need to interact with the UI:
- Take a fresh screenshot — your previous one is now stale
- Locate your target visually — text positions may have changed
- Verify the state — the UI may have changed unexpectedly
- Act only when stable — animations and loading states cause failures
This feels slower, but it's the only reliable approach. Optimistic reuse of stale state causes intermittent failures that are painful to debug.
Critical Rules (Non-Negotiable)
RULE 1: Atomic Execution (No Pipelining) You are FORBIDDEN from chaining commands with
&&(e.g.,type "x" && press Enter && wait). Modals or UI updates can intercept your keystrokes. You MUST execute one atomic action, wait, screenshot, and verify before taking the next action in a new turn.
RULE 2: Re-snapshot after EVERY action The UI state is invalidated by any change. Always take a fresh screenshot before acting again.
RULE 3: Never act on unstable UI If the UI is animating, loading, or transitioning,
wait --stablefirst. Acting during transitions because race conditions.
RULE 4: Verify before claiming success Use
wait "expected text" --assertto confirm outcomes. Don't assume an action worked—prove it.
RULE 5: Error Recovery If a
waitcommand times out, DO NOT blindly restart or kill the session. Executescreenshotto visually diagnose what unexpected UI element (modal, error dialog, lost focus) intercepted the flow.
RULE 6: Clean up sessions Always end with
agent-tui kill. Orphaned sessions consume resources and can interfere with future runs.
Decision Framework
Which Screenshot Mode?
Use screenshot --format json when parsing automation output, or plain screenshot for human readable text.
How to Wait?
What are you waiting for?
│
├─► Specific text to appear
│ └─► `wait "text" --assert` (fails if not found)
│
├─► Specific text to disappear
│ └─► `wait "text" --gone --assert`
│
├─► UI to stop changing (animations, loading)
│ └─► `wait --stable`
│
└─► Multiple conditions
└─► Chain waits sequentiallyHow to Act?
What do you need to do?
│
├─► Type text into the terminal
│ └─► `type "text"`
│
├─► Send keyboard shortcuts/navigation
│ └─► `press Ctrl+C` or `press ArrowDown Enter`Core Workflow
The canonical automation loop:
# 1. START: Launch the TUI app
agent-tui run <command> [-- args...]
# 2. OBSERVE: Get current UI state
agent-tui screenshot --format json
# 3. DECIDE: Based on text, determine next action
# (This happens in your head/code)
# 4. ACT: Execute the action
agent-tui type "text"
agent-tui press Enter
# 5. WAIT: Synchronize with UI changes
agent-tui wait "Expected" --assert # or wait --stable
# 6. VERIFY: Confirm the outcome (often combined with step 5)
# If verification fails, handle the error
# 7. REPEAT: Go back to step 2 until done
# 8. CLEANUP: Always clean up
agent-tui killAnti-Patterns (What NOT to Do)
❌ Acting During Animation/Loading
# WRONG: Acting immediately on dynamic UI
agent-tui run my-app
agent-tui screenshot --format json # UI might still be loading!
agent-tui type "value" # ❌ Might miss the input field
# RIGHT: Wait for stability first
agent-tui run my-app
agent-tui wait --stable # Let UI settle
agent-tui screenshot --format json # Now it's reliable
agent-tui type "value"❌ Assuming Success Without Verification
# WRONG: Assuming the type worked
agent-tui type "value"
agent-tui press Enter
# ...proceed as if success... # ❌ What if it failed silently?
# RIGHT: Verify the outcome
agent-tui type "value"
agent-tui press Enter
agent-tui wait "Success" --assert # ✓ Proves the action worked❌ Skipping Cleanup
# WRONG: Forgetting to kill the session
agent-tui run my-app
# ...do stuff...
# script ends # ❌ Session left running!
# RIGHT: Always clean up
agent-tui run my-app
# ...do stuff...
agent-tui kill # ✓ Clean exitBefore You Start: Clarify Requirements
Before automating any TUI, gather this information:
- Command: What exactly to run? (
my-app --flagornpm start?) - Success criteria: What text/state indicates success?
- Input sequence: What keystrokes/data to enter, in what order?
- Safety: Is it safe to submit forms, delete data, etc.?
- Auth: Does it need login? Test credentials?
- Live preview: Does the user want to watch? (
agent-tui live start --open)
If any of these are unclear, ask before running.
Demo Mode: Showing What agent-tui Can Do
When a user asks what agent-tui is, wants a demo, or asks "show me how it works":
- Don't explain—demonstrate. Actions speak louder than words.
- Use the live preview so they can watch in real-time.
- Run
top—it's universal and shows dynamic real-time updates.
Quick demo trigger phrases:
- "What is agent-tui?" / "What does agent-tui do?"
- "Demo agent-tui" / "Show me agent-tui"
- "How does agent-tui work?" / "See it in action"
Failure Recovery
| Symptom | Diagnosis | Solution |
| "Text not found" | Stale view or text moved | Re-snapshot, locate text again |
| Wait times out | UI didn't reach expected state | Check screenshot, verify expectations |
| "Daemon not running" | Daemon crashed or not started | agent-tui daemon start |
| Unexpected layout | Wrong terminal size | agent-tui resize --cols 120 --rows 40 |
| Session unresponsive | App crashed or hung | agent-tui kill, then re-run |
| Repeated failures | Something fundamentally wrong | Stop after 3-5 attempts, ask user |
Self-Discovery: Use --help
You don't need to memorize every flag. The CLI is self-documenting:
agent-tui --help # List all commands
agent-tui run --help # Options for 'run'
agent-tui screenshot --help # Options for 'screenshot'
agent-tui wait --help # Options for 'wait'When in doubt, ask the CLI. This skill teaches when and why to use commands. For exact flags and syntax, --help is authoritative.
Quick Reference
# Start app
agent-tui run <cmd> [-- args] # Launch TUI under control
# Observe
agent-tui screenshot # Plain text view
agent-tui screenshot --format json # Machine-readable output
# Act
agent-tui press Enter # Press key(s)
agent-tui press Ctrl+C # Keyboard shortcuts
agent-tui type "text" # Type text
# Wait/Verify
agent-tui wait "text" --assert # Wait for text, fail if not found
agent-tui wait "text" --gone --assert # Wait for text to disappear
agent-tui wait --stable # Wait for UI to stop changing
# Manage
agent-tui sessions # List active sessions
agent-tui live start --open # Start live preview
agent-tui kill # End current sessionDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

