tuitube: Instructions file for Codex

AGENTS.md

tuitube AGENTS.md is an instructions file for Codex, OpenCode from gitcoder89431/tuitube. It costs 1,807 tokens per session, scanned A, original, MIT.

Project-specific instructions for AI coding agents working on tuitube, a Go application with a text-based user interface. They describe where screens and commands belong and how the project is checked.

In plain words
What is it for?
Adding screens and keyboard commands, connecting them to the application, recording important events, and running the project's tests and build.
Why use it?
They reduce guesswork when adding features by documenting the existing structure, logging approach, and required checks.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is gitcoder89431/tuitube's own configuration. It tells Codex and OpenCode how to work on tuitube itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tuitube configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gitcoder89431/tuitube. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gitcoder89431/tuitube/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/gitcoder89431/tuitube

Made for: Codex, OpenCode.

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 tuitube AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/gitcoder89431/tuitube/agents-md/github.svg)](https://agentmods.dev/instructions/gitcoder89431/tuitube/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/gitcoder89431/tuitube/agents-md"><img src="https://agentmods.dev/badge/instructions/gitcoder89431/tuitube/agents-md/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 tuitube AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gitcoder89431/tuitube/agents-md"><img src="https://agentmods.dev/badge/instructions/gitcoder89431/tuitube/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,807 This file is loaded in full into every session.
When invoked 1,807 The same file — it is already loaded in full.
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.01807 $0.01807
Opus 5.5 $0.00723 $0.00723
Sonnet 5.5 $0.00361 $0.00361
Haiku 4.5 $0.00181 $0.00181

Measured 2mo ago against content hash 4784c02e91c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tuitube 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 2mo 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.

AGENTS.md · 216 lines

How it starts

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

AGENTS.md

Guidance for AI agents working in projects based on this template.

Project Intent

This is a personal Go TUI template built on the Charm stack (Bubble Tea v2, Lip Gloss v2, Bubbles). Treat the existing structure as the application shell — build product features on top of it, don't bypass the patterns it establishes.

Checklist for Adding a New Feature

Follow these steps in order. Run the verification commands before finishing.

  1. Add a screen in internal/screens/ implementing the screens.Screen interface (Init, Update, View, Title, KeyBindings).
  2. Register the screen in internal/app/app.go → registerScreens. Add its ID to the preferred slice in refreshScreenOrder if it belongs in the primary sidebar.
  3. Register a command in registerCommands (same file) so the screen is reachable via ctrl+k. Command Run functions must return a tea.Cmd that emits a message defined in internal/app/messages.go.
  4. Log key events via logs.Info / logs.Error so behavior is visible in the Logs screen (see Logging section below).
  5. Verify: go test ./... and go build ./cmd/tuitube must pass before committing.

Key Packages

Package Role
internal/app Root model — routing, overlays, keymap, theme, message dispatch
internal/screens Feature screens implementing screens.Screen
internal/commands Command palette entries and registry
internal/app/messages.go All app-level message types — add new ones here
internal/debug In-memory log surfaced in the Logs screen
internal/theme Semantic styles and theme definitions
internal/layout Terminal size and region calculations

Logging

Always log via internal/debug.Log — never fmt.Println or panic. Use the prefix convention package.Operation so log entries are easy to grep.

// info
logs.Info("myscreen.Load: loaded 42 items")

// error
logs.Error("myscreen.Load", err)
// produces: "ERROR myscreen.Load: <err message>"

Read the full file on GitHub · 216 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. 2mo ago First seen · 216 lines · 1,807 tokens per session scan A 4784c02e91c0

Subscribe to this mod's changes

tuitube AGENTS.md is an instructions file published in the GitHub repository gitcoder89431/tuitube (10 stars, last pushed 1mo ago), licensed MIT. It adds 1,807 tokens to every session, about $0.0072 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-08-31.

Related

tuitube AGENTS.md compared with instructions from other repositories

tuitube AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tuitube AGENTS.mdgitcoder89431/tuitubeInstructions file101mo agoMITA1,807Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode