screenshot-time-machine AGENTS.md

screenshot-time-machine AGENTS.md is an instructions file for Codex, OpenCode from mdsohaib/screenshot-time-machine. It costs 979 tokens per session, scanned A, original, MIT.

Repository instructions for screenshot-time-machine, a Node command-line tool that captures full-page screenshots of local web pages and reports changes. They describe setup, code structure, rules, and checks required before opening a pull request.

In plain words
What is it for?
Setting up the repository, locating modules, running tests and linting, understanding project rules, and preparing a pull request.
Why use it?
They give contributors and coding agents the project context needed to make compatible changes and avoid breaking required checks.

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/mdsohaib/screenshot-time-machine/agents-md
Clone the repo
git clone --depth 1 https://github.com/mdsohaib/screenshot-time-machine

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 screenshot-time-machine AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mdsohaib/screenshot-time-machine/agents-md.svg)](https://agentmods.dev/instructions/mdsohaib/screenshot-time-machine/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mdsohaib/screenshot-time-machine/agents-md"><img src="https://agentmods.dev/badge/instructions/mdsohaib/screenshot-time-machine/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 979 This file is loaded in full into every session.
When invoked 979 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00979 $0.00979
Opus 5 $0.00490 $0.00490
Sonnet 5 $0.00196 $0.00196
Haiku 4.5 $0.00098 $0.00098

Measured 5d ago against content hash 1ec2df5fe7b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

screenshot-time-machine 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 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.

AGENTS.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 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 (humans and AI agents)

screenshot-time-machine (stm) is a small Node CLI: find the localhost app → discover pages → full-page screenshot each → dated folder + manifest.json → report which pages changed. Thousands of people will read this source. Optimize for readability, one runtime dependency, and excellent error messages.

Setup (5 commands)

git clone https://github.com/mdsohaib/screenshot-time-machine && cd screenshot-time-machine
npm ci
npm test                    # node:test: unit + CLI + e2e against the built-in fixture site
npm run fixture             # keeps the fixture site up on 127.0.0.1:<port> for manual runs
node bin/stm.js --url http://127.0.0.1:<port>

npm run check = TypeScript over JSDoc (checkJs, strict). npm run lint = Biome. Both run in CI.

Module map (v0.1)

File Owns
bin/stm.js Node-version guard, EPIPE guard, process.exitCode = await main()
src/cli.js util.parseArgs, subcommand dispatch, human summary strings
src/index.js run(options) / list(options), the programmatic API the tests call
src/detect.js localhost port probing, "several apps" resolution
src/discover.js URL normalization, link filtering, sitemap parsing (regex, no XML dep)
src/capture.js browser bootstrap (cached shell → chrome → msedge → install), per-page pipeline, worker pool, overlay handling
src/store.js snapshot folder naming, slug, incremental manifest, sha256 "changed", gitignore append
src/list.js stm list
src/types.d.ts Manifest, PageResult, RunOptions
skills/stm/SKILL.md the agent skill (stm skill prints it)
test/fixture/site.js the one fixture site (unit, e2e, CI smoke, GIF, benchmark)

Hard rules (a PR that breaks one will be closed)

  1. One runtime dependency (playwright-core, exact-pinned). No new dependency for XML, colors, args, tables, spinners. Use util.parseArgs, util.styleText, regex.
  2. No new flags or commands without an issue first. The answer is usually no. A good-first-issue never adds a flag.
  3. stdout is only the summary (human) or one JSON document (--json). Progress goes to stderr, and only when stderr is a TTY. --json prints ≤ 2 stderr lines.
  4. A failing page never aborts a run. Record it, continue, exit 2.
  5. stm never deletes anything. It writes only inside --out and may append one line to an existing .gitignore (announced).
  6. No page-derived text (titles, headings, body) in --json or the manifest. That output is read by AI agents, so it is a prompt-injection channel. Errors are truncated to 200 chars.
  7. No config file, no daemon/watch mode, no telemetry, no hooks or MCP servers in the plugin.
  8. Readability beats line count. Never golf. Boring over clever. execFile only, never shell: true.
  9. Vocabulary in user-facing strings: a folder is a "snapshot", a PNG is a "screenshot", URLs are "pages", the target is "your app". Never "routes", "dev server", "timeout" in human mode.
  10. You must understand your change. Using AI tools is fine. Submitting generated output you haven't reviewed and can't explain is not. Say in the PR if an agent wrote most of it.

Read the full file on GitHub · 53 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. 5d ago First seen · 53 lines · 979 tokens per session scan A 1ec2df5fe7b3

Subscribe to this mod's changes

screenshot-time-machine AGENTS.md is an instructions file published in the GitHub repository mdsohaib/screenshot-time-machine (4 stars, last pushed 7d ago), licensed MIT. It adds 979 tokens to every session, about $0.0049 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.

Related

Other instructions, from other repositories

agentic-playwright common-tasks.instructions.md

Instructions for idavidov13/agentic-playwright, covering ai prompt templates for agentic playwright, critical, instructions, phase 1: identify the task category and resolve paths and phase 2: select and customize the matching prompt template.

idavidov13/agentic-playwright · 5,109 tokens

agentic-playwright selectors.instructions.md

Instructions for idavidov13/agentic-playwright, covering selector strategy, critical, instructions, phase 1: open and authenticate and phase 2: explore like a user.

idavidov13/agentic-playwright · 2,174 tokens

vibe-testing CLAUDE.md

Claude Code instructions for AishwaryShrivastav/vibe-testing, covering vibe test — code-aware browser testing agent, what this project does, architecture, mcp tools (13) and development.

AishwaryShrivastav/vibe-testing · 1,145 tokens

antigravity-testing-kit GEMINI.md

Instructions for anhtester/antigravity-testing-kit, covering gemini ai - global automation agent rules, git pull restriction rule, browser rules (mandatory), 🖥️ viewport & mode and 🔄 thứ tự debug bắt buộc (playwright mcp).

anhtester/antigravity-testing-kit · 3,029 tokens

mcp-ie-migration-vrt AGENTS.md

AGENTS.md instructions for rayven122/mcp-ie-migration-vrt, covering agents.md, file map, architecture, conventions and adding a tool.

rayven122/mcp-ie-migration-vrt · 1,011 tokens

qa-use CLAUDE.md

Instructions for desplega-ai/qa-use, covering claude.md, project map and tech stack.

desplega-ai/qa-use · 3,216 tokens