spotatui AGENTS.md

spotatui AGENTS.md is an instructions file for Codex, OpenCode from LargeModGames/spotatui. It costs 9,046 tokens per session, scanned A, a copy of spotatui copilot-instructions.md, MIT.

Repository instructions for coding agents working on the Spotatui Rust music application. They cover the same build variants, feature combinations, formatting, lint checks, tests, and CI expectations as the related Copilot instructions.

In plain words
What is it for?
Building Spotatui, selecting slim or alternative-source modes, formatting code, running Clippy and tests, and following the repository’s CI workflow.
Why use it?
They provide repeatable commands for local development and explain which checks must pass before opening a pull request.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/largemodgames/spotatui/agents-md
Clone the repo
git clone --depth 1 https://github.com/LargeModGames/spotatui

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/largemodgames/spotatui/agents-md.svg)](https://agentmods.dev/instructions/largemodgames/spotatui/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/largemodgames/spotatui/agents-md"><img src="https://agentmods.dev/badge/instructions/largemodgames/spotatui/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 9,046 This file is loaded in full into every session.
When invoked 9,046 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 97% copy Near-identical to another mod 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 $0.09046 $0.09046
Opus 5 $0.04523 $0.04523
Sonnet 5 $0.01809 $0.01809
Haiku 4.5 $0.00905 $0.00905

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

Security

Grade A, and why

spotatui 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 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.

Origin

This is a copy

97% identical to spotatui copilot-instructions.md — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 583 lines

How it starts

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

AGENTS.md

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.

This file is maintained as three near-identical copies: CLAUDE.md, AGENTS.md, and .github/copilot-instructions.md (only the opening lines differ). Edit all three together.

Build & Run

# Full build (native streaming + audio viz + Lua scripting + OS integrations)
cargo run

# Slim build - no librespot/audio/scripting; fastest iteration, one of CI's seven legs
cargo run --no-default-features --features telemetry,tui

# With the alternative sources (Local/Subsonic/Radio/YouTube/Qobuz). These are NOT
# in `default`, so a plain `cargo run` is Spotify-only; use the `all-sources` alias
# (or list them individually) to exercise the first-run source picker and playback.
cargo run --features all-sources

CI Checks (run before opening a PR)

cargo fmt --all
cargo clippy --no-default-features --features telemetry,tui -- -D warnings
cargo test --no-default-features --features telemetry,tui

These slim commands are the fast local gate, not the full picture. GitHub Actions (.github/workflows/ci.yml) runs check, test, and clippy on ubuntu-latest across a seven-leg feature matrix, plus one macos-latest job (below):

Leg Features
default a plain cargo test: streaming + audio-viz-cpal + scripting + self-update + OS integrations
all-sources the Linux release feature set from cd.yml (adds cover-art, mcp-server, ai-dj, audio-viz, all five sources)
mcp-only telemetry,tui,mcp-server
ai-dj-only telemetry,tui,ai-dj
slim telemetry,tui
headless telemetry - one of two legs without tui. mod tui is feature-gated, so this leg turns any crate::tui import from core/infra/cli into a compile error - what keeps a second frontend from silently re-coupling to the terminal one
headless-streaming telemetry,streaming - check + clippy only, no test job. Proves native-streaming startup (runtime/streaming/) and the player-event wiring type-check and pass clippy with no terminal frontend in scope. Its two entry points carry allow(dead_code) there, so the leg does not prove they are live

Read the full file on GitHub · 583 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 · +82 lines · +1,535 tokens per session 99fbb6d0da8d
  2. 4d ago First seen · 501 lines · 7,511 tokens per session scan A 27947f3495df

Subscribe to this mod's changes

spotatui AGENTS.md is an instructions file published in the GitHub repository LargeModGames/spotatui (1,302 stars, last pushed yesterday), licensed MIT. It adds 9,046 tokens to every session, about $0.0452 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to spotatui copilot-instructions.md, differing in 4 lines, and is treated as a copy.