Course contents
Decomposition: Least-to-Most & Subproblems
Break a hard task into ordered stages, check each result, and feed it forward. Learn when that beats one big call to a reasoning model, and when it doesn't.
Reasoning models handle the sub-steps of a problem in their thinking, so why break a task apart yourself? Because one call gives you one answer to check. Anthropic's guide says Claude now handles most multistep reasoning internally, and that explicit chaining “is still useful when you need to inspect intermediate outputs or enforce a specific pipeline structure.” When later stages depend on earlier results, separate calls let you verify each result before anything builds on it, run cheap stages on cheap models, and see where a wrong conclusion came from.
Each stage succeeds with some probability, and the whole run needs every stage to succeed. Turn on a check between stages and watch what happens.
Move the controls and watch what changes.
At 95% per stage over 20 stages, the whole run succeeds about 36% of the time. What does turning on the check (catching 80% of failures) do?
Decompose the task, not the thinking
There are two kinds of step-by-step, and current models want only one of them from you. Splitting a task into stages, each with its own inputs, output and check, is still your design work. Scripting the reasoning inside a stage is not: Anthropic says “a prompt such as ‘think thoroughly’ often produces better reasoning than a hand-written step-by-step plan.” Give each stage a clear goal and a check, and let the model plan how to reach it.
For a pricing decision, should each piece be its own stage, or left to the model's thinking within a stage?
Choosing the wording of the final summary
Least-to-most prompting (Zhou and colleagues, 2022) is the classic version: ask for a ladder of subquestions first, solve them from the bottom, and feed each verified answer forward as settled fact. The steps below run it on a real pricing decision.
Watch the one-shot answer blur the hard parts
Give a model a compound question in one go and it tends to answer the vivid parts, skim the rest, and blend everything into a confident recommendation. Run this and grade it honestly: which considerations got real numbers, and which got hand-waving?
promptOur SaaS charges $9/month and has 2,000 subscribers, 4% monthly churn, and ~300 new signups a month from ads costing $3,000/month. Should we raise the price to $12? Consider revenue, likely churn impact, how the change affects payback on ad spend, and what we should test first. Give a recommendation.VerifyYou get a fluent answer, and on close reading at least one consideration was handled with a hand-wave instead of arithmetic.Ask for the decomposition, not the answer
Have the model produce the ladder of subquestions, ordered from what's answerable now to what depends on everything else. Ask for the plan alone so you can inspect and fix it before any reasoning builds on it.
promptI need to decide whether to raise our SaaS price from $9 to $12/month. Don't answer the question yet. First, list the subquestions I'd need to answer, ordered so each one depends only on the ones before it. Start from simple calculations and build toward the final recommendation. Number them.VerifyYou get an ordered ladder (current revenue, then churn scenarios, then break-even, then the recommendation) with no answers attached.Solve the first rung on its own
Work the ladder from the bottom, one subquestion per prompt. Early rungs are usually arithmetic the model handles near-perfectly in isolation: exactly the parts a one-shot answer blurs. Check the numbers yourself; they're the foundation.
promptContext: 2,000 subscribers at $9/month, 4% monthly churn, 300 signups/month, $3,000/month ad spend. Answer ONLY subquestion 1: What is current monthly recurring revenue (MRR), and what would it be at $12 with the subscriber count unchanged? Show the arithmetic. Don't discuss churn or the recommendation yet.VerifyClean, checkable numbers ($18,000 and $24,000), and you've confirmed them, with no opinions leaking in early.Feed verified answers forward
Each later rung receives the established results as settled fact. That's the chaining in least-to-most: the model reasons about one new thing at a time while standing on ground you've already verified.
promptEstablished so far (verified): - Current MRR: $18,000. At $12 with no churn change: $24,000 (+$6,000). - Break-even: the raise still wins if we keep at least 1,500 subscribers (75%). Answer ONLY this subquestion: for a ~33% price increase on a $9 product, what churn outcomes are plausible (best / expected / worst case), and what does MRR look like in each? Use the established numbers. Don't give the final recommendation yet.VerifyThe model reasons only about churn scenarios, anchored to your verified break-even, without re-deriving or drifting from it.Synthesize, and decide when the pattern is worth it
The final prompt assembles the established answers and asks only for the judgment. Use the multi-call pattern for compound, high-stakes or chronically fuzzy tasks. For a task whose structure you already know and don't need to audit, one well-specified call to a reasoning model is usually enough.
promptEstablished: 1. MRR: $18,000 today; $24,000 at $12 if churn holds. 2. Break-even retention: 75% of current subscribers. 3. Churn scenarios: best +$5,400/mo, expected +$3,600/mo, worst -$900/mo. Using only these established results: give a recommendation, name the single riskiest assumption, and propose the cheapest test to run before committing (for example, new-signups-only pricing, or keeping existing users on the old price). Three short paragraphs.VerifyThe recommendation cites the established numbers, and you could audit every figure it rests on, because you already did.
Plain-English definitions from the AI Coding Dictionary.