Sequential Decomposition: One Complex Prompt → Three Simple Ones
TL;DR
Sequential decomposition is a technique that replaces one complex prompt with a chain of simple ones. Instead of "analyze the problem, propose solutions and assess the risks", you make three separate requests: diagnosis → action plan → risk assessment. Each one receives the output of the one before it.
The key finding: When you ask an LLM to do several things at once, you get vague answers like "check the logs" or "review recent changes". In the study, a single comprehensive prompt produced answers like that 98.3% of the time. The reason: the model tries to satisfy several competing requirements in one answer and spreads its attention thin.
The gist of the method: Break the task into sequential steps. Each prompt does one thing. You plug the output of the first into the second, and the output of the second into the third. What comes out is concrete, actionable recommendations instead of generic phrases.
Want this for your own case? Apply this study to your task: AI adapts its method to what you are working on and writes the prompt.
Method Blueprint
STEP 1: Diagnosis → cause of the problem
↓ (output is passed along)
STEP 2: Planning → concrete actions
↓ (output is passed along)
STEP 3: Risk assessment → what could go wrong
↓
FINAL: A structured plan with rationale
All three steps happen in a single chat, one after another. No code or API needed.
Example in Practice
Task: A Google Ads search campaign isn't producing leads: the budget gets spent, but there are no conversions. You need to find the cause and a plan to fix it.
Prompt 1 (diagnosis):
You are a diagnostics specialist. Analyze the situation and identify the root cause:
Google Ads search campaign:
- Budget: $1,500/month, 100% spent
- CTR: 2.1% (normal for the niche)
- Impressions: 45,000/month
- Clicks: 945
- Leads: 3
- Site conversion rate: 0.3%
Landing page: outsourced bookkeeping for freelancers and sole proprietors
Changes this month: new design for the lead form
What is the root cause of the missing leads?
Prompt 2 (planning):
You are an action-planning specialist. Here is the root cause:
[paste the output of prompt 1, for example: "The new lead form requires 7 fields instead of 3, and conversion dropped because of the friction"]
Create a step-by-step fix plan with:
- Concrete actions (what exactly to change)
- Success metrics (which numbers to track)
- Timelines (when to expect results)
Be specific: name the elements, values and tools.
Prompt 3 (risk assessment):
You are a risk assessment specialist. Assess the risks of these actions:
[paste the output of prompt 2, the action plan]
Context:
- Peak demand season (March-April, tax filing deadline)
- The lead form collects data for the CRM
- Competitors are advertising aggressively
What are the risks of each action? How can they be reduced?
Result: After three prompts you get: a specific cause (not "something's wrong with the site" but "the lead form has X fields, it needs Y"), a plan with measurable steps, and a risk assessment with mitigations. Each block will be detailed because the model was focused on a single task.
Why It Works
The LLM weakness: When one prompt contains several tasks, the model tries to please all of them at once. The result is a compromise where every part comes out shallow. The study showed that with comprehensive prompts the model produces 80 times less specific recommendations.
The LLM strength: Models handle narrow, well-defined tasks extremely well. A short focused prompt (50-100 tokens) delivers better results than a long multi-task one (200+ tokens).
How the method exploits this: We break a complex task into a chain of simple ones. Each prompt has one goal. Context is passed along through the outputs: the second prompt knows the first one's conclusions, the third knows the second one's. This creates progressive deepening instead of parallel dilution.
Control knobs:
- Number of steps → 2 for simple tasks, 4-5 for complex ones
- Agent roles → replace "diagnostics specialist" with concrete expertise ("financial auditor", "UX researcher")
- Output format → add "as a checklist" or "with priorities" for more structure
Prompt Template
Step 1: Diagnosis
You are a diagnostics specialist. Analyze the situation and identify the root cause:
{problem description with concrete data}
What is the root cause?
Step 2: Planning
You are a planning specialist. Here is the root cause:
{output of step 1}
Create a step-by-step action plan with:
- Concrete actions
- Success metrics
- Timelines
Be specific: name {exactly what needs naming for your task}.
Step 3: Assessment
You are a risk assessment specialist. Assess the risks of these actions:
{output of step 2}
Context:
{constraints, deadlines, specifics of the situation}
What are the risks? How can they be reduced?
Placeholders:
{problem description}: symptoms, metrics, what changed{output of step N}: copy the model's answer from the previous prompt{context}: constraints, deadlines, what can't be changed
Limitations
⚠️ More time: Three prompts instead of one = three waits for a response. That can matter for urgent tasks.
⚠️ Manual context passing: You have to copy outputs between prompts. In long chains that gets tedious.
⚠️ Not for simple tasks: If one prompt handles the task well, decomposition is overkill. Use it for complex problems with several dimensions.
⚠️ Errors compound: If the first step produces a wrong diagnosis, the whole chain heads down the wrong path. Check the intermediate results.
How They Tested It
The study ran 348 controlled trials on the same scenario: an incident with an authentication service. Three approaches were compared: manual dashboard analysis (baseline), one comprehensive prompt (single-agent), and a chain of three specialized prompts (multi-agent).
They used a small model, TinyLlama (1B parameters), on purpose, so the results would be reproducible on ordinary hardware. Importantly, all the "agents" are the same model, just with different prompts. No magic, no different APIs.
They measured three things: validity (can it actually be executed technically), specificity (are there concrete commands, versions, parameters), and correctness (how closely it matches the right solution).
The results stunned the researchers: at the same speed (~40 seconds), the prompt chain produced recommendations that were 80 times more specific and 140 times more correct. On top of that, the chain showed zero variance: consistently identical quality across all 116 trials. The single agent was all over the place: occasionally it produced something meaningful (1.7% of cases), usually just generic phrases.
The main insight: the value isn't speed, it's determinism. When you can guarantee quality, you can use it in production.
Original Prompt from the Paper
Context: Three sequential prompts for analyzing an incident with an authentication service.
Agent 1 (Diagnosis Specialist):
You are a diagnostic specialist. Analyze the following telemetry and identify the root cause of the incident:
Service: auth-service v2.4.0
Error rate: 45% on /api/v1/login
Database: 85% connection pool utilization
Recent deployment: v2.4.0 at 14:23 UTC
What is the root cause?
Agent 2 (Remediation Planner):
You are a remediation planner. Given this root cause:
[Agent 1 output: "Database connection pool exhaustion due to connection leak in v2.4.0"]
Create step-by-step remediation actions with:
- Specific commands (e.g., kubectl, systemctl)
- Version numbers
- Configuration parameters
Be concrete and actionable.
Agent 3 (Risk Assessor):
You are a risk assessor. Evaluate the risks of these proposed actions:
[Agent 2 output: "1. Rollback auth-service to v2.3.0 using kubectl rollout undo..."]
Context:
- Production environment
- Peak traffic hours
- Previous stable version: v2.3.0 (deployed 48h ago)
Assess risks and suggest mitigations.Adaptations and Extrapolations
💡 Adapting it for business decisions
The same structure works for strategic decisions, not just technical incidents:
Step 1: Analysis
You are a business analyst. Analyze the situation:
Online store selling kids' products, Denver
- Revenue: $85,000/month, down 15% over the quarter
- Average order value: $64 (was $76)
- Repeat purchases: 12% (was 18%)
- Changes: launched a loyalty program 3 months ago
What is the root cause of the decline?
Step 2: Solutions
You are a strategist. Here is the cause: {output of step 1}
Propose 3 solutions with:
- Concrete actions
- Expected impact in dollars
- Implementation timeline
Step 3: Risks
You are a risk manager. Assess the risks: {output of step 2}
Context: the budget for changes is $8,000, and peak season starts in 2 months.
🔧 Technique: add an "antagonist role"
Between planning and risk assessment you can insert a fourth step, a critique of the plan:
You are a skeptic looking for weak spots. Here is the plan: {plan}
Find the 3 biggest problems with this plan. Why might it fail?
Pass the critique into the final step, and the plan becomes more resilient to real-world obstacles.
Resources
- Paper: "Multi-Agent LLM Orchestration Achieves Deterministic, High-Quality Decision Support for Incident Response"
- Author: Philip Drammeh, independent researcher
- Code and data: github.com/Phildram1/myantfarm-ai
- Related work: ChatDev (multi-agent systems for software development), Site Reliability Engineering by Google