tui-navigator

tui-navigator is an agent for Claude Code from MadAppGang/magus. It costs 198 tokens per session (2,875 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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tui-navigator

Your own site · 80×15
<a href="https://agentmods.dev/agents/madappgang/magus/tui-navigator"><img src="https://agentmods.dev/badge/agents/madappgang/magus/tui-navigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 198 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,875 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.00198 $0.02875
Opus 5.5 $0.00079 $0.01150
Sonnet 5.5 $0.00040 $0.00575
Haiku 4.5 $0.00020 $0.00287

Measured 16d ago against content hash 3eb9e91ddb4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 16d ago.

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 · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 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 · 159 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. 16d ago Changed · +1 lines 3eb9e91ddb4d
  2. 1mo ago Changed · +32 lines · +198 tokens per session af4d4b714757
  3. 1mo ago Changed · -46 lines 5e6f31099eb7
  4. 1mo 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 (13 stars, last pushed yesterday), licensed MIT. It adds 198 tokens to every session and 2,875 once invoked, about $0.0008 per session on Opus 5.5. 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.