rs-agent-plugin: Instructions file for Codex

AGENTS.md

rs-agent-plugin AGENTS.md is an instructions file for Codex, OpenCode from rsenna/rs-agent-plugin. It costs 908 tokens per session, scanned A, original, MIT.

A repository instruction file describing how an AI coding agent should work in the `rs-agent-plugin` project. It defines the base branch, required quality checks, identity and secret handling, and pull-request workflow.

In plain words
What is it for?
It helps agents create branches, run shell-script checks, refresh committed graph reports, use the correct automated identity, and prepare pull requests.
Why use it?
It gives agents project-specific operating rules so changes follow the expected branch, validation, authentication, and review process.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 rs-agent-plugin AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rsenna/rs-agent-plugin/agents-md.svg)](https://agentmods.dev/instructions/rsenna/rs-agent-plugin/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rsenna/rs-agent-plugin/agents-md"><img src="https://agentmods.dev/badge/instructions/rsenna/rs-agent-plugin/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 908 This file is loaded in full into every session.
When invoked 908 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.00908 $0.00908
Opus 5 $0.00454 $0.00454
Sonnet 5 $0.00182 $0.00182
Haiku 4.5 $0.00091 $0.00091

Measured 2d ago against content hash 3c418ac7ed43, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

rs-agent-plugin 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 2d 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 · 36 lines

How it starts

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

Agent Operations Guide

Branch

  • Base branch: main
  • Always create feature branches via skills/pull-request-process/pr.sh start <branch> (never reuse the shared checkout).

Quality Gate

Run these before every push:

  1. find skills -name '*.sh' -print0 | xargs -0 shellcheck — keep shell scripts lint-clean.
  2. graphify update . (external skill, not shipped in this repo — see docs/superpowers/specs/2026-08-19-graphify-gitignore-standard-design.md) — refresh the committed graph artifacts (graphify-out/graph.json, graphify-out/GRAPH_REPORT.md).
    • If doc-only changes skipped topology updates, the tool reports that it left the outputs untouched; commit the log-friendly message alongside source edits.

If a new language/tooling shows up, extend this list rather than skipping the gate.

Identity & Secrets

pr.sh fetches the agent's git/gh identity fresh from Doppler on every invocation (doppler secrets get GHUB_AGENT_PATC/GHUB_AGENT_USERNAME/GHUB_AGENT_EMAIL, project/config from PR_BOT_DOPPLER_PROJECT/PR_BOT_DOPPLER_CONFIG, default homelab/dev) — never the ambient gh auth/git identity. Authenticate the doppler CLI in your environment (e.g. doppler login, or a configured service token) so those secrets are reachable; pr.sh dies loudly rather than falling back if they aren't.

Code Review Workflow

  1. Branch: BASE=main pr.sh start feature/<slug> — cd into printed path.
  2. Implement + lint.
  3. Gate: run the quality gate steps above.
  4. Self-review: invoke the requesting-code-review skill (external skill, not shipped in this repo) with BASE_SHA=$(git merge-base HEAD origin/main) and current HEAD_SHA.
  5. Push: BASE=main REVIEWED=1 pr.sh push feature/<slug>.
  6. Open PR: BASE=main pr.sh open "<title>" body.md — stop after opening.
  7. Address review threads via pr.sh threads + pr.sh reply, re-running the gate and self-review before every push.
  8. Cleanup once merged/abandoned: run pr.sh cleanup from the worktree.

Read the full file on GitHub · 36 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. 2d ago First seen · 36 lines · 908 tokens per session scan A 3c418ac7ed43

Subscribe to this mod's changes

rs-agent-plugin AGENTS.md is an instructions file published in the GitHub repository rsenna/rs-agent-plugin (2 stars, last pushed 6d ago), licensed MIT. It adds 908 tokens to every session, about $0.0045 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-09-04.

Related

Other instructions, from other repositories

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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

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 · 6,785 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 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,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens