WebToApp is an Android toolkit that builds installable APKs from web projects directly on a phone. It is for people who want to package web applications as Android apps, including projects that use server runtimes, browser extensions, signing, or app-specific networking. The catalogue includes an instruction related to working with this toolkit.
Borrowing it
Nothing to install: this file belongs to shiaho777/web-to-app. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/shiaho777/web-to-app/main/AGENTS.mdgit clone --depth 1 https://github.com/shiaho777/web-to-appWrote 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.
[](https://agentmods.dev/instructions/shiaho777/web-to-app/agents-md)<a href="https://agentmods.dev/instructions/shiaho777/web-to-app/agents-md"><img src="https://agentmods.dev/badge/instructions/shiaho777/web-to-app/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.
<a href="https://agentmods.dev/instructions/shiaho777/web-to-app/agents-md"><img src="https://agentmods.dev/badge/instructions/shiaho777/web-to-app/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.09931 | $0.09931 |
| Opus 5.5 | $0.03972 | $0.03972 |
| Sonnet 5.5 | $0.01986 | $0.01986 |
| Haiku 4.5 | $0.00993 | $0.00993 |
Grade A, and why
web-to-app 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 427 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Instructions for coding agents working in this repository.
Facing a problem
Do not start by looking for a way around the problem. Start by looking for the best direct solution.
Treat it as a frontal problem when technical work can meet it head-on. If a real technique, or a real breakthrough, can produce the correct behavior, try that and verify it. A failure written on the door is not a reason to stop before the mechanism has been checked.
Then judge, from the evidence, whether the problem is worth solving and worth the effort. Do not invent a fantasy fix, and do not spend that effort on something that is not actually broken or not ours to fix. Trying hard and declining the work are both decisions. Make the one the evidence supports.
Code style
- Do what you believe is right. Make the change complete and correct, not the smallest possible diff. If a fix calls for refactoring, renaming, or touching multiple files, do it.
- Fix root causes, not symptoms. Do not paper over a defect with catch-and-swallow, degraded fallbacks, or UI workarounds that leave the underlying behavior broken. Trace the failure to where it originates and repair it there — even when that is harder.
- Match the patterns and conventions already in the surrounding code.
- No comments in code. Do not add line, block, KDoc, Javadoc, XML, or other explanatory comments to source files. Clear names and small functions carry the intent; put the reasoning in the commit message, PR description, or documentation. This applies to every source language. Machine-readable directives that a tool requires (a userscript metadata block, a shebang, a compiler pragma) are not explanatory comments and stay. Existing comments are legacy debt: remove them when you touch the file; do not add new ones.
- Do not add copyright or license headers unless asked.
Project layout
| Path | Role |
|---|---|
app/ |
Full builder host: editor UI, export pipeline, runtimes, preview. |
shell/ |
Runtime template. Built to app/src/main/assets/template/webview_shell.apk via :shell:assembleRelease + :app:syncShellTemplateApk. |
feature-stacks/ |
Optional-dependency modules bundled as graftable packages (dex/ + stack.arsc at package-id 0x80+ + res/ + curated manifest.xml fragment + stack.json). Built by each module's bundle*Stack task, synced to app/src/main/assets/stacks/ by :app:syncStackBundles, injected into generated APKs only when the export config enables the feature (#1115). |
clone-host/ |
Host-side APK clone / identity reshape support library. Its DEX asset generation (syncCloneHostDex) is deliberately disabled (enabled = false, AV false-positive mitigation, e0d2d4d6) — AppCloner runs fail-soft without the asset. |
modules/ |
Module Market catalog (registry.json + per-module folders). |
sample-bundles/ |
Heavy sample dependency packs (python-*-shared.zip + sha256-pinned manifest.json) fetched on demand by SampleSharedPackManager — deliberately NOT in app/assets (saves ~30MB raw / ~7MB compressed from the host APK). Regenerate via scripts/build_sample_bundles.py. |
docs/ |
VitePress documentation site (guide / developer / extensions, EN + ZH), published to https://shiaho777.github.io/web-to-app/ by .github/workflows/docs-deploy.yml. Site URL paths map 1:1 to files under docs/ (/zh/... → docs/zh/...). |
scripts/ |
Build helpers and gates (check_config_field_drift.py). |
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.
- 4d ago Changed · +1 lines · +109 tokens per session ac7790b4c072
- 5d ago Changed · +8 lines · +143 tokens per session b2cbc194e709
- 8d ago Changed · +159 tokens per session fe61d24d5f3d
- 15d ago Changed · +9 lines · +255 tokens per session 7ea375c70926
- 24d ago Changed · +3 lines · +53 tokens per session 0f8cd28c9637
- 25d ago Changed · +55 tokens per session 3301014ad7ca
- 1mo ago Changed 781e5131d0de
- 1mo ago Changed · +39 lines · +1,372 tokens per session af76faef0f07
- 1mo ago Changed · -21 lines · -830 tokens per session dfcf41bea69c
- 1mo ago First seen · 388 lines · 8,615 tokens per session scan A 24725c7179ec
web-to-app AGENTS.md is an instructions file published in the GitHub repository shiaho777/web-to-app (7,196 stars, last pushed yesterday), licensed Unlicense. It adds 9,931 tokens to every session, about $0.0397 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.
web-to-app AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| web-to-app AGENTS.mdshiaho777/web-to-app | Instructions file | 7.2k | yesterday | Unlicense | A | 9,931 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |