Skip to content
Back to full roadmap
topicadvanced

Hierarchical Task Networks (HTN)

Goal → sub-goal → primitive action tree. Classical AI planning + LLM.

3 hours1 prereqs

Classical AI's HTN applied to LLM agents: high-level goal → mid-level tasks → primitive tool calls.

Pro: doesn't lose the big picture on complex tasks. Re-planning only on affected subtree.

Practical: Auto-GPT's "Goals → Tasks → Steps" is a simple version. Modern: LangGraph subgraph composition.

Prerequisites