scraps: Instructions file for Codex

AGENTS.md

scraps AGENTS.md is an instructions file for Codex, OpenCode from rnabioco/scraps. It costs 9,655 tokens per session, scanned A, original, MIT.

A developer guide for scraps, a Snakemake pipeline that finds mRNA polyadenylation sites in single-cell RNA sequencing data. It gives commands for running, testing, and inspecting the pipeline.

In plain words
What is it for?
Running the pipeline with test data or a chosen number of CPU cores, checking changes with a dry run, listing rules, and creating a workflow diagram.
Why use it?
It gives coding agents the repository's expected commands and checks, reducing guesswork when changing or validating the pipeline.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rnabioco/scraps/agents-md"><img src="https://agentmods.dev/badge/instructions/rnabioco/scraps/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,655 This file is loaded in full into every session.
When invoked 9,655 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.09655 $0.09655
Opus 5.5 $0.03862 $0.03862
Sonnet 5.5 $0.01931 $0.01931
Haiku 4.5 $0.00966 $0.00966

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

Security

Grade A, and why

scraps 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 9d 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 · 649 lines

How it starts

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

AGENTS.md - Developer Guide for scraps

This is the single guide for coding agents (Claude Code, Codex, opencode, ...) and humans working in the scraps repository: commands, architecture, conventions and gotchas. Claude Code reads this file directly; there is deliberately no separate CLAUDE.md.

Project: scraps - Single Cell RNA PolyA Site Discovery
Type: Snakemake bioinformatics pipeline that extracts mRNA polyadenylation (RT priming) sites from "TVN"-primed 3' single-cell RNA-seq FASTQs, or from pre-aligned, barcode-tagged BAMs, at near-nucleotide resolution
Primary Languages: Python 3, R, Snakemake, Shell (zsh)


Quick Start Commands

Running the Pipeline

# Dry-run to validate pipeline (recommended before any changes)
snakemake -np --configfile config.yaml

# Run pipeline (--cores/-j is mandatory for a real run; needs the STAR index and
# whitelists from the README Setup section, which are not bundled; each STAR job
# uses total_impact=5, so --resources total_impact=5 runs one STAR job at a time)
snakemake -j 8 --configfile config.yaml --resources total_impact=5 --keep-going

# Generate DAG visualization (the Snakefile's logger output goes to stderr outside
# dry-runs, so stdout is clean DOT)
snakemake --dag --configfile config.yaml | dot -Tpdf > dag.pdf

# Regenerate the README's inst/dag.pdf: rule graph with every arm and discovery on.
# dag_override.yaml contains:
#   GENOME_FASTA: "ref/genome.fa"
#   DISCOVERY: {enabled: true, read: [R1, R2, paired, bam]}
snakemake --rulegraph --configfile config.yaml dag_override.yaml | dot -Tpdf > inst/dag.pdf

--configfile other.yaml is deep-merged over the hardcoded config.yaml (Snakemake update_config), so SAMPLES from both files are unioned unless the override redefines every key. Add --replace-workflow-config (Snakemake 9) to use only the given file instead.

Cluster (SLURM): submit one job per rule with the bundled profile, after setting the account and partition (see profiles/slurm/README.md); --cluster/--drmaa no longer exist in Snakemake 8+.

Read the full file on GitHub · 649 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. 9d ago Changed · +12 lines · +254 tokens per session bb40c004a4fb
  2. 10d ago Changed · +16 lines · +299 tokens per session 293a5f883fbc
  3. 12d ago Changed · +21 lines · +354 tokens per session 6899d1980750
  4. 16d ago Changed · +305 lines · +6,682 tokens per session 8161a7461d1e
  5. 2mo ago First seen · 295 lines · 2,066 tokens per session scan A 0a6d63472b26

Subscribe to this mod's changes

scraps AGENTS.md is an instructions file published in the GitHub repository rnabioco/scraps (11 stars, last pushed 8d ago), licensed MIT. It adds 9,655 tokens to every session, about $0.0386 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-30.

Related

scraps AGENTS.md compared with instructions from other repositories

scraps AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scraps AGENTS.mdrnabioco/scrapsInstructions file118d agoMITA9,655Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot