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-plangit 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-plan)<a href="https://agentmods.dev/commands/wasintoh/toh-framework/toh-plan"><img src="https://agentmods.dev/badge/commands/wasintoh/toh-framework/toh-plan.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.00016 | $0.01337 |
| Opus 5 | $0.00008 | $0.00668 |
| Sonnet 5 | $0.00003 | $0.00267 |
| Haiku 4.5 | $0.00002 | $0.00134 |
Grade A, and why
toh-plan 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 5d 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 — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/toh-plan - The Brain v3.0 🧠
Version: 3.0.0 Command:
/toh-plan [request หรือ PRD]· alias/toh-pPhilosophy: เห็นแผนก่อน อนุมัติครั้งเดียว แล้วหนูสร้างเองจนจบ
คำสั่งนี้สำหรับพี่โตที่ อยากเห็นแผนก่อนลงมือ — หนูวิเคราะห์ เขียนแผนเป็นไฟล์ .toh/plan.md คุยปรับกันได้เต็มที่ ขอไฟเขียวแค่ ครั้งเดียว จากนั้นสร้างทั้งแผนอัตโนมัติ (โปรเจคใหม่ที่ไม่ต้องดูแผน → /toh-vibe)
ใช้แกน 4 Moves: Intent → Draft → Confirm → Execute
🧭 4 Moves
1. Intent — เข้าใจก่อน
อ่าน memory ก่อนเสมอ (block ด้านล่าง) แล้ววิเคราะห์ request/PRD: ธุรกิจอะไร ผู้ใช้เป็นใคร ฟีเจอร์ไหนสำคัญจริง แตะ UI / logic / backend อะไรบ้าง — ช่วงนี้คุยกับพี่โตได้อิสระ ถาม-ตอบ-ปรับได้เต็มที่ ยังไม่ต้องรีบเขียนแผน
2. Draft — แผนคือไฟล์ ไม่ใช่ข้อความแชท
เขียน .toh/plan.md ตาม schema ใน orchestration-protocol Section D (Goal · Stack · Pages · Done When · Phases ที่แต่ละ task มี T-ID + agent + file path จริง + [P] เมื่อขนานได้ + Checkpoint ปิดท้ายทุก phase · Status: draft):
- โปรเจคที่มี UI →
T000 design-reviewer — generate root DESIGN.mdเป็น task แรกเสมอ (design identity ก่อน UI ทุกชิ้น) - Phase 1 = งาน UI shell ให้พี่โตเห็นหน้าจอเร็วที่สุด
แล้วเล่าให้พี่โตฟังแบบ ย่อ: เป้าหมาย · กี่ phase · กี่ task · ประมาณกี่นาที — ห้าม dump ตารางยักษ์หรือทั้งไฟล์ใส่แชท
3. Confirm — ด่านอนุมัติด่านเดียว
ปิดท้ายด้วย 3 ทางเลือกนี้เสมอ:
- Go — สร้างทั้งแผนอัตโนมัติ ตรวจเองทุกขั้น เสร็จแล้วค่อยรายงาน (recommended)
- ปรับแผน — บอกได้เลยว่าแก้ตรงไหน
- เก็บไว้ก่อน — แผนอยู่ที่
.toh/plan.mdสั่ง/toh-vibeเมื่อไหร่ก็ได้
พร้อมบอกให้ชัด: หลัง "Go" หนูจะไม่หยุดถามระหว่าง phase — ทำยาวจนเสร็จหรือจนเจอ blocker จริงๆ เท่านั้น
4. Execute — Go แล้วไปยาว
พี่โตพิมพ์ "Go" → ตั้ง Status: approved ใน plan.md แล้วรัน THE TOH LOOP (orchestration-protocol Section E) ทั้งลูป: survey → pick task → implement → QC gate ที่รันจริงและ quote ผลจริง → tick checkbox → task ถัดไปโดยไม่ถาม จนทุก Done When ผ่าน
จบงานปิดด้วย engineer-harness Section C (announce block + 3 next actions) — ตามสัญญานั้นเป๊ะ ไม่ improvise
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.
- 5d ago First seen · 83 lines · 16 tokens per session scan A aaef0a8aa996
toh-plan is a command published in the GitHub repository wasintoh/toh-framework (95 stars, last pushed 2d ago), licensed MIT. It adds 16 tokens to every session and 1,337 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
brainstorm
Command dispatcher for brainstorm.
start
Operate in Agentic Loop mode: create or refine the durable task record, route maintainer, engineer, and auditor roles, verify evidence, certify the finished work unit, and close out according to the project backend.
plan
Command dispatcher for plan.
planflow
Draft a plan and get it approved as an editable flowchart in the browser before executing.
hello
Trivial hello command from example. Used to verify plugin installation works end-to-end.
commands
Complete reference for all pair programming session commands.