A Hierarchical Task Network (HTN) is an automated planning formalism that represents a complex problem as a hierarchy of tasks, which are recursively decomposed into subtasks using decomposition methods until a sequence of directly executable primitive actions is found. Unlike classical planners that search for actions to achieve world-state goals, HTN planners are given a high-level compound task and use domain-specific knowledge encoded in methods to break it down, making them highly efficient for structured, procedural domains like manufacturing, logistics, and autonomous agent workflows.
