opuspad: Instructions file for Codex

AGENTS.md

opuspad AGENTS.md is an instructions file for Codex, OpenCode from luanjunyi/opuspad. It costs 563 tokens per session, scanned A, original, ISC.

A repository guide for Opuspad, a planned Chrome extension for editing Markdown files. It describes the design-first workflow and the intended React, TypeScript, and Vite structure.

In plain words
What is it for?
Use it when implementing the extension scaffold, organizing its source files, or checking work against the design specification.
Why use it?
The application scaffold and build scripts are not yet committed, so the guide identifies the design documents and verification steps to follow.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/luanjunyi/opuspad/agents-md"><img src="https://agentmods.dev/badge/instructions/luanjunyi/opuspad/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 563 This file is loaded in full into every session.
When invoked 563 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.00563 $0.00563
Opus 5.5 $0.00225 $0.00225
Sonnet 5.5 $0.00113 $0.00113
Haiku 4.5 $0.00056 $0.00056

Measured 2mo ago against content hash 18083229ff3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

opuspad 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 2mo 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 · 34 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

This repository is currently spec-first. Start with .spec/design-doc-md-editor-chrome.md for architecture, task scope, and manual verification steps. Use .spec/tracker.md to track task status and .spec/escalations.md for blockers that need a decision. The application scaffold has not been committed yet; when Task 1 lands, keep runtime code in src/, shared file-system logic in src/services/, UI pieces in src/components/, and treat dist/ as generated build output.

Build, Test, and Development Commands

There are no checked-in build scripts yet because the extension scaffold is still pending. Once Task 1 is implemented, standard commands should be:

  • npm install: install Vite, React, and extension dependencies.

  • npm run dev: start the local development server for UI work.

  • npm run build: create the unpacked Chrome extension bundle in dist/.

Until those scripts exist, use the verification steps in .spec/design-doc-md-editor-chrome.md as the executable source of truth.

Coding Style & Naming Conventions

The design doc targets React 18, TypeScript 5, Vite 5, Manifest V3, CodeMirror, and BlockNote. Follow a simple layout: 2-space indentation, PascalCase for React components (MarkdownEditor.tsx), camelCase for functions and hooks (mountWorkspace), and kebab-case only for non-code asset names when needed. Keep file-system access code isolated from UI code, and prefer small modules over large mixed-purpose files.

Testing Guidelines

No automated test framework is committed yet. For now, every change must pass the manual checks in the design doc, especially Chrome extension loading, workspace mounting, and debounced file saves. When tests are added, prefer *.test.ts and *.test.tsx files near the code they cover or under tests/, and focus first on src/services/fileSystem.ts, editor routing, and save behavior.

Commit & Pull Request Guidelines

This repository has no established commit history yet, so set the baseline now: use short imperative commit subjects such as Add extension scaffold or Implement file tree sidebar. Keep each commit focused on one task from .spec/tracker.md. Pull requests should name the task addressed, summarize behavior changes, list verification steps performed, and include screenshots or a short video for UI changes.

Read the full file on GitHub · 34 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. 2mo ago First seen · 34 lines · 563 tokens per session scan A 18083229ff3b

Subscribe to this mod's changes

opuspad AGENTS.md is an instructions file published in the GitHub repository luanjunyi/opuspad (2 stars, last pushed 5mo ago), licensed ISC. It adds 563 tokens to every session, about $0.0023 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

opuspad AGENTS.md compared with instructions from other repositories

opuspad AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opuspad AGENTS.mdluanjunyi/opuspadInstructions file25mo agoISCA563Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode