CSSwitch AGENTS.md

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/superjj007/csswitch/agents-md
Clone the repo
git clone --depth 1 https://github.com/SuperJJ007/CSSwitch

Made for: Codex, OpenCode.

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. Scan, not verified.
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 $0.00702 $0.00702
Opus 5 $0.00351 $0.00351
Sonnet 5 $0.00140 $0.00140
Haiku 4.5 $0.00070 $0.00070

Measured yesterday against content hash 63527950f715, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 (452 stars, last pushed 9d ago), licensed MIT. It adds 702 tokens to every session, about $0.0035 per session on Opus 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.