Cognition · Software component

HTN Planner

Software componentCognitionCognition & Memoryarc:HTNPlanner

A task planner that recursively replaces abstract tasks in a task network with subtask networks from applicable decomposition methods until only primitive, executable tasks with consistent constraints remain.

Responsibility. Decomposes a high-level goal through method-based hierarchical refinement into a primitive executable task network.

Also known as: Hierarchical Task Network planner, Hierarchical planner, Decomposition engine

Variant of Task Planner abstract

When to choose. Choose when the goal has naturally nested structure, reusable decomposition patterns exist, stakeholders need multiple abstraction views, or staged commitment under uncertainty is needed, and the world is stable during planning.

alternative to; receives delegation fromdelegates to; is target of alternativeToreads; is configured byspecializesis invoked byreadsreadsinvokesis constrained byalternative towritesinvokesdelegates toLLM Task Planner: alternative to; receives delegation fromLLM Task PlannerFlat Planner: delegates to; is target of alternativeToFlat PlannerDecomposition Method Library: reads; is configured byDecomposition Method Lib…Task Planner: specializesTask PlannerReplanner: is invoked byReplannerWorld Model State: readsWorld Model StateAction Effect Model: readsAction Effect ModelPlan Constraint Propagator: invokesPlan Constraint PropagatorPlanning Constraint Set: is constrained byPlanning Constraint SetReactive Planner: alternative toReactive PlannerTask Network: writesTask NetworkState Abstraction Mapper: invokesState Abstraction MapperLocal Constraint Scheduler: delegates toLocal Constraint Scheduler
Direct neighbourhood (hover for relationship types)

Relationships

is configured by structural

delegates to dependency

invokes dependency

is invoked by dependency

reads dependency

receives delegation from dependency

writes dependency

is constrained by control

alternative to variability

Design guidance

Quantitative guidance

As stated by the sources; verify before use.

Classification

Patterns
Hierarchical Task Network (HTN) planningDepth-first task selectionBreadth-first task selectionLeast-commitment task selectionGreedy method selectionSystematic backtracking searchInformed (A*) method searchStrategic/tactical/operational abstraction levelsLocal repair
Technologies
LangGraphAutoGenCrewAISemantic Kernel planner
Quality attributes
Performance efficiency (ISO/IEC 25010)Maintainability (ISO/IEC 25010)Explainability (NIST AI RMF: explainable and interpretable)Interaction capability (ISO/IEC 25010)
Risks mitigated
Combinatorial search-space explosion of flat planningPremature detailed commitmentOpaque unmaintainable flat plans

Sources

  1. Ch5.4: T. Nguyen, "Hierarchical Planning Fundamentals," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 5.4. ISBN: 9798244538229.