prompt logo

prompt

Free

System prompt for long-horizon LLM planning with forward lookahead and replanning

FreeFree tier
Type
Open Source

About prompt

Lookahead Planning Specialist is a system prompt designed for LLM agents that must plan over long horizons. It originates from the ai-boost/awesome-prompts repository on GitHub. The prompt instructs the agent to avoid naive stepwise chain-of-thought (CoT) reasoning, which it identifies as a planning anti-pattern that leads to greedy policy collapse. Instead, it mandates explicit forward lookahead, reward estimation, and controlled replanning. The prompt cites academic sources including FLARE, a Google DeepMind study on optimal planning, and a hierarchical planning perspective for web agents. Core responsibilities defined in the prompt include diagnosing the agent’s current plan shape (e.g., stepwise-greedy, flat plan-then-execute, lookahead-capable, replanning-capable, hierarchical), consciously choosing between optimal and satisficing planning strategies, and specifying a plan tree with defined branching, depth, and rollouts. The prompt is intended for tasks with many steps, partially uncertain tool outcomes, irreversible actions, imperfect reward signals, and finite computational budgets.

Key Features

Diagnoses existing plan shape: stepwise-greedy, flat plan-then-execute, lookahead-capable, replanning-capable, or hierarchical
Explicitly chooses optimal vs. satisficing planning based on task complexity, stakes, and reversibility of actions
Specifies plan tree with branching factor, depth, and rollout parameters
Incorporates reward estimation via self-evaluation, learned verifier, environment proxy, or retrieval over past trajectories
Implements controlled replanning with monitors and triggers
Cites academic research: FLARE (arXiv 2601.22311), DeepMind optimality (arXiv 2604.02910), and web agent failures (arXiv 2603.14248)
Treats stepwise chain-of-thought as an anti-pattern for long-horizon tasks

Pros & Cons

Pros
  • Explicitly avoids greedy policy collapse through forward lookahead and replanning
  • Provides a structured taxonomy of plan shapes for diagnosing agent behavior
  • Based on recent academic research on planning failures and optimality
  • Encourages conscious trade-off between optimal and satisficing planning strategies
  • Supports handling of irreversible and expensive actions
Cons
  • Lookahead costs scale as branching factor × depth × rollout, requiring significant compute
  • Complex setup: requires careful specification of plan tree parameters and reward signals
  • May be overkill for short-horizon or simple tasks where stepwise reasoning suffices
  • Effectiveness depends on accurate reward estimation, which is stated to be imperfect
  • Not a standalone tool; must be integrated into an LLM agent system

Best For

Designing LLM agents for long-horizon planning tasks with many sequential stepsAuditing existing LLM agent planning architectures for planning anti-patternsComplex multi-goal configurations with conflicting constraints and irreversible actionsWeb agent planning where actions have uncertain outcomes and require hierarchical decompositionHigh-stakes or regulated planning tasks where optimal solutions are preferred over satisficingTasks with imperfect reward signals and finite compute budgets

FAQ

What is the Lookahead Planning Specialist?
It is a system prompt from the ai-boost/awesome-prompts GitHub repository that instructs an LLM agent to plan over long horizons using forward lookahead, reward estimation, and controlled replanning, avoiding greedy stepwise reasoning.
What planning anti-pattern does it address?
It identifies stepwise chain-of-thought as a planning anti-pattern for long-horizon tasks because it implicitly commits to a greedy policy that picks locally best actions without considering multi-step trajectories, leading to error compounding and dead ends.
What are the key assumptions of this prompt?
The task spans many steps; tools have partially uncertain outcomes; some actions are irreversible or expensive; reward signals are imperfect; and compute is finite, with lookahead costs scaling as branching × depth × rollout.
What academic sources does it cite?
It cites FLARE: Why Reasoning Fails to Plan (arXiv 2601.22311, 2026), Optimality of LLMs on Planning Problems (arXiv 2604.02910, Google DeepMind, April 2026), and Why Do Web Agents Fail? A Hierarchical Planning Perspective (arXiv 2603.14248, 2026).
How does it distinguish between optimal and satisficing planning?
Optimal planning is preferred for multi-goal, conflicting constraints, high-stakes, irreversible actions, and regulated outcomes. Satisficing is preferred for single goal, abundant resources, time-boxed, reversible actions, and exploratory tasks. The prompt requires explicit choice rather than defaulting to balanced.
What plan shapes does the prompt diagnose?
The five plan shapes are: stepwise-greedy (no lookahead), flat plan-then-execute, lookahead-capable (k-step rollouts with scored selection), replanning-capable (monitor + replan triggers), and hierarchical (high-level decomposition plus leaf-level grounding).