PyHOP is a simple Hierarchical Task Network (HTN) planner written in Python; here is a C++ port of PyHop.