sing-box-windows-android AGENTS.md

sing-box-windows-android AGENTS.md is an instructions file for Codex, OpenCode from xinggaoya/sing-box-windows-android. It costs 598 tokens per session, scanned A, original, MIT.

A set of instructions for developing a single-module Android app written in Kotlin, using Jetpack Compose for its interface. It describes the app’s folders, build commands, naming rules, tests, and pull-request requirements.

In plain words
What is it for?
Use it when changing the Android app, running Gradle builds, writing JUnit or UI tests, checking Kotlin and resource naming, or preparing a pull request.
Why use it?
It gives a coding agent the project-specific rules needed to build, test, lint, and review changes correctly. It also explains the difference between local unit tests and tests run on an Android device or emulator.

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/xinggaoya/sing-box-windows-android/agents-md
Clone the repo
git clone --depth 1 https://github.com/xinggaoya/sing-box-windows-android

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 sing-box-windows-android AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xinggaoya/sing-box-windows-android/agents-md.svg)](https://agentmods.dev/instructions/xinggaoya/sing-box-windows-android/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/xinggaoya/sing-box-windows-android/agents-md"><img src="https://agentmods.dev/badge/instructions/xinggaoya/sing-box-windows-android/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 598 This file is loaded in full into every session.
When invoked 598 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.00598 $0.00598
Opus 5 $0.00299 $0.00299
Sonnet 5 $0.00120 $0.00120
Haiku 4.5 $0.00060 $0.00060

Measured 5d ago against content hash 822435c99a62, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sing-box-windows-android 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 5d 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 · 28 lines

What it actually says

Repository Guidelines

项目结构与模块组织

本仓库为单模块 Android 应用,主模块在 app/。核心源码位于 app/src/main/java/cn/moncn/sing_box_windows/,按 config/core/ui/vpn/ 分包组织,入口为 MainActivity.kt。界面与资源在 app/src/main/res/,本地依赖库 libbox.aar 位于 app/libs/。测试分别在 app/src/test/(单元测试)与 app/src/androidTest/(仪器测试)。

构建、测试与开发命令

使用 Gradle Wrapper 执行(Windows 用 gradlew.bat,macOS/Linux 用 ./gradlew):

./gradlew assembleDebug      # 构建 Debug APK
./gradlew assembleRelease    # 构建 Release APK
./gradlew installDebug       # 安装到已连接设备
./gradlew test               # 运行单元测试(JUnit4)
./gradlew connectedAndroidTest # 运行仪器测试(Espresso/Compose)
./gradlew lint               # 运行 Android Lint

编码风格与命名规范

语言为 Kotlin + Jetpack Compose。缩进 4 空格,遵循 Kotlin 官方风格与现有代码写法;类/对象用 PascalCase,函数与变量用 camelCase,Compose 组件命名也用 PascalCase。资源文件名使用 lower_snake_case。复杂逻辑请添加必要注释,保持注释简洁且有解释性。

测试指南

单元测试使用 JUnit4(示例:ExampleUnitTest.kt),仪器测试使用 AndroidX JUnit 与 Espresso/Compose 测试框架(示例:ExampleInstrumentedTest.kt)。新增业务逻辑尽量补充对应测试;若涉及 UI 行为,优先提供 UI 测试或至少说明验证方式。

提交与合并请求规范

Git 历史显示常用提交格式为 feat(scope): 描述,建议沿用 Conventional Commits 风格,允许中文描述;无 scope 的简短初始化提交也可接受。PR 需包含变更说明、测试结果与必要截图(UI 改动必需),并关联相关问题或任务编号。

配置与安全提示

local.properties 保存本机 SDK 路径,不应提交敏感信息。更新 app/libs/libbox.aar 时需同步说明版本来源与兼容性影响。若需参考最新依赖或框架文档,优先使用 MCP 获取权威资料以避免过时信息。

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. 5d ago First seen · 28 lines · 598 tokens per session scan A 822435c99a62

Subscribe to this mod's changes

sing-box-windows-android AGENTS.md is an instructions file published in the GitHub repository xinggaoya/sing-box-windows-android (56 stars, last pushed 6mo ago), licensed MIT. It adds 598 tokens to every session, about $0.0030 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.