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.
npx agentmods add commands/wasintoh/toh-framework/toh-mobilegit clone --depth 1 https://github.com/wasintoh/toh-frameworkWrote 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/commands/wasintoh/toh-framework/toh-mobile)<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>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 | $0.00024 | $0.01561 |
| Opus 5 | $0.00012 | $0.00781 |
| Sonnet 5 | $0.00005 | $0.00312 |
| Haiku 4.5 | $0.00002 | $0.00156 |
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.
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 จริง เปิดเต็มจอ
- Web app manifest —
app/manifest.ts(Next.js) : name, short_name,display: "standalone", theme/background color, start_url - Icons — generate ครบชุด (192, 512, maskable, apple-touch-icon) จาก logo เดียว
- Service worker — cache แอปให้เปิดได้ตอนออฟไลน์พื้นฐาน (แนะนำ Serwist สำหรับ Next.js; หรือ SW เขียนเองถ้าง่ายพอ)
- Install prompt — ดัก
beforeinstallpromptแสดงปุ่ม "เพิ่มลงหน้าจอหลัก" เอง (Android/desktop) · iOS ต้องบอกวิธีด้วยมือ - สอน Add to Home Screen ภาษาคน:
- iPhone (Safari): กดปุ่ม Share (สี่เหลี่ยมลูกศรขึ้น) → เลื่อนหา "Add to Home Screen" → Add
- Android (Chrome): กดเมนู ⋮ มุมขวาบน → "Add to Home screen" / "Install app" → ติดตั้ง
- Verify: เปิดบนมือถือจริง → เพิ่มลง home → เปิดจาก icon แล้วเต็มจอ (ไม่มี browser bar) + ลองปิดเน็ตดูว่ายังเปิดได้
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 First seen · 100 lines · 24 tokens per session scan A 5e672cb9f2f2
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.
Other commands, from other repositories
flutter-build
Fix Dart analyzer errors and Flutter build failures incrementally. Invokes the dart-build-resolver agent for minimal, surgical fixes.
flutter-review
Review Flutter/Dart code for idiomatic patterns, widget best practices, state management, performance, accessibility, and security. Invokes the flutter-reviewer agent.
flutter-test
Run Flutter/Dart tests, report failures, and incrementally fix test issues. Covers unit, widget, golden, and integration tests.
gradle-build
Fix Gradle build errors for Android and KMP projects.
doctor
Diagnose installation health. Check Node, CDP bridge, rn-fast-runner (iOS), rn-android-runner (Android), maestro-runner, simulators, Metro, CDP, injected helpers, ffmpeg, physical devices, plugin version, Vercel rules sync. Reports what's missing — does NOT modify your project.
brainstorm
Command dispatcher for brainstorm.