autoclip: Instructions file for Codex

AGENTS.md

autoclip AGENTS.md is an instructions file for Codex, OpenCode from zhouxiaoka/autoclip. It costs 699 tokens per session, scanned A, original, MIT.

A repository instruction file for the AutoClip project. It lists required checks and procedures for changing code, diagnosing defects, testing, and preparing releases.

In plain words
What is it for?
Use it when modifying AutoClip, investigating a production problem, running its quality gate, or preparing a release.
Why use it?
It gives coding agents project-specific rules so they do not skip required tests, mishandle user data, or claim a release is ready without the specified quality checks.

Instructions file for CodexOpenCode

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

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

About the project

AutoClip is an AI video-processing system that downloads videos, finds notable moments, cuts them into clips, and groups the results into collections. It is for people who want to turn YouTube, Bilibili, or uploaded videos into highlight content, and its catalogue add-ons extend the system's workflows.

zhouxiaoka/autoclip · 9,702 stars · on GitHub · zhouxiaoka.github.io

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zhouxiaoka/autoclip/agents-md"><img src="https://agentmods.dev/badge/instructions/zhouxiaoka/autoclip/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 699 This file is loaded in full into every session.
When invoked 699 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.00699 $0.00699
Opus 5.5 $0.00280 $0.00280
Sonnet 5.5 $0.00140 $0.00140
Haiku 4.5 $0.00070 $0.00070

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

Security

Grade A, and why

autoclip 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 19d 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 · 16 lines

What it actually says

AutoClip quality and release requirements

Read docs/TESTING_ACCEPTANCE.md before changing code or preparing a release. Use RELEASE_CHECKLIST.md for release operations.

  • Diagnose the latest report using its version, platform and build. Preserve unrelated work, user data and secrets. Use isolated data directories for every test.
  • For a production defect, reproduce the triggering conditions and show the regression fails before the fix and passes afterward. Test boundaries between configuration, requests, persistence, runtime and UI; test count alone is not acceptance.
  • Run python scripts/quality_gate.py --report /absolute/local/path/quality.json before claiming a candidate passes source checks. Install dependencies first. The report identifies the commit and tracked changes. A targeted run is useful during development; a release requires all groups and the exact tag's CI.
  • Python correctness lint, frontend lint/types/tests/build, backend tests, version/readme contracts and release-gate regressions are blocking. Existing general Python style warnings remain debt; never waive new runtime errors. Add corresponding checks when changing provider routing, migrations, retries, SQLite, optional runtimes, downloads or telemetry.
  • Keep all eight UI locales consistent. Change the event producer, query/measurement contract and validation acceptance together.
  • Before creating any release tag, build the untagged candidate branch with Desktop Build, complete every required installed-package case on both platforms and every repair regression, and pass Internal Acceptance. Bind evidence to the exact source SHA and package hashes. The receipt always identifies the current source and packages. After a source/version/package change, rebuild when necessary and re-run affected assertions; previously passed unaffected assertions may be inherited only through the audited impact-inheritance contract in docs/TESTING_ACCEPTANCE.md, preserving their original source, package hashes and execution time. Pending, failed or unknown assertions cannot be inherited. Do not consume a public version for internal repairs. An authorized annotated tag must carry Internal-Acceptance-Run: RUN_ID; the tag build rejects missing, failed or mismatched acceptance.
  • Use the final installed package on Windows x64 and macOS arm64 for the required acceptance cases. Record OS, VM/emulation status, portable runtime, package SHA-256, source commit and outcomes. A source checkout, loopback model fixture, wheel test or successful CI does not replace desktop UI/real-model acceptance.
  • A candidate with pending/failed/skipped required cases, unresolved blockers, no observation samples or mismatched evidence is NO-GO. Do not bypass this by extending an observation period or merely disclosing the gap. Fix and re-test first.
  • scripts/release_acceptance.py and the Release Acceptance workflow must pass before Promote / Halt Release. Never promote directly with gh release edit, change an existing tag, claim a local fix is shipped, or close an issue before release and report-specific verification.
  • Hotfixes start from the affected tag and contain only necessary repairs and regression tests. Keep unrelated quality cleanup and new features separate; bring the fixes back to main.
  • Paid calls, contacting testers, publishing, release promotion and rollback need authorization from the user's request/session. Prepare concrete evidence before asking for any missing authorization. Never upload raw PostHog/Sentry exports, credentials, personal paths or user media to the public repository; only reviewed sanitized acceptance summaries belong there.
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. 19d ago Changed · +64 tokens per session 13ecfd8164b8
  2. 21d ago Changed · +1 lines · +95 tokens per session 858636e580e8
  3. 22d ago First seen · 15 lines · 540 tokens per session scan A be27bd3103a5

Subscribe to this mod's changes

autoclip AGENTS.md is an instructions file published in the GitHub repository zhouxiaoka/autoclip (9,702 stars, last pushed today), licensed MIT. It adds 699 tokens to every session, about $0.0028 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-10-03.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens