Opensource-Contribution-Leaderboard: Instructions file for Codex

AGENTS.md

Opensource-Contribution-Leaderboard AGENTS.md is an instructions file for Codex, OpenCode from RocketChat/Opensource-Contribution-Leaderboard. It costs 1,026 tokens per session, scanned A, original, MIT.

A project guide for an open-source contribution leaderboard, a website that ranks or displays contributions to public software projects. It maps the frontend, backend, GitHub data collection, administrator panel, configuration, and common development commands.

In plain words
What is it for?
Developing the leaderboard’s web interface, backend, GitHub API integration, administrator panel, cached data, and local development workflow.
Why use it?
It helps coding agents quickly find the right files and understand how GitHub data moves through the application. It also explains which commands start the website, server, and setup process.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 Opensource-Contribution-Leaderboard AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rocketchat/opensource-contribution-leaderboard/agents-md"><img src="https://agentmods.dev/badge/instructions/rocketchat/opensource-contribution-leaderboard/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,026 This file is loaded in full into every session.
When invoked 1,026 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.01026 $0.01026
Opus 5.5 $0.00410 $0.00410
Sonnet 5.5 $0.00205 $0.00205
Haiku 4.5 $0.00103 $0.00103

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

Security

Grade A, and why

Opensource-Contribution-Leaderboard 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 · 114 lines

How it starts

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

AI Coding Agents — Opensource Contribution Leaderboard

This file provides context for any AI coding agent (Copilot, Cursor, Windsurf, Cline, Aider, etc.) working on this project.

Quick Orientation

What Where
Frontend entry src/index.js
Frontend HTML index.html
Backend server src/server/app.js
GitHub data fetcher src/server/refresh.js
GitHub API wrapper src/server/util/API.js
Utility helpers src/server/util/Util.js
Config template src/server/config-example.json
Live config (gitignored) src/server/config.json
Admin panel admin/ (separate webpack build)
Webpack config (main) build/webpack.config.js
Webpack config (admin) admin/build/webpack.config.js
REST API docs REST-API.md
Cached leaderboard data src/assets/data/data.json (auto-generated)

npm Scripts

Command What it does
npm run add Installs dependencies for root, server, and admin
npm start Dev mode — webpack-dev-server with hot reload on :8080
npm run serve Starts the backend server (run in separate terminal during dev)
npm run build Production build — compiles admin + main frontend
npm run lint ESLint

How It Works (in plain english)

  1. app.js starts an Express server on port 8080
  2. It spawns refresh.js as a child process
  3. refresh.js reads config.json, loops through the contributors array, and calls the GitHub API for each one
  4. Results are written to src/assets/data/data.json
  5. The frontend fetches /data endpoint which serves data.json
  6. Real-time updates via socket.io
  7. The API endpoints (/api/stats, /api/rank, /api/contributor) read from the same data.json

Critical Design Decisions

Hidden Rank Column

The rank column and some aggregate stats are rendered with invisible/white text. This is intentional — admins can select-all and copy the table to get full stats in one stroke. Do not "fix" this visibility.

Read the full file on GitHub · 114 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 · 114 lines · 1,026 tokens per session scan A 43b99152dcdd

Subscribe to this mod's changes

Opensource-Contribution-Leaderboard AGENTS.md is an instructions file published in the GitHub repository RocketChat/Opensource-Contribution-Leaderboard (47 stars, last pushed 7mo ago), licensed MIT. It adds 1,026 tokens to every session, about $0.0041 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

Opensource-Contribution-Leaderboard AGENTS.md compared with instructions from other repositories

Opensource-Contribution-Leaderboard AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Opensource-Contribution-Leaderboard AGENTS.mdRocketChat/Opensource-Contribution-LeaderboardInstructions file477mo agoMITA1,026Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,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