tui-navigator

tui-navigator is an agent for Claude Code from MadAppGang/magus. It costs 0 tokens per session (2,225 once invoked), scanned A, original, MIT.

An agent for multi-step work in interactive terminal programs and tmux sessions. It can read screens, send keystrokes, keep sessions running, and inspect changing output.

In plain words
What is it for?
Use it to navigate terminal applications, run database queries, start or stop development servers, monitor tests and builds, observe existing panes, and handle interactive deployment commands.
Why use it?
Interactive programs such as database shells, editors, server processes, and test watchers need ongoing state rather than a single command and response.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the terminal plugin — 5 skills, 7 commands, 1 agent shipped together

Good fit Use it to navigate terminal applications, run database queries, start or stop development servers, monitor tests and builds, observe existing panes, and handle interactive deployment commands.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MadAppGang/magus
Claude Code
/plugin install terminal

Made for: Claude Code.

Or install terminal, the plugin that ships this one along with the rest of its 5 skills, 7 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tui-navigator

README.md
[![agentmods](https://agentmods.dev/badge/agents/madappgang/magus/tui-navigator.svg)](https://agentmods.dev/agents/madappgang/magus/tui-navigator)
Your own site
<a href="https://agentmods.dev/agents/madappgang/magus/tui-navigator"><img src="https://agentmods.dev/badge/agents/madappgang/magus/tui-navigator.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,225 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02225
Opus 5 $0.00000 $0.01112
Sonnet 5 $0.00000 $0.00445
Haiku 4.5 $0.00000 $0.00222

Measured today against content hash 5e6f31099eb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

tui-navigator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/terminal/agents/tui-navigator.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

tui-navigator Agent

The tui-navigator agent specializes in interactive terminal workflows that require screen reading, keystroke injection, and stateful multi-step interaction with TUI applications. It acts as the "hands and eyes" in the terminal, analogous to how the browser automation agent interacts with web pages.

Every tool is addressed by slot -- an integer 1-64, omitted = 1 -- and nothing else. Slot 1 is the visible helper pane beside the user; private work takes isolated: true on slot 2 or higher. The same number returns the same pane every time, and no slot is ever the agent's own pane.

When This Agent is Delegated To

  • TUI navigation: vim, nano, htop, btop, lazygit, tig, k9s, or any full-screen terminal application
  • Interactive REPL sessions: psql, mongosh, redis-cli, node, python3, irb -- multi-step query sessions
  • Server lifecycle management: starting, monitoring, and cleanly stopping development servers
  • Parallel work: several commands at once in separate slots (unit tests + integration tests)
  • Process monitoring: long-polling for server readiness, build completion, or test results
  • Deployment monitoring: cloud deploys (fly, railway, vercel) with interactive prompts
  • Database migrations and interactive scaffolding: runs that show confirmation prompts or ask questions
  • Side-by-side panes: "open on a side", "split terminal", "show alongside", "run beside me" -- run it in visible slot 1

Do NOT delegate when a Bash one-liner does the job, no screen reading or keystrokes are needed, or the command completes non-interactively.

Workflow Pattern

Pattern 1: Isolated Task (nothing appears beside the user)

OPTION A: Quick one-shot command (synchronous, ephemeral -- no slot, no cleanup):
1. mcp__plugin_terminal_mux__execute-command({ command, isolated: true })
   → { output, exitCode, timedOut }

OPTION B: Long-running / interactive (an isolated slot you address later):
1. mcp__plugin_terminal_mux__start-and-watch({
     slot: 2, isolated: true, command: "...", pattern: "ready|done|\\$", timeout: 60
   }) → WatchResult ({ slot: 2, created: true, event, detail, elapsed, output, paneState })
2. Parse WatchResult.event and WatchResult.output
3. Further calls name { slot: 2 } only -- never pass isolated again
4. mcp__plugin_terminal_mux__close-pane({ slot: 2 })  → [{ "slot": 2, "action": "killed" }]

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · -46 lines 5e6f31099eb7
  2. 4d ago First seen · 172 lines · 0 tokens per session scan A 984858a83133

Subscribe to this mod's changes

tui-navigator is an agent published in the GitHub repository MadAppGang/magus (9 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,225 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other agents, from other repositories

CI Accessibility

CI/CD accessibility agent. Conversational agent for setting up, managing, and troubleshooting accessibility CI pipelines. Supports baseline management (fail only on regressions), SARIF output for GitHub code scanning, PR annotations, and threshold configuration. Works with GitHub Actions, Azure DevOps, GitLab CI…

Community-Access/accessibility-agents · 69 tokens

pr-test-analyzer

Use this agent when you need to review a pull request for test coverage quality and completeness. This agent should be invoked after a PR is created or updated to ensure tests adequately cover new functionality and edge cases.

rjmurillo/ai-agents · 46 tokens

test-pipeline-agent

Test pipeline configuration specialist. Configures PHPUnit, code coverage, test suites, and CI test integration for PHP projects.

dykyi-roman/awesome-claude-code · 28 tokens

release-agent

Automated release orchestration with quality gates, smoke test integration, and deployment coordination.

FortiumPartners/ensemble · 19 tokens

hydra-runner

🟢 Hydra's execution head — fast test runner, build executor, and validation agent. Use proactively whenever Claude needs to run tests, execute builds, check linting, verify formatting, run type checks, check git status, execute simple scripts, or validate that changes work. Runs on the cheap tier for speed — ideal…

AR6420/Hail_Hydra · 105 tokens

qa-architect

Reviews test strategy, pyramid distribution, coverage quality, CI gating, and test-environment fidelity.

davistroy/claude-marketplace · 23 tokens