plan

A command for exploring a codebase and turning a task into a detailed implementation plan. It writes the plan to a designated planning folder and does not implement the code.

In plain words
What is it for?
Reviewing a repository, comparing design options, consulting specialized agents when enabled, and saving a bite-sized plan for later execution.
Why use it?
It separates deciding what to build from changing files, which helps clarify scope, architecture, risks, and the steps needed before implementation 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/restarter/lets-workflow/plan
Clone the repo
git clone --depth 1 https://github.com/restarter/lets-workflow
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,611 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.00017 $0.06611
Opus 5 $0.00009 $0.03306
Sonnet 5 $0.00003 $0.01322
Haiku 4.5 $0.00002 $0.00661

Measured yesterday against content hash 0767c63fe084, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 yesterday.

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.

plugins/lets/commands/plan.md · 785 lines

How it starts

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

Plan

Turn a task or idea into a detailed implementation plan. Clarifies scope, explores codebase, discusses approaches with user, designs architecture for selected approaches, evaluates with experts, then writes a bite-sized plan.

HARD-GATE: This command produces a plan, NOT code. No files are modified except .lets/plans/. The command ENDS when the plan is saved - implementation starts ONLY when the user runs /lets:execute. Nothing the user says after the plan ("ok", "approved", a question) starts it.

IMPORTANT: If the spec below invokes any deferred tool (e.g. AskUserQuestion), you MUST load and call it as specified. Never skip the call, never substitute a default answer of your own — the tool invocation is part of the contract. This is critical.

--fast mode

/lets:plan --fast (combinable with a task-id or feature description, e.g. /lets:plan lets-abc --fast) skips the three subagent-dispatch phases - Step 4 (explorer agents), Step 6 (architect agents), Step 7 (expert agents) - and replaces them with orchestrator-only equivalents (read files yourself, draft approaches inline, self-evaluate risks). Use it when the user explicitly wants a collaborative talk-through without subagent budget: "let's just plan it together, I'll review". Everything else - clarifying questions, interactive discussion, plan format, tracker recording, the saved file - is identical to the full flow. The plan's shape doesn't change; only how it's built.

When --fast is not set, run the full flow exactly as written.

Step 1: Capture the Goal

Parse the argument: strip a --fast token if present (sets fast mode); the rest is the feature goal.

If a feature goal was provided: use it.

If no goal provided: ask:

"What are you trying to build or change?"

Wait for answer before proceeding.

Step 2: Active Task Context

Use the detect-task skill to find the active task: Skill(skill: "lets:detect-task").

If Step 1 captured an explicit <task-id> argument (e.g. an interactive --flow plan launch into a fresh worktree), resolve-and-claim it per the detect-task explicit task-id argument convention - pointer only, don't re-paraphrase.

Read the full file on GitHub · 785 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. yesterday First seen · 785 lines · 17 tokens per session scan A 0767c63fe084

Subscribe to this mod's changes

plan is a command published in the GitHub repository restarter/lets-workflow (17 stars, last pushed 9d ago), licensed MIT. It adds 17 tokens to every session and 6,611 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.