toh-plan

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

A planning command that creates a written software plan for review and approval before implementation. After approval, it carries out the plan autonomously.

In plain words
What is it for?
Use it to turn a request or product requirements document (PRD) into an implementation plan covering the stack, screens, work phases, assigned agents, and checkpoints.
Why use it?
It lets you check the proposed goal, technical approach, pages, tasks, file locations, and completion criteria before development begins.

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-plan
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-plan

README.md
[![agentmods](https://agentmods.dev/badge/commands/wasintoh/toh-framework/toh-plan.svg)](https://agentmods.dev/commands/wasintoh/toh-framework/toh-plan)
Your own site
<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>
Per session 16 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,337 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.00016 $0.01337
Opus 5 $0.00008 $0.00668
Sonnet 5 $0.00003 $0.00267
Haiku 4.5 $0.00002 $0.00134

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

Security

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.

src/commands/toh-plan.md · 83 lines

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-p Philosophy: เห็นแผนก่อน อนุมัติครั้งเดียว แล้วหนูสร้างเองจนจบ

คำสั่งนี้สำหรับพี่โตที่ อยากเห็นแผนก่อนลงมือ — หนูวิเคราะห์ เขียนแผนเป็นไฟล์ .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 ทางเลือกนี้เสมอ:

  1. Go — สร้างทั้งแผนอัตโนมัติ ตรวจเองทุกขั้น เสร็จแล้วค่อยรายงาน (recommended)
  2. ปรับแผน — บอกได้เลยว่าแก้ตรงไหน
  3. เก็บไว้ก่อน — แผนอยู่ที่ .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

Read the full file on GitHub · 83 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. 5d ago First seen · 83 lines · 16 tokens per session scan A aaef0a8aa996

Subscribe to this mod's changes

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.