Planner9 is an open-source distributed HTN task planner developed by Stéphane Magnenat and Martin Voelkle.
To know more about it, read the associated paper.
You can run a test program, implementing the example of the paper, with:
You can see the threaded version of the planner in action with:
The distributed version example is not documented yet.