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

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/zz6zz666/android-diy-sandbox/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.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.svg" alt="Measured on agentmods" 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. 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.1 $0.00874 $0.00874
Opus 5 $0.00437 $0.00437
Sonnet 5 $0.00175 $0.00175
Haiku 4.5 $0.00087 $0.00087

Measured 6d ago against content hash 17c6df0ae676, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 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 · 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.dartluaIconForlib/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. 6d 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 (24 stars, last pushed 1mo ago), licensed BSD-3-Clause. It adds 874 tokens to every session, about $0.0044 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.