web-to-app: Instructions file for Codex

AGENTS.md

web-to-app AGENTS.md is an instructions file for Codex, OpenCode from shiaho777/web-to-app. It costs 9,931 tokens per session, scanned A, original, Unlicense.

Repository instructions that tell coding agents how the project is organised, how its parts connect, and which coding and translation conventions to follow.

In plain words
What is it for?
They help with navigating the builder app, runtime template, modules, documentation, build scripts, and internationalisation work.
Why use it?
They give an agent the project context it needs before changing files, reducing incorrect edits and mismatches with existing patterns.

Instructions file for CodexOpenCode

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

This is shiaho777/web-to-app's own configuration. It tells Codex and OpenCode how to work on web-to-app 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 web-to-app configures →

About the project

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.

shiaho777/web-to-app · 7,196 stars · on GitHub · shiaho777.github.io

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/shiaho777/web-to-app/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/shiaho777/web-to-app

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 web-to-app AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/shiaho777/web-to-app/agents-md/github.svg)](https://agentmods.dev/instructions/shiaho777/web-to-app/agents-md)
Your own site
<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.

agentmods 80×15 button for web-to-app AGENTS.md

Your own site · 80×15
<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>
Per session 9,931 This file is loaded in full into every session.
When invoked 9,931 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.09931 $0.09931
Opus 5.5 $0.03972 $0.03972
Sonnet 5.5 $0.01986 $0.01986
Haiku 4.5 $0.00993 $0.00993

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

Security

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.

AGENTS.md · 427 lines

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).

Read the full file on GitHub · 427 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. 4d ago Changed · +1 lines · +109 tokens per session ac7790b4c072
  2. 5d ago Changed · +8 lines · +143 tokens per session b2cbc194e709
  3. 8d ago Changed · +159 tokens per session fe61d24d5f3d
  4. 15d ago Changed · +9 lines · +255 tokens per session 7ea375c70926
  5. 24d ago Changed · +3 lines · +53 tokens per session 0f8cd28c9637
  6. 25d ago Changed · +55 tokens per session 3301014ad7ca
  7. 1mo ago Changed 781e5131d0de
  8. 1mo ago Changed · +39 lines · +1,372 tokens per session af76faef0f07
  9. 1mo ago Changed · -21 lines · -830 tokens per session dfcf41bea69c
  10. 1mo ago First seen · 388 lines · 8,615 tokens per session scan A 24725c7179ec

Subscribe to this mod's changes

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.

Related

web-to-app AGENTS.md compared with instructions from other repositories

web-to-app AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
web-to-app AGENTS.mdshiaho777/web-to-appInstructions file7.2kyesterdayUnlicenseA9,931Codex, 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