Getting it into your agent
There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.
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.
[](https://agentmods.dev/instructions/hegner123/tui-test-ghost/claude-md)<a href="https://agentmods.dev/instructions/hegner123/tui-test-ghost/claude-md"><img src="https://agentmods.dev/badge/instructions/hegner123/tui-test-ghost/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01425 | $0.01425 |
| Opus 5 | $0.00713 | $0.00713 |
| Sonnet 5 | $0.00285 | $0.00285 |
| Haiku 4.5 | $0.00143 | $0.00143 |
Grade A, and why
tui-test-ghost CLAUDE.md 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
tui-test-ghost — TUI Testing Toolkit
What This Is
A Zig-native TUI testing toolkit built on Ghostty's ghostty-vt terminal emulation core. Tests TUI applications by spawning them in a PTY, feeding output through a real terminal emulator, and exposing structured screen state for programmatic assertion.
Build Commands
zig build # Build library + executable
zig build test # Run all tests
zig build run # Run MCP server / CLI
just build # Same via justfile
just test # Same via justfile
just fmt # Run zig fmt
Architecture
See PLAN.md for full architecture, milestones, and step definitions.
Data flow: TUI Process → PTY → ReadonlyStream → ghostty-vt Terminal → Screen Query API → MCP/CLI
Threading: Single-threaded with explicit drain. No background threads.
TigerStyle (Mandatory)
Every function in this codebase MUST follow TigerStyle:
- >=2 assertions per function — pre/postconditions, paired at call+definition sites
- 70-line function limit — extract helpers, push
ifs up andfors down - No recursion — all iteration via bounded loops
- Static allocation — all memory allocated at init, no dynamic allocation after startup
- Explicitly-sized types —
u16,u32,u64, notusize(except where Zig stdlib demands it) - Named arguments via options struct when parameters could be confused
- No hidden control flow — no async callbacks, no background goroutines
- All errors handled — no
_for errors, wrap with context - Compile-time assertions for constant relationships
deferfor postconditions where applicable
Reference: https://github.com/tigerbeetle/tigerbeetle/blob/main/docs/TIGER_STYLE.md
Key Dependencies
| Dependency | Location | What It Provides |
|---|---|---|
| ghostty-vt | /Users/home/Documents/Code/ghostty/ |
Terminal emulation core |
| Zig 0.15.2 | /Users/home/Documents/Code/Zig/0.15.2/ |
Compiler + stdlib |
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.
- 5d ago First seen · 119 lines · 1,425 tokens per session scan A f0675810013c
tui-test-ghost CLAUDE.md is an instructions file published in the GitHub repository hegner123/tui-test-ghost (2 stars, last pushed 3mo ago), licensed MIT. It adds 1,425 tokens to every session, about $0.0071 per session on Opus 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-08-31.
Other instructions, from other repositories
terminal AGENTS.md
Instructions for browser-use/terminal, covering agent notes, rust rewrite verification loop and terminal ui testing standard.
hex1b AGENTS.md
AGENTS.md instructions for mitchdenny/hex1b, covering ai coding agent guidelines for hex1b, 🛠️ available skills, 📋 project overview, key technologies and repository layout.
waveloom AGENTS.md
AGENTS.md instructions for Menfre01/waveloom, covering waveloom, 项目概要, 编码规范, 代码审查 and 开发流程.
unifly AGENTS.md
Instructions for hyperb1iss/unifly, covering agents.md, what this repository is, quick command reference, the canonical "before commit" gate and individual gates.
architect CLAUDE.md
Claude Code instructions for forketyfork/architect, covering claude.md (symlinked as agents.md), project, build & run, worktree bootstrap (run in a fresh worktree) and environment activation.
r3bl-open-core AGENTS.md
AGENTS.md instructions for r3bl-org/r3bl-open-core, covering agent instructions for r3bl-open-core, ai agent security & system integrity mandates, 1. critical directory protection, 2. ownership & integrity and 3. execution safety.