toh-mobile

toh-mobile is a command for coding agents from wasintoh/toh-framework. It costs 24 tokens per session (1,561 once invoked), scanned A, original, MIT.

A command for turning an existing web app into a mobile-installable app. It can create a PWA, which users add to their phone from a browser, or a Capacitor project for publishing to the iOS and Android app stores.

In plain words
What is it for?
Use it to add home-screen installation, offline or notification support where available, or create store projects that can use phone features such as the camera and push notifications.
Why use it?
It lets one web codebase serve mobile users without immediately rebuilding the app as a separate native application.

Command

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 commands/wasintoh/toh-framework/toh-mobile
Clone the repo
git clone --depth 1 https://github.com/wasintoh/toh-framework

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 toh-mobile

README.md
[![agentmods](https://agentmods.dev/badge/commands/wasintoh/toh-framework/toh-mobile.svg)](https://agentmods.dev/commands/wasintoh/toh-framework/toh-mobile)
Your own site
<a href="https://agentmods.dev/commands/wasintoh/toh-framework/toh-mobile"><img src="https://agentmods.dev/badge/commands/wasintoh/toh-framework/toh-mobile.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,561 The whole file, excluding the scripts and references it only reads on demand.
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.00024 $0.01561
Opus 5 $0.00012 $0.00781
Sonnet 5 $0.00005 $0.00312
Haiku 4.5 $0.00002 $0.00156

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

Security

Grade A, and why

toh-mobile 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.

src/commands/toh-mobile.md · 100 lines

How it starts

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

/toh-mobile — Web → Mobile (one codebase) 📱

/toh-mobile          → แปลงแอปปัจจุบันเป็น PWA (default): ผู้ใช้ Add to Home Screen เห็นแอปบนมือถือใน ~1 นาที
/toh-mobile store    → เพิ่ม Capacitor: ทำ iOS/Android project จริง ขึ้น App Store / Play Store

🧭 IRON RULE

codebase เดียว — web ที่มีอยู่คือตัวแอป เราแค่ห่อมันให้กลายเป็น mobile (pattern เดียวกับ /toh-line) อย่ารีบไปทาง store ถ้า PWA พอ — PWA คือ "เฮ้ย ง่าย" ที่เห็นผลใน session เดียว


เลือกทางไหน? (อธิบายภาษาคน)

PWA (default) Capacitor (store)
ผู้ใช้ติดตั้งยังไง เปิดเว็บ → Add to Home Screen (ไม่ลงอะไร) โหลดจาก App Store / Play Store
เห็นผลเร็วแค่ไหน ~1 นาที เป็นวัน–สัปดาห์ (ต้องรีวิว)
ต้องมีบัญชีอะไร ไม่ต้อง Apple Developer ($99/ปี) + Google Play ($25 ครั้งเดียว)
native จริงไหม เข้าถึง API เว็บ (offline, notification บนบางเครื่อง) camera, push, native plugins เต็มตัว
เมื่อไหร่ควรใช้ MVP, ทดสอบไอเดีย, แจกลิงก์ให้ลูกค้าลองเลย ต้องขึ้น store จริง / ต้องใช้ native API ที่ PWA ทำไม่ได้

เริ่มที่ PWA เสมอ → พอจำเป็นต้องขึ้น store ค่อยสั่ง /toh-mobile store (ต่อยอดจากของเดิม ไม่ต้องเขียนใหม่)


Track A — PWA (default)

เป้าหมาย: ผู้ใช้เปิดเว็บบนมือถือ → กด Add to Home Screen → มี icon แอปบน home จริง เปิดเต็มจอ

  1. Web app manifestapp/manifest.ts (Next.js) : name, short_name, display: "standalone", theme/background color, start_url
  2. Icons — generate ครบชุด (192, 512, maskable, apple-touch-icon) จาก logo เดียว
  3. Service worker — cache แอปให้เปิดได้ตอนออฟไลน์พื้นฐาน (แนะนำ Serwist สำหรับ Next.js; หรือ SW เขียนเองถ้าง่ายพอ)
  4. Install prompt — ดัก beforeinstallprompt แสดงปุ่ม "เพิ่มลงหน้าจอหลัก" เอง (Android/desktop) · iOS ต้องบอกวิธีด้วยมือ
  5. สอน Add to Home Screen ภาษาคน:
    • iPhone (Safari): กดปุ่ม Share (สี่เหลี่ยมลูกศรขึ้น) → เลื่อนหา "Add to Home Screen" → Add
    • Android (Chrome): กดเมนู ⋮ มุมขวาบน → "Add to Home screen" / "Install app" → ติดตั้ง
  6. Verify: เปิดบนมือถือจริง → เพิ่มลง home → เปิดจาก icon แล้วเต็มจอ (ไม่มี browser bar) + ลองปิดเน็ตดูว่ายังเปิดได้

Read the full file on GitHub · 100 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 First seen · 100 lines · 24 tokens per session scan A 5e672cb9f2f2

Subscribe to this mod's changes

toh-mobile is a command published in the GitHub repository wasintoh/toh-framework (95 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 1,561 once invoked, about $0.0001 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.