Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/pproenca/agent-tui/agents-mdgit clone --depth 1 https://github.com/pproenca/agent-tuiWhat 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 | $0.01311 | $0.01311 |
| Opus 5 | $0.00656 | $0.00656 |
| Sonnet 5 | $0.00262 | $0.00262 |
| Haiku 4.5 | $0.00131 | $0.00131 |
Grade A, and why
agent-tui AGENTS.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 2d 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 — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
agent-tui — Agent Guide
CLI tool that enables AI agents to programmatically drive terminal applications. Manages PTY sessions via a background daemon with JSON-RPC WebSocket API and embedded web UI.
Non-Negotiable Rules
- Dependencies flow forward only.
common → domain → usecases → adapters/infra → app → facade. No reverse imports. Validated byjust boundariesand CI. - No panics in production code.
unwrap_usedandexpect_usedare denied workspace-wide. Use?,anyhow::Context, orthiserrortypes. Tests may unwrap. - No blocking in async context.
std::thread::sleep, unbounded channels, andstd::process::exit(exceptmain.rs) are banned via Clippy disallowed methods. - All errors use structured types. Domain errors use
thiserror; infra/app errors useanyhowwith.context(). Never swallow errors silently. - Facade crate is a shell.
cli/crates/agent-tui/contains onlymain.rs,lib.rs, andbin/*.rs. All logic lives in layer crates.
Repository Map
| Path | What it contains |
|---|---|
ARCHITECTURE.md |
Domain boundaries, dependency graph, layer descriptions, where new code goes |
docs/design-docs/ |
Design history, core beliefs, architectural decisions |
docs/api/ |
OpenAPI + AsyncAPI specs, example clients (Rust, JS) |
docs/ops/ |
Process model, deployment patterns |
docs/agents/ |
Matt Pocock engineering workflow config: issue tracker, labels, project board, and domain docs |
docs/cli/ |
Auto-generated CLI reference (do not hand-edit) |
cli/docs/architecture/ |
Clean Architecture target state and dependency matrix |
cli/docs/plans/ |
Historical refactor/restructure plans |
.harness/ |
Machine-readable harness config (domains, principles, enforcement, quality) |
skills/ |
Agent skill definitions and references |
Tech Stack
- Rust 1.88+ (2024 edition) — Tokio async runtime, Axum WebSocket server, Clap CLI
- TypeScript/Bun — Web UI with xterm.js terminal emulator
- Build: Cargo workspace (8 crates) +
justtask runner - Key deps:
portable-pty,tracing,serde,crossterm
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.
- 2d ago First seen · 100 lines · 1,311 tokens per session scan A f7ae6c3f31f3
agent-tui AGENTS.md is an instructions file published in the GitHub repository pproenca/agent-tui (113 stars, last pushed 3d ago), licensed MIT. It adds 1,311 tokens to every session, about $0.0066 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-30.
Other instructions, from other repositories
spacevibe-deck AGENTS.md
Instructions for mxrsv/spacevibe-deck, covering agents.md — spacevibe deck, current direction, forks, verification and commands and layout.
Codex-web AGENTS.md
Instructions for bproject07/Codex-web, covering repository guide for coding agents, mission, repository map, before changing anything and platform launch invariant.
tower-mcp AGENTS.md
Instructions for joshrotenberg/tower-mcp, covering agents.md, available mcp servers, tower-mcp-example, weather and codegen-mcp.
zashiki CLAUDE.md
Instructions for kounetsuman/zashiki, covering zashiki development conventions, comment conventions, testing, documentation (where design, specs, and context live) and issues vs. discussions.
Codex-web CLAUDE.md
Instructions for bproject07/Codex-web: Read and follow AGENTS.md before editing this repository. It is the authoritative operational contract and contains the product invariants, security boundaries, and required CI checks.
spacevibe-deck CLAUDE.md
Instructions for mxrsv/spacevibe-deck, a project described as: SpaceVibe Deck — a minimal macOS terminal for AI agent CLIs.