vidtheque: Instructions file for Codex

AGENTS.md

vidtheque AGENTS.md is an instructions file for Codex, OpenCode from T0mSIlver/vidtheque. It costs 1,331 tokens per session, scanned A, original, MIT.

Repository instructions for vidtheque, a tool that turns followed videos into timestamped, receipt-backed knowledge for people and their AI agents.

In plain words
What is it for?
Use them when planning work, changing the MCP or worker components, consulting project evidence, or checking boundaries such as the required HTTP-only connection.
Why use it?
They define which design, product, research, and roadmap documents take priority, while recording rules learned from past incidents. This helps agents avoid conflicting or outdated guidance.

Instructions file for CodexOpenCode

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

This is T0mSIlver/vidtheque's own configuration. It tells Codex and OpenCode how to work on vidtheque 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 vidtheque configures →

Reuse

Borrowing it

Nothing to install: this file belongs to T0mSIlver/vidtheque. 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/T0mSIlver/vidtheque/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/T0mSIlver/vidtheque

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/t0msilver/vidtheque/agents-md"><img src="https://agentmods.dev/badge/instructions/t0msilver/vidtheque/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,331 This file is loaded in full into every session.
When invoked 1,331 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.01331 $0.01331
Opus 5.5 $0.00532 $0.00532
Sonnet 5.5 $0.00266 $0.00266
Haiku 4.5 $0.00133 $0.00133

Measured 7d ago against content hash d319ef9d4fce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vidtheque 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 7d 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 · 98 lines

How it starts

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

AGENTS.md — how to work in this repo

vidtheque turns the videos you follow into timestamped, receipt-backed knowledge for you and your agents. Owner: Tom Vaucourt. MIT. This file is the working conventions, kept short because it loads into every session; the product itself is explained in README.md and docs/README.md.

Ground truth, in order

  1. docs/design/*.md — the contracts (DECISIONS.md outranks the rest). If implementation must diverge, amend the contract in the same commit and say why. positioning.md is LOCKED: all public-facing copy follows it.
  2. research/ — append-only evidence (index: research/README.md; founding decisions: research/HANDOFF-2026-08-08.md). Add dated sections; never rewrite or delete.
  3. DESIGN.md + PRODUCT.md — the visual contract for the web surfaces.
  4. This file — conventions only. Any doc above wins.

docs/ROADMAP.md is the only list of open work — a backlog inside a dated document is a snapshot and goes stale silently. docs/LESSONS.md holds the operational rules an incident or a launch paid for.

Invariants — never change these without Tom

  • mcp/ ↔ worker/ is HTTP only. No Python imports across the boundary, not even in tests. The worker is stateless inference; all state lives in mcp/.
  • Two time axes, never overloaded: published_* picks videos, offset_* picks positions inside one.
  • all means all — a filter that can't apply to a leg prints a note:, never silently narrows.
  • Token discipline: middle-truncation with a documented 0 opt-out, pagination hints printed in payloads, double caps (items AND chars), expensive paths bounded independently of limit, server-side clamps — never prompt-only limits.
  • Frames by authenticated URL by default; inline base64 is the opt-in, with the correct mimeType.
  • has_more over exact totals; relevance-first ordering, order explicit.

Working here

  • Python 3.12, uv workspace (mcp/, worker/). make test is CPU-only and must stay green — tests never download models or need a GPU. make bench is manual, Tom's box only.
  • Deterministic builds: committed uv.lock, digest-pinned CUDA base image. Dependency bumps are deliberate commits, not side effects.
  • deploy/.env.example is the document of record for every env var — a new env without an entry there is a bug.
  • No self-hosted CI runners, ever (public repo, drive-by PR risk).
  • Tom's box (3090, llama.cpp VRAM lease via GPU_ACQUIRE_CMD hooks) is context for deploy work, not a shipped default — see the founding handoff.
  • web/ is the Next.js front end (pnpm, TypeScript, CSS Modules), a separate deployable over the /api/* facade. DESIGN.md's no-build-step rule binds the Python-served pages, not web/. pnpm lint and tsc --noEmit green.
  • Comments are short why-comments (1–3 lines; a § pointer is fine). Rationale lives in docs/, decisions in DECISIONS.md, incidents in LESSONS.md.

Read the full file on GitHub · 98 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. 7d ago Changed · +17 lines · +225 tokens per session d319ef9d4fce
  2. 1mo ago Changed · +2 lines · +45 tokens per session 6c435e558b0b
  3. 1mo ago Changed · +3 lines · +71 tokens per session 76fa5e021708
  4. 1mo ago First seen · 76 lines · 990 tokens per session scan A 307ec661622c

Subscribe to this mod's changes

vidtheque AGENTS.md is an instructions file published in the GitHub repository T0mSIlver/vidtheque (3 stars, last pushed 7d ago), licensed MIT. It adds 1,331 tokens to every session, about $0.0053 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

Other instructions, from other repositories