jset: Instructions file for Codex

AGENTS.md

jset AGENTS.md is an instructions file for Codex, OpenCode from pdone/jset. It costs 1,912 tokens per session, scanned A, original, MIT.

Project instructions for jset, a collection of browser scripts that run through Tampermonkey, a browser extension for installing user scripts.

In plain words
What is it for?
Use them when adding or changing a jset script, especially to name files correctly, include required metadata, and install or test scripts.
Why use it?
They give contributors one place to check the project layout, naming rules, metadata requirements, and manual testing process.

Instructions file for CodexOpenCode

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

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

View source ↗ pdone/jset
Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/pdone/jset/agents-md"><img src="https://agentmods.dev/badge/instructions/pdone/jset/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,912 This file is loaded in full into every session.
When invoked 1,912 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.01912 $0.01912
Opus 5.5 $0.00765 $0.00765
Sonnet 5.5 $0.00382 $0.00382
Haiku 4.5 $0.00191 $0.00191

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

Security

Grade A, and why

jset 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 · 237 lines

How it starts

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

jset - Tampermonkey Userscripts

本项目包含用于 Tampermonkey 的浏览器用户脚本集合,用于定制和增强网页功能。

维护者信息

pdone

📁 项目结构

jset/
├── 📄 AGENTS.md          # 编码规范和项目指南
├── 📄 README.md          # 项目说明
└── 📂 src/               # 用户脚本源代码
    └── *.user.js         # 用户脚本文件

构建和测试

本项目为纯 JavaScript 用户脚本,无需构建步骤。

  • 无 package.json - 不使用 npm/yarn 依赖管理
  • 无构建命令 - 脚本直接复制到 Tampermonkey 中使用
  • 无测试框架 - 手动测试脚本功能
  • 安装方式: 复制 .user.js 文件内容到 Tampermonkey 编辑器,或使用 "Install from URL"

文件命名规范

  • 脚本文件必须以 .user.js 结尾
  • 使用 kebab-case 命名: site-feature.user.js
  • 示例: github-dark-mode.user.js, bilibili-auto-like.user.js

代码风格指南

1. 元数据块 (Metadata Block) - 必需

每个脚本必须以标准元数据块开头:

// ==UserScript==
// @name         脚本中文名称
// @name:en      Script English Name
// @namespace    http://tampermonkey.net/
// @version      1.0.0
// @description  脚本功能描述
// @description:en Script description
// @author       作者名
// @match        https://example.com/*
// @grant        GM_addStyle
// @grant        GM_setValue
// @grant        GM_getValue
// @run-at       document-end
// @license      MIT
// ==/UserScript==

必需字段:

  • @name - 脚本名称(支持多语言 :zh-CN, :en)
  • @namespace - 命名空间(通常用 URL 或唯一标识)
  • @version - 版本号(语义化版本,如 1.0.0)
  • @match - 匹配的 URL 模式(推荐用 @match 替代 @include)
  • @description - 脚本描述(支持多语言)

常用可选字段:

  • @author - 作者名称
  • @grant - 声明使用的 GM API(见下方说明)
  • @run-at - 执行时机:document-start, document-end (默认), document-idle
  • @require - 引入外部库 URL
  • @resource - 引入静态资源
  • @icon - 脚本图标 URL
  • @license - 许可证

2. GM API 使用规范

必须显式声明 @grant:

// @grant GM_addStyle          // 添加 CSS 样式
// @grant GM_setValue          // 存储数据
// @grant GM_getValue          // 读取数据
// @grant GM_deleteValue       // 删除数据
// @grant GM_xmlhttpRequest    // 跨域请求
// @grant GM_openInTab         // 打开新标签页
// @grant GM_notification      // 显示通知
// @grant GM_registerMenuCommand // 注册菜单命令
// @grant unsafeWindow         // 访问页面 window 对象
// @grant none                 // 不使用沙箱(直接使用页面环境)

Read the full file on GitHub · 237 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 · 237 lines · 1,912 tokens per session scan A c52d37e32595

Subscribe to this mod's changes

jset AGENTS.md is an instructions file published in the GitHub repository pdone/jset (7 stars, last pushed 1mo ago), licensed MIT. It adds 1,912 tokens to every session, about $0.0076 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

jset AGENTS.md compared with instructions from other repositories

jset AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
jset AGENTS.mdpdone/jsetInstructions file71mo agoMITA1,912Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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 ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot