World Models and Lookahead
Predict the result of an action before doing it; choose the action with the best predicted outcome.
Predict Before You Act
The best agents don't just try things — they predict outcomes first, choose the best, then act. This is the same idea as searching N moves ahead in chess.
What Is a World Model?
A world model predicts: given current state S and action A, what is the next state S'?
For an LLM agent, the LLM itself can be the world model:
prediction_prompt = '''
Current state: {state}
Proposed action: {action}
What is the most likely outcome? Return JSON: {new_state, success_probability}.
'''All lessons in this course
- Hierarchical Task Decomposition
- Goal Stacks and Backtracking
- World Models and Lookahead
- Reflection and Self-Critique Loops