fcm-hosts-next: Instructions file for Codex

AGENTS.md

fcm-hosts-next AGENTS.md is an instructions file for Codex, OpenCode from cagedbird043/fcm-hosts-next. It costs 532 tokens per session, scanned A, original, MIT.

Project-specific instructions for maintaining a system that generates host lists for Firebase Cloud Messaging (FCM), the service used to deliver notifications to Android devices. They describe its production workflow, schedules, publishing files, and deployment rules.

In plain words
What is it for?
Updating or troubleshooting the FCM host-generation pipeline, its scheduled workflow, generated IPv4 and IPv6 files, and their SSH-based deployment.
Why use it?
They give the agent the project’s operational rules, reducing mistakes in automated generation, GitHub Actions, network-specific publishing, and server deployment.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 fcm-hosts-next AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cagedbird043/fcm-hosts-next/agents-md"><img src="https://agentmods.dev/badge/instructions/cagedbird043/fcm-hosts-next/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 532 This file is loaded in full into every session.
When invoked 532 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.00532 $0.00532
Opus 5.5 $0.00213 $0.00213
Sonnet 5.5 $0.00106 $0.00106
Haiku 4.5 $0.00053 $0.00053

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

Security

Grade A, and why

fcm-hosts-next 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 6d 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 · 26 lines

What it actually says

fcm-hosts-next 维护指南

💡 关于本项目的 Agent-native Skills 与任务路由,请先阅读 README.md。

这个仓库生成并发布 Google Firebase Cloud Messaging (FCM) 优选 hosts,给 Android / microG / Google Play services 使用。生产流水线是 bj-edge(腾讯云北京,大陆双栈)上的 systemd 定时任务,全程在国内完成。

生产链路

  • 运行:bj-edge 的 fcm-hosts-next.timer → fcm-hosts-next.service(deploy/ 下两个文件,装在 /etc/systemd/system/),以 fcm-runner 用户执行 scripts/publish.sh
  • 工作副本:/var/lib/fcm-runner/fcm-hosts-next(每轮先 reset --hard origin/main)
  • 调度:每天 4 次,UTC 01:17, 07:17, 13:17, 19:17
  • 生成:go run ./cmd/fcmhost run -workdir .
  • 发布文件:
    • fcm_ipv4.hosts
    • fcm_ipv6.hosts
    • fcm_dual.hosts
  • 分发路径:bj-edge 本机 /srv/cagedbird/fcm-hosts-next/,Caddy 站点 fcm-hosts.cagedbird.cn
  • 公网地址:https://fcm-hosts.cagedbird.cn/fcm_dual.hosts
  • GitHub Actions:.github/workflows/main.yml 只在代码改动时跑 go test 和 shellcheck,不采集、不发布

硬规则

  • 推送走 SSH 443: fcm-runner 用 repo deploy key fcm-runner@bj-edge(可写)推送,~/.ssh/config 把 github.com 指到 ssh.github.com:443,不用 HTTPS token。
  • 防止自循环: 自动生成的 hosts 提交必须带 [skip ci] 标签。
  • 不直接修改生产环境: 禁止在服务器上直接 sed 或编辑发布文件。任何更改必须提交到仓库,由下一轮 scripts/publish.sh 生成和发布;deploy/ 下的 unit 改动需要手动复制到 /etc/systemd/system/ 并 daemon-reload。
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. 6d ago Changed · +118 tokens per session 3c2d5c8eb51f
  2. 2mo ago First seen · 26 lines · 414 tokens per session scan A 450d84c14890

Subscribe to this mod's changes

fcm-hosts-next AGENTS.md is an instructions file published in the GitHub repository cagedbird043/fcm-hosts-next (59 stars, last pushed yesterday), licensed MIT. It adds 532 tokens to every session, about $0.0021 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

fcm-hosts-next AGENTS.md compared with instructions from other repositories

fcm-hosts-next AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fcm-hosts-next AGENTS.mdcagedbird043/fcm-hosts-nextInstructions file59yesterdayMITA532Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,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