github: Instructions file for Codex

AGENTS.md

github AGENTS.md is an instructions file for Codex, OpenCode from DaleStudy/github. It costs 2,392 tokens per session, scanned A, original, MIT.

A set of AGENTS.md instructions for the DaleStudy/github project. AGENTS.md is a repository guide that tells coding agents about the project, its existing features, technology choices, and file structure.

In plain words
What is it for?
It is for guiding coding-agent work in the DaleStudy/github repository, including its architecture, features, and technology stack.
Why use it?
It gives an agent project-specific context before it changes code, reducing confusion about how the repository is organized and what it already implements.

Instructions file for CodexOpenCode

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is vi.mock("../utils/github.js", () => ({.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dalestudy/github/agents-md"><img src="https://agentmods.dev/badge/instructions/dalestudy/github/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,392 This file is loaded in full into every session.
When invoked 2,392 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.02392 $0.02392
Opus 5.5 $0.00957 $0.00957
Sonnet 5.5 $0.00478 $0.00478
Haiku 4.5 $0.00239 $0.00239

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

Security

Grade A, and why

github 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 8d 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 · 125 lines

How it starts

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

AGENTS.md

DaleStudy 조직의 GitHub App이 받는 웹훅과 자동화 요청을 처리하는 Cloudflare Worker. 주 대상은 leetcode-study 저장소다.

명령어

bun install
bun run test                # 전체 테스트 (CI 와 배포 전에 같은 명령을 돈다)
bun run test -- handlers/webhooks.test.js
wrangler dev                # http://localhost:8787
wrangler tail               # 운영 로그

구조

index.js        엔드포인트 라우팅만 한다 (POST 만 받는다)
handlers/       기능별 핸들러와 단위 테스트(*.test.js)
utils/          공통 유틸리티와 단위 테스트 (github.js: App 인증, prActions.js: 승인·병합 공통 로직)
tests/          Worker runtime smoke test, subrequest 예산, 교차 모듈 테스트
wrangler.jsonc  Worker 설정과 공개 값(vars)

새 기능은 handlers/ 에 핸들러를 만들고 index.js 에 경로를 추가한다. 필요한 GitHub App 권한이 있는지 확인하고, 핸들러 옆에 테스트를 둔다.

엔드포인트

repo_owner 를 받는 엔드포인트는 DaleStudy 가 아니면 403 이다 (생략하면 DaleStudy). /check-weeks 는 저장소도 leetcode-study 만 받는다.

경로 하는 일
POST /webhooks GitHub App 웹훅 수신 (아래 "웹훅")
POST /check-weeks 열린 PR 전체의 Week 설정을 검사해 경고 댓글을 달거나 지운다. { "repo_name" }
POST /approve-prs 해당 주차 풀이 PR 을 일괄 승인한다. { "repo_name", "week": "Week 8", "excludes"? }
POST /merge-prs 해당 주차의 승인된 PR 을 일괄 병합한다. { "repo_name", "week", "excludes"?, "merge_method"? } (기본 squash)
POST /resolve-iteration 날짜가 몇 기 몇 주차인지 프로젝트 보드에서 읽는다. { "date": "2026-08-08" }
POST /internal/* 웹훅 핸들러가 AI 작업을 별도 invocation 으로 넘길 때 쓴다 (X-Internal-Secret 인증)

Read the full file on GitHub · 125 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. 8d ago Changed · -1 lines · -38 tokens per session b5194d9c20a0
  2. 11d ago Changed · +2 lines · +106 tokens per session e2d811de3d58
  3. 12d ago Changed · +5 tokens per session d7fac0eff213
  4. 18d ago Changed · +9 lines · +244 tokens per session 9a4b9c5917ca
  5. 26d ago Changed · +1 tokens per session 2de8904ac47b
  6. 28d ago Changed · -422 lines · -2,943 tokens per session 309e4ed0ce4d
  7. 2mo ago First seen · 537 lines · 5,017 tokens per session scan A c9273cfeec9d

Subscribe to this mod's changes

github AGENTS.md is an instructions file published in the GitHub repository DaleStudy/github (2 stars, last pushed 4d ago), licensed MIT. It adds 2,392 tokens to every session, about $0.0096 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

github AGENTS.md compared with instructions from other repositories

github AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
github AGENTS.mdDaleStudy/githubInstructions file24d agoMITA2,392Codex, 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,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot