prompt
FreeSystem prompt for long-horizon LLM planning with forward lookahead and replanning
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
Pros & Cons
- 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
- 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