CSSwitch: Instructions file for Codex

AGENTS.md

CSSwitch AGENTS.md is an instructions file for Codex, OpenCode from SuperJJ007/CSSwitch. It costs 702 tokens per session, scanned A, original, MIT.

An index file for CSSwitch's AI-agent rules and project documentation. It specifies the order in which assistants should read safety, Git, task-specific, and documentation guidance.

In plain words
What is it for?
Use it to direct work on CSSwitch projects, including selecting relevant rules, checking repository state, handling documentation, reviewing changes, and closing tasks.
Why use it?
It helps assistants use current project evidence and avoid conflicting or outdated notes. It also limits unnecessary reading and repeated review cycles.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/superjj007/csswitch/agents-md"><img src="https://agentmods.dev/badge/instructions/superjj007/csswitch/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 702 This file is loaded in full into every session.
When invoked 702 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.00702 $0.00702
Opus 5.5 $0.00281 $0.00281
Sonnet 5.5 $0.00140 $0.00140
Haiku 4.5 $0.00070 $0.00070

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

Security

Grade A, and why

CSSwitch 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 · 32 lines

What it actually says

CSSwitch Agent 规则入口

本文件只负责索引,不保存版本快照、测试结果或架构正文。

阅读顺序

  1. 所有任务先读安全规则和Git / worktree 规则。
  2. 再按任务读取 .agents/rules/ 下零或一项最接近的领域规则;没有匹配项时不强行套用。涉及文档创建、修改、引用或删除时读文档治理规则。
  3. 涉及版本、分支、worktree、验证状态或已知问题时,先实时复核,再参考 .agents/context/ 的日期化快照。
  4. 架构、运维、功能合同、历史证据和外部参考从文档总入口进入。

默认首轮只加载解决任务所需的一个索引和最多两份相关正文或 Context;需要更多证据时沿链接逐级展开,不预读全部 context、audit 或 evidence。正式独立审查额外读取 reviewing.md overlay,但不增加领域规则、索引、正文或 Context 的预算。

信息权威顺序

目标 artifact / runtime > tag 与公开 release > 当前源码和测试 > .agents/context/ > docs/ > memory / handoff。

.agents/rules/ 是 Agent 的稳定行为规则;.agents/context/ 只是可更新的当前状态索引;临时交接不得替代两者。

工作边界

  • 未提交内容按用户数据保护;只读任务只允许检查和报告。
  • commit、push、tag、release、替换已安装 App或运行真实 provider 测试均需明确授权。
  • 真实 API Key、OAuth token、Keychain、SSH 私钥和账号数据库始终不得读取或回显;真实 provider 测试只能消费用户显式提供给隔离进程的输入,授权测试不等于授权检查凭证内容。
  • 临时 handoff 放入 .agents/handoffs/,长期事实应进入 rules、context 或 docs。

收口纪律

  • 同一个有界目标或候选的正式独立审查最多两轮:首轮集中发现问题,修复合并完成后只做一轮最终复审;不得因逐项修复反复启动新的 reviewer。详细规则见 reviewing.md。
  • WIP 阶段不因每次小改动反复旋转或核对测试身份 hash;先完成目标内改动并冻结候选,再统一更新一次、验证一次。只有冻结后相关源文件再次变化或 validator 报告具体不一致时才重做。
  • 始终围绕用户当前目标和预先声明的收口清单工作。目标外发现只有直接阻断当前结果的 P0 / P1 才可纳入本轮;其余记录并延后,不得演变成无上限加固或审查循环。
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 · 32 lines · 702 tokens per session scan A 63527950f715

Subscribe to this mod's changes

CSSwitch AGENTS.md is an instructions file published in the GitHub repository SuperJJ007/CSSwitch (486 stars, last pushed 2mo ago), licensed MIT. It adds 702 tokens to every session, about $0.0028 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

Other instructions, from other repositories

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 · 9,715 tokens

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,461 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens