Android-DIY-Sandbox: Instructions file for Codex

AGENTS.md

Android-DIY-Sandbox AGENTS.md is an instructions file for Codex, OpenCode from zz6zz666/Android-DIY-Sandbox. It costs 874 tokens per session, scanned A, original, BSD-3-Clause.

Project instructions for building and packaging an Android app made with Flutter, with separate builds using the system WebView or built-in Chromium engine.

In plain words
What is it for?
They help produce debug or release APK files for the two app variants and copy and verify the resulting files.
Why use it?
They give a coding agent the exact build commands, output locations, file names, and checksum steps needed for this project.

Instructions file for CodexOpenCode

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ( cd assets/scripts && zip -r ../../build/Sandbox_Default_Demo_Skin-v$(grep '^version: ' ../../pubspec.yaml | sed 's/.*: //' | cut -d+ -f1).zip . ).

Reuse

Borrowing it

Nothing to install: this file belongs to zz6zz666/Android-DIY-Sandbox. 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/zz6zz666/Android-DIY-Sandbox/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/zz6zz666/Android-DIY-Sandbox

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 Android-DIY-Sandbox AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zz6zz666/android-diy-sandbox/agents-md"><img src="https://agentmods.dev/badge/instructions/zz6zz666/android-diy-sandbox/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 874 This file is loaded in full into every session.
When invoked 874 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.00874 $0.00874
Opus 5.5 $0.00350 $0.00350
Sonnet 5.5 $0.00175 $0.00175
Haiku 4.5 $0.00087 $0.00087

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

Security

Grade A, and why

Android-DIY-Sandbox 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 · 61 lines

How it starts

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

AGENTS.md

构建

normal (系统 WebView):

flutter build apk --debug --flavor normal --target-platform android-arm64 --no-tree-shake-icons
flutter build apk --release --flavor normal --target-platform android-arm64 --no-tree-shake-icons && cp build/app/outputs/apk/normal/release/Android-DIY-Sandbox-*.apk build/app/outputs/flutter-apk/ && APK=$(ls build/app/outputs/flutter-apk/Android-DIY-Sandbox-*.apk | head -1) && sha1sum "$APK" | cut -d' ' -f1 > "${APK}.sha1"

chromium (内置 Chromium 内核):

flutter build apk --debug --flavor chromium --target-platform android-arm64 --no-tree-shake-icons
flutter build apk --release --flavor chromium --target-platform android-arm64 --no-tree-shake-icons && cp build/app/outputs/apk/chromium/release/Android-DIY-Sandbox-*.apk build/app/outputs/flutter-apk/ && APK=$(ls build/app/outputs/flutter-apk/Android-DIY-Sandbox-*.apk | head -1) && sha1sum "$APK" | cut -d' ' -f1 > "${APK}.sha1"

Gradle 已配置 outputFileName,产物在 android/app/outputs/apk/ 下自动命名为 Android-DIY-Sandbox-v{versionName}-{flavor}-{buildType}.apk (normal 和 chromium 均带显式 flavor 标记)。 Flutter 工具会额外复制一份到 build/app/outputs/flutter-apk/ (默认名 app-{flavor}-{buildType}.apk)。 上方的构建命令会将 Gradle 目录下的重命名产物连同 SHA 校验文件同步到 flutter-apk/。

必须带 --no-tree-shake-icons:Lua 层 UI 允许用任意图标名/codepoint 在运行时动态构造 IconData (见 lib/ui/lua/lua_view.dart 的 luaIconFor 与 lib/ui/lua/material_icons_map.g.dart)。 不加该 flag 时 Flutter 会摇树裁掉未静态引用的图标,导致 Lua 指定的图标显示为方框。

真机:XT2507-5,包名 com.diysandbox.android.debug。

Lua UI 图标映射

lib/ui/lua/material_icons_map.g.dart 是生成文件,来自 Flutter SDK 的 packages/flutter/lib/src/material/icons.dart。升级 Flutter 后如需刷新,重跑生成脚本 (解析 static const IconData NAME = IconData(0xXXXX ...) → 名称/codepoint/RTL 映射)。

皮肤打包

默认皮肤 (assets/scripts/ 全量无嵌套 zip):

( cd assets/scripts && zip -r ../../build/Sandbox_Default_Demo_Skin-v$(grep '^version: ' ../../pubspec.yaml | sed 's/.*: //' | cut -d+ -f1).zip . )

空皮肤 (仅保留 agent/ sandbox/ agent.lua AGENTS.md):

( cd assets/scripts && zip -r ../../build/Sandbox_Empty_Skin-v$(grep '^version: ' ../../pubspec.yaml | sed 's/.*: //' | cut -d+ -f1).zip agent/ sandbox/ agent.lua AGENTS.md )

Read the full file on GitHub · 61 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 · 61 lines · 874 tokens per session scan A 17c6df0ae676

Subscribe to this mod's changes

Android-DIY-Sandbox AGENTS.md is an instructions file published in the GitHub repository zz6zz666/Android-DIY-Sandbox (69 stars, last pushed 3mo ago), licensed BSD-3-Clause. It adds 874 tokens to every session, about $0.0035 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

Android-DIY-Sandbox AGENTS.md compared with instructions from other repositories

Android-DIY-Sandbox AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Android-DIY-Sandbox AGENTS.mdzz6zz666/Android-DIY-SandboxInstructions file693mo agoBSD-3-ClauseA874Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot