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.
git clone --depth 1 https://github.com/alicicek/tale-modeWrote 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/alicicek/tale-mode/plan-phase)<a href="https://agentmods.dev/commands/alicicek/tale-mode/plan-phase"><img src="https://agentmods.dev/badge/commands/alicicek/tale-mode/plan-phase/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.
<a href="https://agentmods.dev/commands/alicicek/tale-mode/plan-phase"><img src="https://agentmods.dev/badge/commands/alicicek/tale-mode/plan-phase.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00026 | $0.01313 |
| Opus 5.5 | $0.00010 | $0.00525 |
| Sonnet 5.5 | $0.00005 | $0.00263 |
| Haiku 4.5 | $0.00003 | $0.00131 |
Grade A, and why
plan-phase 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 1mo 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 — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Plan $ARGUMENTS at a high bar. If your tooling has a plan mode, enter it —
and keep recon prompt-hygiene: prefer the dedicated read tools (Read/Grep/Glob)
over shell, keep shell recon to plain single-purpose read-only commands (simple
ls/cat/grep/git log chains auto-approve via the bundled plan-mode hook),
and route loop-heavy sweeps through read-only sub-agents. Do
not skip a step:
-
Open with a grill (only when the brief leaves real gaps). Before designing, close the owner-shaped gaps interview-style: outcome-first questions (the owner decides outcomes; the machine owns mechanisms), ONE at a time, each with a recommended answer; challenge vague answers ("fast" = what latency?). Never ask what the code or live docs can answer — that's §1's job. A settled brief skips this step.
-
Verify, don't trust. Launch a read-only/Explore agent to read the relevant code and sources; confirm every claim you'll rely on; cite file:line. Correct any stale assumption explicitly ("the brief says X; the code shows Y at
<file:line>"). For any external framework / library / SDK / CLI you'll build on — especially fast-moving or RC ones — confirm the CURRENT setup against official docs (Context7 / web), not training memory; scaffold commands, adapter conventions, and build-output paths are top causes of "looked right, didn't run". -
Decisions with receipts. A table
Decision | Source, where Source is a verbatim quote from the user, an answer you asked for, or "my judgment — rationale: …". Never inscribe a constraint nobody gave you. If the task came from an open-ended discussion with no written brief, first distil that conversation's conclusions into the receipts table (or a short brief file) — don't plan against un-captured intent; the plan is only as sound as the receipts it cites. -
Ask the real forks. Use AskUserQuestion for genuine, load-bearing choices you can't resolve from the task / code / a sensible default — batched. Label each option by authority: "In plan", "Engineering alternative", or "Out of scope". Do not mark an option "Recommended" if it contradicts the active plan. If you want to recommend changing the plan, explicitly say "recommend changing the plan" and cite the exact plan line being overridden.
-
Adversarial review — fresh eyes, looped. Run the
plan-revieweragent on your draft as a hostile, fresh-context reader (it can't see the frame you wrote in): "try to break this plan — what's stale vs the code, what's a design hole, what's the worst-case input, what will the verification miss?" Fold every confirmed finding in with an ID (C1, C2, …), then re-run it on the revised plan — a fix can open a new hole — until a fresh pass surfaces nothing material (cap the rounds; gains saturate fast). This is where design holes get caught before they cascade into every later phase. -
Invariants. List what must not break (frozen contracts, do-not-touch, security / privacy / data / money) and assert each in the verification section.
-
Decompose & sequence — size to sessions. If the task is larger than one sitting, split it into independently-shippable phases — each sized to one session / one PR / one coherent verify-loop, with its own done-criteria, gate, and rollback. A phase you can't finish and verify in a single session is too big; split it. Keep each phase thin (intent + gate), not step-by-step — the executor re-derives specifics against live code at kickoff. Name an executor per workstream (builder/codex/runner/main-loop, per the owner's CLAUDE.md roles table) — the delegation decision belongs at plan time, not mid-build; main-loop workstreams carry a one-line justification (taste or interdependence). Order them foundation-first (the dependency root, gated green), then independent fan-out where parallelizable. For a multi-phase plan, emit a progress tracker and a
/tale-mode:kickoff-phase <this-file> "Phase N"cue per phase. -
Runnable gates. Exact commands with expected output — never "test it" — and note what each check can't catch. A clean diff is not evidence; run it. For each phase, name the behavioral check that proves it works (
/verify;/runfor anything user-facing) and — for phases touching auth/data/money/security/storage — the/code-review+/security-reviewthe executor runs before the PR; flag any check blocked on not-yet-provisioned services as a deferral the kickoff carries. Every phase's gate list ends with ONE end-to-end proof — a single runnable check that the phase's work is connected through the whole system, not just unit-green. Fail-case test each gate at plan time — inject exactly what it should catch and confirm it goes red; a green gate can bless a bug, and a gate that can't fail isn't a gate. -
Rollback + out-of-scope + known-untestable. Name them.
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.
- 1mo ago First seen · 74 lines · 26 tokens per session scan A 51da4d566470
plan-phase is a command published in the GitHub repository alicicek/tale-mode (37 stars, last pushed 3mo ago), licensed MIT. It adds 26 tokens to every session and 1,313 once invoked, about $0.0001 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.
Other commands, from other repositories
plan
Turn an approved spec into an implementation plan an engineer with zero context could execute — with a quality controller that blocks placeholders and hollow tasks.
init
Install the formatters this repository needs, with every command visible before it runs.
simplify
The over-engineering review: five tags (delete, stdlib, native, yagni, shrink), a mandatory replacement per finding, and a real null result when there is nothing to cut.
audit
Onboard an existing codebase: every domain's checks over the whole tree, then a triaged plan to bring it in line.
git
The pre-finish status: branch, hygiene findings, message checks, workflow lint, template state.
test
Run the repository's actual test suite: every ecosystem's canonical runner — NOT run is never green.