retrace: Instructions file for Codex

AGENTS.md

retrace AGENTS.md is an instructions file for Codex, OpenCode from haseab/retrace. It costs 5,833 tokens per session, scanned C, original, MIT.

An AGENTS.md guide for Retrace, a macOS app that records screens, reads text from them with OCR, and makes the recordings searchable locally. AGENTS.md is a standard file containing instructions for coding agents.

In plain words
What is it for?
Understanding Retrace’s current features and project structure, finding the right build and test instructions, and preparing or reporting bug fixes.
Why use it?
It gives agents shared project context, module-specific rules, and safety guidance before they change the code.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/haseab/retrace/agents-md"><img src="https://agentmods.dev/badge/instructions/haseab/retrace/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,833 This file is loaded in full into every session.
When invoked 5,833 The same file — it is already loaded in full.
Security scan C 1 finding. 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.05833 $0.05833
Opus 5.5 $0.02333 $0.02333
Sonnet 5.5 $0.01167 $0.01167
Haiku 4.5 $0.00583 $0.00583

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

Security

Grade C, and why

retrace AGENTS.md scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf .build/
AGENTS.md · 501 lines

How it starts

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

Retrace - Agent Guide

Standard: This file follows the AGENTS.md specification - a vendor-agnostic standard for AI agent guidance. For human-readable project information, see README.md.

Retrace is a local-first screen recording and search application for macOS, inspired by Rewind AI. It captures screens, extracts text via OCR, and makes everything searchable—all locally on-device.

Status: Core screen capture (CGWindowListCapture), OCR (Vision), full-text search (FTS5), HEVC encoding, and Rewind import are working. Audio transcription and vector search are planned for future releases.


Quick Reference

  • Module-Specific Instructions: Each module has its own AGENTS.md file in its directory
  • Human Documentation: README.md, CONTRIBUTING.md, and AI_ISSUE_TEMPLATE.md
  • Issue Reporting: Use AI_ISSUE_TEMPLATE.md and gh issue create --body-file ... for AI-authored GitHub issues
  • Bug Fixes by Non-Owners: If the user is fixing a bug/crash and does not appear to be the repo owner, encourage them to create or link a GitHub issue before making code changes
  • Technical Audit Docs: local/docs/ (includes deep-dive implementation and performance audit notes)

Project Commands

Cloudflare Accounts

  • Use the installed account wrappers: wrangler personal ... and wrangler work .... Do not use bare wrangler commands.
  • wrangler personal selects the personal Cloudflare account ([email protected]); use it for Retrace's retrace R2 bucket and release DMG uploads.
  • wrangler work selects the work Cloudflare account ([email protected]); use it for work resources, not Retrace's release bucket.
  • Verify identity and resource access with the selected wrapper, for example wrangler personal whoami and wrangler personal r2 bucket list. A successful identity check alone does not prove R2 permission.
  • Upload releases with wrangler personal r2 object put retrace/Retrace-v<VERSION>.dmg --file=<DMG_PATH> --remote, then verify the public artifact before deploying the appcast.

Read the full file on GitHub · 501 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 · +11 lines · +266 tokens per session 7e2e16270a00
  2. 2mo ago First seen · 490 lines · 5,567 tokens per session scan C 8750a1c90aed

Subscribe to this mod's changes

retrace AGENTS.md is an instructions file published in the GitHub repository haseab/retrace (166 stars, last pushed yesterday), licensed MIT. It adds 5,833 tokens to every session, about $0.0233 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

retrace AGENTS.md compared with instructions from other repositories

retrace AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
retrace AGENTS.mdhaseab/retraceInstructions file166yesterdayMITC5,833Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot